Skip to content
This repository was archived by the owner on Jul 25, 2023. It is now read-only.

A sane default HTTP client for Envato API

License

Notifications You must be signed in to change notification settings

jacobbednarz/envato-api-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

envato-api-php-client

A sane PHP SDK for interacting with the Envato API.

Usage

require 'vendor/autoload.php';

use Envato\ApiClient;

$client = ApiClient::factory(array(
  'token' => 'xxxxxxxxxxxxxxxxxxxx'
));

var_dump($client->whoami()->userId());
// int(5777395)

Coverage

What to know what endpoints are covered? Check out the types of Response classes available. These classes are a one to one mapping of the API endpoints.

Testing

You can run the test suite using the following command:

$ ./vendor/bin/phpunit --bootstrap vendor/autoload.php tests

Please. Please. Please. Ensure all changes have tests. If not, there is a good chance untested functionality will be broken without knowing about it.

This project uses PHP Codesniffer to enforce standards in CI. You can run it locally using:

$ ./vendor/bin/phpcs --standard=phpcs.xml src/

About

A sane default HTTP client for Envato API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages