Download the PHP package cexll/hyperf-easywechat without Composer

On this page you can find all versions of the php package cexll/hyperf-easywechat. 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 hyperf-easywechat

Notice

Swoole 4.6.0 开始已经支持协程Curl 所以这个项目没有继续维护的价值

如果是Swoole 4.6.0以下版本可以继续使用

hyperf-wechat

微信 SDK for Hyperf, 基于 overtrue/wechat

安装

~~~shell script composer require cexll/hyperf-easywechat


## 配置
1. 发布配置文件
~~~shell script
php ./bin/hyperf.php vendor:publish cexll/hyperf-wechat
  1. 修改应用根目录下的 config/autoload/wechat.php 中对应的参数即可。
  2. 每个模块基本都支持多账号,默认为 default

使用

下面以接收普通消息为例写一个例子:

假设您的域名为 nxx.cloud 那么请登录微信公众平台 “开发者中心” 修改 “URL(服务器配置)” 为: http://nxx.cloud/wechat

路由:

注意:一定是 Router::addRoute, 因为微信服务端认证的时候是 GET, 接收用户消息时是 POST

然后创建控制器 WeChatController

上面例子里的 在return的时候必须调用Cexll\HyperfWechat\Helper::Response去转换,否则会报错。

我们有以下方式获取 SDK 的服务实例

使用外观

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

License

MIT


All versions of hyperf-easywechat with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
ext-swoole Version >=4.5
overtrue/wechat Version ^4.2
hyperf/guzzle Version ^2.1.0
hyperf/super-globals Version ^2.1.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 cexll/hyperf-easywechat contains the following files

Loading the files please wait ....