PHPackages                             thundersquared/envato-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. thundersquared/envato-api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

thundersquared/envato-api
=========================

Envato Marketplace API

1.0.0(7y ago)3494[1 PRs](https://github.com/thundersquared/envato-api/pulls)MITPHPPHP &gt;=5.3.0

Since Feb 1Pushed 6y ago2 watchersCompare

[ Source](https://github.com/thundersquared/envato-api)[ Packagist](https://packagist.org/packages/thundersquared/envato-api)[ Docs](https://github.com/thundersquared/envato-api)[ RSS](/packages/thundersquared-envato-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

 [![](media/icon@2x.png)](media/icon@2x.png)

### envato-api

[](#envato-api)

Envato Marketplace API

What's different in this package?
---------------------------------

[](#whats-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
----------

[](#tech-stack)

The API is written in PHP, relies on [Guzzle](https://github.com/guzzle/guzzle) to consume the Envato Marketplace API and that's pretty much it. Heavily inspired by [Node version by Bailey Herbert](https://github.com/baileyherbert/node-envato-api).

How to use
----------

[](#how-to-use)

1. Require the package ```
    composer require thundersquared/envato-api

    ```
2. Load composer packages ```
    require_once __DIR__ . '/vendor/autoload.php';
    ```
3. Instantiate the class ```
    $client = new \sqrd\Envato\API('your-personal-token-here', 'optional-user-agent-here');
    ```

    or use a nicer style ```
    use \sqrd\Envato\API as Client;
    $client = new Client('your-personal-token-here', 'optional-user-agent-here');
    ```
4. Use them calls

UseMethod**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 . All parameters are the same and should be passed as a key-value array as the latest argument of the method.

License
-------

[](#license)

The code in this repo and used modules are open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~103 days

Total

4

Last Release

2716d ago

Major Versions

0.0.3 → 1.0.02018-12-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/59571ededec5b0c75927752f2c2fbfa152f09ed53fbc14fc6b9098e50512b8c4?d=identicon)[anatoli](/maintainers/anatoli)

---

Top Contributors

[![anatolinicolae](https://avatars.githubusercontent.com/u/1231135?v=4)](https://github.com/anatolinicolae "anatolinicolae (17 commits)")

---

Tags

apienvatoenvato-marketmarketplacesskdhttpapiclientrestcurlhttp clientmarketplaceenvato

### Embed Badge

![Health badge](/badges/thundersquared-envato-api/health.svg)

```
[![Health](https://phpackages.com/badges/thundersquared-envato-api/health.svg)](https://phpackages.com/packages/thundersquared-envato-api)
```

###  Alternatives

[e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

11259.2k](/packages/e-moe-guzzle6-bundle)[zoonman/pixabay-php-api

PixabayClient is a PHP HTTP client library to access Pixabay's API

3354.7k](/packages/zoonman-pixabay-php-api)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)[opgg/riotquest

RiotQuest, PHP RiotAPI client library that focused on multi request from OP.GG

172.6k](/packages/opgg-riotquest)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

175.7k1](/packages/meteocontrol-vcom-api-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
