Download the PHP package littler/wechat without Composer

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

tp-wechat

FOSSA Status

微信 SDK For ThinkPHP 6.0 基于overtrue/wechat

框架要求

ThinkPHP6.0(中间件要求支持 ThinkPH6.0+)

安装

配置

  1. 修改配置文件 修改项目根目录下 config/wechat.php 中对应的参数

  2. 每个模块基本都支持多账号,默认为 default。

使用

接受普通消息

新建一个 Controller,我这边用的是 Test

获得 SDK 实例 使用 Facade

以上均支持传入自定义账号:例如

以上均支持传入自定义账号+配置(注:这里的 config 和配置文件中账号的格式相同):例如

Oauth 登录中间件

默认路由登录

http://domain/oauth/wechat or https://domain/oauth/wechat

使用中间件情况下,config 的 oauth.callback 可以随便写~,反正是直接获取了当前 URL

上面的路由定义了 /user 是需要微信授权的,那么在这条路由的回调 或 控制器对应的方法里, 你就可以从 session('wechat_oauth_user_default') 拿到已经授权的用户信息了。

关于 ThinkPHP6 的中间件使用方法不在叙述,详情可以查看官方文档

中间件参数说明

由于 ThinkPHP 中间件只支持一个参数,所以以:做分割

支持传入 account 账号别名以及 scope 类型

若不传入account,会使用default账号

若不传入scope,会使用配置文件中的oauth.scope

支持一下两种方式

Event

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

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

参考项目

License

MIT

FOSSA Status


All versions of wechat with dependencies

PHP Build Version
Package Version
Requires php Version ~8.0
overtrue/wechat Version ~6.0-beta9
topthink/framework Version ~6.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 littler/wechat contains the following files

Loading the files please wait ....