dev-master
9999999-dev http://github.com/handsomegyr/weixinA simple PHP client library for weixin
MIT
The Requires
- php >=5.3.2
by guoyongrong
weixin
A simple PHP client library for weixin
is a PHP (>= 5.3) client library for the ΢ÐŹ«ÖÚÆ½Ì¨¿ª·¢Ä£Ê½Í¨ÓýӿÚAPI(Weixin), (*1)
Weixin relies on the autoloading features of PHP to load its files when needed and complies with the PSR-0 standard which makes it compatible with most PHP frameworks. Autoloading is handled automatically when dependencies are managed using Composer, but you can also leverage its own autoloader if you are going to use it in a project or script without any PSR-0 compliant autoloading facility:, (*2)
// Prepend a base path if Weixin is not available in your "include_path". require 'Weixin/Autoloader.php'; Weixin\Autoloader::register();
It is possible to easily create a phar archive from
the repository just by launching bin/create-phar
. The generated phar contains a stub defining an
autoloader function for Weixin, so you just need to require the phar to start using the library.
Alternatively, it is also possible to generate one single PHP file that holds every class like older
versions of Weixin by launching bin/create-single-file
, but this practice is not encouraged., (*3)
A simple PHP client library for weixin
MIT
weixin