handsomegyr / wechat
A simple PHP client library for weixin
2.1.1
2023-12-15 07:33 UTC
Requires
- php: >=5.5
- guzzlehttp/guzzle: >=6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.13
- jakub-onderka/php-parallel-lint: ^1.0
- pdepend/pdepend: ^2.5
- phpab/phpab: ^0.1.0
- phploc/phploc: ^4.0
- phpmd/phpmd: ^2.6
- phpspec/phpspec: ^5.1
- phpunit/phpunit: ^7.4
- sebastian/phpcpd: ^4.1
- squizlabs/php_codesniffer: ^3.3
README
#微信公众平台开发模式通用接口API新版
Requirement
- PHP >= 5.5
- Composer
Installation
$ composer require "handsomegyr/wechat" -vvv
Usage
基本使用(以服务端为例):
<?php $client = new \Weixin\Client(); $client->setAccessToken($access_token); echo "<br/>将一条长链接转成短链接接口<br/>"; $long_url = 'http://www.baidu.com/?a=1&b=2&c=3'; $ret = $client->getShortUrlManager()->long2short($long_url); print_r($ret);
Documentation
License
MIT