Download the PHP package thundersquared/envato-api without Composer

On this page you can find all versions of the php package thundersquared/envato-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package envato-api

envato-api

Envato Marketplace API

What's different in this package?

Of course there are a lot of similar libraries, but this one should be the simplest and the most complete one of them all—at least that what we hope.

Tech stack

The API is written in PHP, relies on Guzzle to consume the Envato Marketplace API and that's pretty much it. Heavily inspired by Node version by Bailey Herbert.

How to use

  1. Require the package

  2. Load composer packages

  3. Instantiate the class

    or use a nicer style

  4. Use them calls
Use Method

Envato Market Catalog Look up a public collection | $client->getCollection([ 'id' => 1234 ]); Look up a single item | $client->getItem([ 'id' => 1234 ]); Search for items | $client->searchItems([ 'site' => 'codecanyon', 'term' => 'query', ... ]); Search for comments | $client->searchComments([ 'item_id' => '1234', 'term' => 'query', ... ]); Popular items by site | $client->getPopularItems('codecanyon'[, array $args = null ]); Categories by site | $client->getCategories($site[, array $args = null ]); Prices for a particular item | $client->getItemPrices([ 'item_id' => 1234 ]); New items by site and category | $client->getNewItems($site = 'graphicriver', $category = 'graphics'[, array $args = null ]); Find featured items | $client->getFeaturedItems($site = 'graphicriver'[, array $args = null ]); Random new items | $client->getRandomNewFiles($site = 'graphicriver'[, array $args = null ]); User Details List all of your collections | $client->getUserCollections(array $args = null); Look up a user's private collection | $client->getPrivateCollection([ 'id' => 1234 ]); User account details | $client->getUsersDetails($username[, array $args = null ]); List a user's badges | $client->getUsersBadges($username[, array $args = null ]); A user's items by site | $client->getUsersItems($username[, array $args = null ]); New items by user | $client->getUsersNewItems($username = 'collis', $site = 'graphicriver'[, array $args = null ]); Private User Details List your sales | $client->getSales($args); Look up sale by code | $client->getSaleByCode([ 'code' => '123-456-789', ... ]); List purchases | $client->getPurchases([ 'page' => 1, ... ]); Look up purchase by code | $client->getPurchaseByCode([ 'code' => '123-456-789' ]); User account details | $client->getPrivateUserDetails(array $args = null); Get a user's username | $client->getUsername(array $args = null); Get a user's email | $client->getEmail(array $args = null); Sales by month | $client->getSalesByMonth(array $args = null); Envato Market Stats Total Envato Market users | $client->getTotalMarketUsers(array $args = null); Total Envato Market items | $client->getTotalMarketItems(array $args = null); Number of files in category | $client->getTotalFilesBySite($site = 'codecanyon'[, array $args = null ]);

Find each method signature and details at https://build.envato.com/api/. All parameters are the same and should be passed as a key-value array as the latest argument of the method.

License

The code in this repo and used modules are open-sourced software licensed under the MIT license.


All versions of envato-api with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
guzzlehttp/guzzle Version ^6.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package thundersquared/envato-api contains the following files

Loading the files please wait ....