gusdecool/envato-php-sdk

v1.0.1 2020-07-06 14:25 UTC

This package is auto-updated.

Last update: 2020-08-08 17:28:51 UTC


README

Lot of properties not fully serialized.

Envato PHP SDK

Implementation API source: https://build.envato.com/api

User usage

Install the package with

composer require gusdecool/php-envato-sdk

Create your API instances with

$personalAuthToken = \Gusdecool\EnvatoSDK\Utility\HttpClientBuilder::personal('YOUR_AUTH_TOKEN');
$api = new \Gusdecool\EnvatoSDK\Api\MarketCatalogApi($personalAuthToken);

$response = $api->searchItems([]);
var_dump($response);

Each API methods has documentation that link to the Envato API documentation page where you can see the possible parameters and response values. All parameters and response value are matches with the docs.

Development guide

We only need CLI to develop and test the code. Please use PHPUnit to test the code.

How to install

Use Docker for the easiest installation steps and run these commands

docker-compose run app bash

# we're now in shell of the docker instance

# install dependencies
composer install 

# test the code
vendor/bin/phpunit