Download the PHP package code-lives/ali without Composer

On this page you can find all versions of the php package code-lives/ali. 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 ali

GitHub forks GitHub forks GitHub forks

第三方 token openid 支付 回调 退款 订单查询 解密手机号 分账 模版消息
支付宝小程序 x x

安装

⚠️ 注意

金额单位分 100=1 元

返回结果 array 由开发者自行判断

预下单

支付宝小程序

使用密钥进行签名解密,没有使用证书签名解密。

订单查询、退款、参数设置可以设置其他,具体看文档。

返回值 看官方文档,每个返回值都不一样,自行判断,如 openid 返回[alipay_system_oauth_token_response] 退款返回[alipay_trade_create_response]

Config

参数名字 类型 必须 说明
appid string 小程序 appid
secret string 小程序 AES 用于手机号解密
privateKey string 应用私钥(开发工具生成)
publicKey string 支付宝公钥(支付宝后台下载)
notify_url string 异步回调地址

Openid

getOpenid 获取支付宝的用户 user_id 类似于微信的 openid

解密手机号

订单查询

退款

参数名字 类型 必须 说明
out_trade_no string 平台订单号
refund_amount int 退款金额

模版消息

模版消息设置比较麻烦。需要先到开发平台添加进入小程序进行产品绑定,在去商家平台设置文档

支付回调


All versions of ali with dependencies

PHP Build Version
Package Version
No informations.
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 code-lives/ali contains the following files

Loading the files please wait ....