Download the PHP package ihipop/taobao-top without Composer

On this page you can find all versions of the php package ihipop/taobao-top. 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 taobao-top

淘宝开放平台(TOP) SDK for PHP7

淘宝开放平台 = Taobao Open Platform = T.O.P = TOP

状态:Stable

当前的 v1.x 版本经过生产检验,稳定可用。

因本人工作变动,后续继续从事TOP开发的可能性不大,和项目相关的问题可继续提BUG,我有相关印象的话会凭经验继续修。新Feature由于我无法测试,由于TOP本身的封闭性,不保证后续一定能迅速支持

官方SDK存在的问题

计划实现的功能(Feature)

空闲时候可能会做的功能

安装

你可能需要执行一次如下的composer设置才能正常安装开发版

安装

快速开始

初始化 TOP 客户端

初始化请求类

以获取订单为例

发送请求

Swoole 协程使用注意事项

TODO

更多实例

请查看examples

自动解密

GetTradesSold 类已经封装自动解密方法 ,所以上面的Request类出来就是明文字段 ,如果你的TOP应用不支持加密 请关闭加密

下面对自动解密的配置做出摘要说明

@表示这是一组同样结构的数组

所以 上面的配置表示: 对响应内容内的 $response['trades']['trade'] 这个数组的 receiver_name 字段做解密, 其中receiver_name的加密类型是name。其他加密类型自己看淘宝文档。

RAW Request

如果你应用没开启加密或者请求不涉及加密解密,而且我的预先写的类没覆盖到的,那么你可以使用RAW Request简化请求撰写,但是同样的,自动参数联想和自动完成不可用,数组转逗号分割的参数 也不可以用。

例如,请求 alibaba.orp.recommend 接口

撰写自己的$request

默认命名规则

默认的,只要按照约定撰写类名称,会自动映射成接口名称,比如:

接口名称: taobao.trades.sold.get

最后一个动词(本例是get)提前,放到 taobao 的namespace下,中间部分改成大驼峰

也就是 \ihipop\TaobaoTop\requests\taobao\GetTradesSold

本例中,taobao 换成 alibaba 同理,比如 alibaba.orp.recommend ,按照规则应该写成

\ihipop\TaobaoTop\requests\alibaba\RecommendOrp

任性的写名称

你可以任性的写起名,只要在类里面设置好 $apiName 属性,则请求的时候优先读取这个名称

别忘记自动解密配置

见 自动解密

私有托管

假设你托管的私有仓库url是 https://example.com/composer/taobao-top.git

其他照旧


All versions of taobao-top with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
guzzlehttp/psr7 Version ^1.4
psr/simple-cache Version ^1.0
psr/log Version ^1.0
ihipop/psr-null-cache Version ^1.0
pimple/pimple Version ~3.2
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 ihipop/taobao-top contains the following files

Loading the files please wait ....