2017 © Pedro Peláez
 

library research-php

PHP client for SellerLabs' Research API

image

sellerlabs/research-php

PHP client for SellerLabs' Research API

  • Friday, September 16, 2016
  • by bchecketts
  • Repository
  • 26 Watchers
  • 2 Stars
  • 5,449 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 25 Versions
  • 0 % Grown

The README.md

research-php Build Status

This is the official PHP client library for SellerLabs' research API service (Previously known as NodeMWS/ModernMWS client)., (*1)

Requirements

  • PHP +5.6 or HHVM +3.6.
  • Composer and autoload.php.
  • and of course: credentials to use the research service.

Documentation

  • API documentation for the Research Service is available at: https://docs.sellerlabs.com/research/
  • Documentation for this library is available under the docs directory in this repository, and can be viewed online at http://sellerlabs.github.io/research-php/

Installation & usage

Using composer:

First, add the package to your composer.json:, (*2)

    // ...
    "require": {
        "sellerlabs/research-php": "*"
    }
    // ...

Then run composer update, (*3)

How to use with Laravel 5:

First you need to configure the client inside your app service provider:, (*4)

public function register()
{
    $this->app->bind(
        SellerLabs\Research\Interfaces\ResearchClientInterface::class,
        function () {
            return new ResearchClient(
                'YourClientId',
                'YourClientSecret',
                'http://research.api.sellerlabs.com'
            );
        }
    );
}

Then inside any of your controllers, you can inject the dependency through the constructor:, (*5)

// ...
class ProductsController extends Controller
{
    /**
     * Implementation of a client for SellerLabs' research API
     *
     * @var ResearchClientInterface
     */
    protected $researchClient;

    /**
     * Construct an instance of a ProductsController
     */
    public function __construct(ResearchClientInterface $researchClient)
    {
        $this->researchClient = $researchClient;
    }

    /**
     * Handle GET /products/
     */
    public function getIndex()
    {
        return $this->researchClient->getSearch('keyword', 'testing');
    }
}

Laravel's container is smart enough to automatically perform dependency injection, which adds the client parameter for you when initializing your controller's class, (*6)

The Versions

16/09 2016

dev-master

9999999-dev

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

16/09 2016

v0.3.0

0.3.0.0

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

13/02 2016

dev-MarkVaughn-patch-1

dev-MarkVaughn-patch-1

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

01/02 2016

v0.2.5

0.2.5.0

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

01/02 2016

dev-travisdouce/adds-protections-against-malformed-and-invalid-JSON-2

dev-travisdouce/adds-protections-against-malformed-and-invalid-JSON-2

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

05/11 2015

v0.2.4

0.2.4.0

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

05/11 2015

v0.2.3

0.2.3.0

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

03/11 2015

0.2.2

0.2.2.0

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

03/11 2015

dev-extensions

dev-extensions

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

09/10 2015

v0.2.1

0.2.1.0

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

08/10 2015

v0.2.0

0.2.0.0

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

11/06 2015

v0.1.1

0.1.1.0

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

09/06 2015

v0.1.0

0.1.0.0

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

26/03 2015

dev-dev-sami

dev-dev-sami

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

26/03 2015

0.0.11

0.0.11.0

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

15/03 2015

0.0.10

0.0.10.0

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

03/03 2015

0.0.9

0.0.9.0

PHP client for SellerLabs' Research API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

03/03 2015

0.0.8

0.0.8.0

PHP client for ModernMWS

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

03/03 2015

0.0.7

0.0.7.0

PHP client for ModernMWS

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

03/03 2015

0.0.6

0.0.6.0

PHP client for ModernMWS

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

03/03 2015

0.0.5

0.0.5.0

PHP client for ModernMWS

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

19/01 2015

0.0.4

0.0.4.0

PHP NodeMWS client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Trujillo
by Benjamin Kovach

12/11 2014

0.0.3

0.0.3.0

PHP NodeMWS client

  Sources   Download

MIT

The Requires

 

by Eduardo Trujillo
by Benjamin Kovach

21/10 2014

0.0.2

0.0.2.0

PHP NodeMWS client

  Sources   Download

proprietary

The Requires

 

by Eduardo Trujillo

15/10 2014

0.0.1

0.0.1.0

PHP NodeMWS client

  Sources   Download

proprietary

The Requires

 

by Eduardo Trujillo