Download the PHP package code-lives/weixin without Composer

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

GitHub forks GitHub forks GitHub forks

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

安装

⚠️ 注意

金额单位分 100=1 元

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

预下单

Config

参数名字 类型 必须 说明
appid int 小程序 appid
secret int 小程序 secret
mch_id string 商户 mch_id
mch_key string 商户 mch_key
notify_url string 异步地址
cert_pem string cert_pem 证书
key_pem string key_pem 证书
trade_type string 默认为:JSAPI。MWEB:代表微信 H5 、JSAPI:公众号或小程序

Token

返回参数 类型 必须 说明
expires_in string 凭证有效时间,单位:秒
access_token string 获取到的凭证

Openid

返回参数 类型 必须 说明
session_key string session_key
openid string 用户 openid
unionid string unionid

解密手机号

订单查询

退款

参数名字 类型 必须 说明
out_trade_no string 平台订单号
out_refund_no string 自定义订单号
refund_fee int 退款金额
total_fee int 订单金额
refund_desc string 退款原因

模版消息

支付回调


All versions of weixin 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/weixin contains the following files

Loading the files please wait ....