Download the PHP package lilocon/wechat-bundle without Composer

On this page you can find all versions of the php package lilocon/wechat-bundle. 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 wechat-bundle

wechat-bundle

注意:此版本为 3.x 版本,不兼容 2.x 与 1.x,与 overtrue/wechat 3.x 同步

微信 SDK for Symfony, 基于 overtrue/wechat

本项目只适用于,只有一个固定的账号,如果是开发微信公众号管理系统就不要使用了,直接用 overtrue/wechat 更方便些。

安装

通过composer安装

配置

注册 Bundle:
更新配置文件:

将配置文件对应参数改为自己的配置

基本使用

经过以上配置, 该bundle已经可以运行起来了

在控制器调用案例
下面以接收普通消息为例写一个例子:

使用自定义缓存

在 SDK 中的所有缓存默认使用文件缓存,缓存路径取决于 PHP 的临时目录,如果你需要自定义缓存,那么你需要做如下的事情:

修改配置

其中cache_id是你自己定义的service_id

以下是使用doctrine-cache-bundle的配置案例

OAuth

微信授权登录, 本模块扩展了symfony security 使其支持微信登录

在配置中开启此功能
定义 User Entity
定义授权事件监听器
定义用户提供者
注册监听器
添加防火墙
定义授权路由
添加测试路由

微信浏览器打开 http://domain/wechat/test 体验

开放平台支持

添加开放平台授权事件接收url的路由

然后监听对应事件就可以了

事件

你可以监听相应的事件,并对事件发生后执行相应的操作。

更多 SDK 的具体使用请参考:https://easywechat.org

License

MIT


All versions of wechat-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/framework-bundle Version ~2.8 || ~3.0
symfony/monolog-bundle Version ~2.8 || ~3.0
symfony/security-bundle Version ~2.8 || ~3.0
symfony/twig-bundle Version ~2.8 || ~3.0
overtrue/wechat Version ^3.0
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 lilocon/wechat-bundle contains the following files

Loading the files please wait ....