Download the PHP package linyuee/wechat without Composer

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

简单的微信公众号开发扩展包wechat

简介

这是一个方便微信开发新手的开发的包,你们甚至可以不用知道其中的逻辑,而且使用非常方便,如果觉得对你有用的话请支持一下点个star

安装

集成了微信授权登录,jssdk签名,自定义公众号菜单,微信支付等功能,可能是最适合微信小白开发的包了

使用

说明

AccessToken 的有效期目前为 7200 秒,有请求次数限制,重复获取将导致上次获取的 AccessToken 失效, 因此有必要缓存AccessToken,你如果只是测试也可以不使用,我们使用doctrine/cache包作为依赖,在初始化Wechat类 的时候进行注入,目前的缓存驱动有 file、APC、redis、memcache、memcached、xcache。 不理解请移步http://blog.csdn.net/wolehao/article/details/17733289 `` Filesystem

APC

Memcache

Mamcached

Xcache

一、公众号开发

初始化客户端

$cacheDriver在\Linyuee\Wechat\MpClient类初始化的时候进行注入,用来缓存access_token,如果不注入也可以运行,但是每次都会去获取新的access_token

1、微信授权

然后你需要在回调接口获取用户信息,并接收微信服务器发送的$code和$state

2、jssdk签名

3、用户管理

根据openid获取用户信息

获取所有用户的openid

4、公众号菜单

自定义菜单

如果返回{"errcode":0,"errmsg":"ok"}便是设置成功

删除菜单

5、生成带参数公众号二维码

8、微信接入和自动回复

要使用该功能,需要到公众平台配置相关信息,首次启用服务器配置要填一个url和token。假如你的服务器地址为 http:://test.com,然后你在服务器的根目录有一个wechat.php的文件,这时你只需要在wechat.php写入 该功能暂时没有实现图片和图文连接,后期会支持

然后url便填写http:://test.com/wechat.php,token填写你在php中填写的token就可以了。

设置关注自动回复:

设置按关键字自动回复并且关注自动回复:

支付

2、查询
3、关闭订单
4、获取数据
5、退款

微信退款必须申请到证书,并将证书发在服务器上可访问的路径


All versions of wechat with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
doctrine/cache Version ^1.6
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 linyuee/wechat contains the following files

Loading the files please wait ....