定制 thundersquared/envato-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thundersquared/envato-api

Composer 安装命令:

composer require thundersquared/envato-api

包简介

Envato Marketplace API

README 文档

README

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
    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
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.

thundersquared/envato-api 适用场景与选型建议

thundersquared/envato-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 49 次下载、GitHub Stars 达 3, 最近一次更新时间为 2018 年 02 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「curl」 「http」 「rest」 「http client」 「api」 「client」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 thundersquared/envato-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 thundersquared/envato-api 我们能提供哪些服务?
定制开发 / 二次开发

基于 thundersquared/envato-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 49
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-01