EasyWeChat📦 一个 PHP 微信 SDK

Overview

EasyWeChat

📦 一个 PHP 微信开发 SDK。

Test Status Lint Status Latest Stable Version Latest Unstable Version Total Downloads License huntr

📣 公告

为了更好的推进项目发展,保障项目更新迭代速度,EasyWeChat 正式并入微擎旗下,加上微擎团队的助力,将会为大家提供更强大更稳固更多元化的开源项目。

  • 微擎与 EasyWeChat 结合,基于微擎技术资源方面的优势,将积极发展 EasyWeChat 的开源社区,将为 EasyWeChat 开源项目注入巨大活力。
  • EasyWeChat 原作者 overtrue 将继续担任开源项目的核心开发者,继续参与项目的发展规划,共同打造更强大的开源生态社区。
  • 项目从 6.0 版本开始将修改包名为 w7corp/easywechat,5.x 及以下版本不受影响。

🚨 注意:请 PR 时往 5.x 提交,感谢您的贡献!

Requirement

  1. PHP >= 7.4
  2. Composer
  3. openssl 拓展
  4. fileinfo 拓展(素材管理模块需要用到)

Installation

$ composer require "overtrue/wechat:^5.0" -vvv

Usage

基本使用(以服务端为例):

nickname} 您好!欢迎关注 overtrue!"; }); $server->serve()->send();">


use EasyWeChat\Factory;

$options = [
    'app_id'    => 'wx3cf0f39249eb0exxx',
    'secret'    => 'f1c242f4f28f735d4687abb469072xxx',
    'token'     => 'easywechat',
    'log' => [
        'level' => 'debug',
        'file'  => '/tmp/easywechat.log',
    ],
    // ...
];

$app = Factory::officialAccount($options);

$server = $app->server;
$user = $app->user;

$server->push(function($message) use ($user) {
    $fromUser = $user->get($message['FromUserName']);

    return "{$fromUser->nickname} 您好!欢迎关注 overtrue!";
});

$server->serve()->send();

更多请参考 https://www.easywechat.com/

Documentation

官网 · 教程 · 讨论 · 微信公众平台 · WeChat Official

Integration

Laravel 5 拓展包: overtrue/laravel-wechat

Contributors

This project exists thanks to all the people who contribute. [Contribute].

PHP 扩展包开发

想知道如何从零开始构建 PHP 扩展包?

请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— 《PHP 扩展包实战教程 - 从入门到发布》

License

MIT

FOSSA Status

Comments
  • [6.0] 规划

    [6.0] 规划

    • [x] PHP 8 +
    • [x] 优化 service provider 注册逻辑 #1432
    • [x] 优化 server 部分 #1454, #1389, #1254
    • [x] 提供请求和响应修改器入口
    • [x] 添加 SDK User-Agent
    • [x] 统一命名方式:动名词
    • [x] PSR 规范
    • [x] 依赖包升级
      • [x] PHPUnit 9+
    • [x] 返回值签名验证
    • [x] 添加原始接口内容获取方法
    • [x] Server handler 移除 $condition 统一改为 where 条件表达式
    • [x] 增加测试套件,简化测试用例编写
    • [x] 移除全局 helper改为 Helper class.
    • [x] 移除不必要的依赖
    • [x] 支持自定义缓存 key #1990
    • [x] 不再封装业务接口,只做基础接口
    • [x] 链式调用 API
    • [x] 提供接口可替换相关模块
    • [x] 移除 service container 模式
    opened by overtrue 54
  • 小程序解密The given payload is invalid.

    小程序解密The given payload is invalid.

    我用的环境

    PHP 版本:7.1.7 overtrue/wechat 版本:4.0 是否使用了框架?框架名称:

    问题及现象

    微信小程序,解密,偶尔抛出The given payload is invalid.的异常,查看了easywechat的源码,排查后发现时解密出的结果为空字符串,所以抛出异常,这是什么情况? image

    描述你的问题现象,报错贴截图粘贴或者贴具体信息,提供必要的代码段

    如果你不提供相关的代码,我不会做任何应答,直接 close,感谢!

    opened by woann 35
  • 网页授权回调中获取用户信息报错,代码40001

    网页授权回调中获取用户信息报错,代码40001

    我用的环境

    PHP 版本:PHP 7.1.15 overtrue/wechat 版本:3.3.25 是否使用了框架?框架名称 thinkPHP 5.0

    问题及现象

    这个问题我自己测试的过程中从未遇到过,是上线了以后,看到可疑的error_log我才有所注意,但至今我也未能成功复现问题(但问题每天都会出现几次,从error_log里可知)。

    我的代码跟文档里的DEMO是差不多的,但为了代码复用起见,有所整理(下面会说明):

    // 在controller里接受网页授权callback
    public function oauth_callback() {
                $serviceConfig = \config('wechat.GONG_ZHONG_HAO'); // 读取easywechat所需配置
                $service = new Wechat($serviceConfig); // 这个Wechat是我自己整理的类,算是“适配器”吧,实例化Wechat后就会在其中实例化 EasyWeChat\Foundation\Application
                $userInfo = $service->getOauthUserInfo(); // 读取已授权用户的信息
    }
    
        // 在适配器Wechat类中
        public function getOauthUserInfo() {
            $oauth = $this->app->oauth;
            $user = $oauth->user();
            $data = $user->toArray();
            try { // 这个try/catch是我发现服务器错误日志后加的
                $userInfo = [
                    'app_id' => $this->options['public_app_id'],
                    'openid' => $data['original']['openid'],
                    'nickname' => $data['original']['nickname'],
                    'sex' => $data['original']['sex'],
                    'city' => $data['original']['city'],
                    'province' => $data['original']['province'],
                    'country' => $data['original']['country'],
                    'headimgurl' => $data['original']['headimgurl'],
                ];
                return $userInfo;
            } catch (\Exception $e) {
                $errorMsg = 'app\common\service\Wechat @getOauthUserInfo:' . $e->getMessage() . "\n"
                            . '$user:' . \var_export($user, true) . "\n";
                Log::write($errorMsg, 'error');
                throw $e;
            }
        }
    
    // 上面try/catch打印出来的 $this->app->oauth->user 大概是这样的:
        array(
            'attributes' =>
                array (
                    'id' => NULL,
                    'name' => NULL,
                    'nickname' => NULL,
                    'avatar' => NULL,
                    'email' => NULL,
                    'original' =>
                        array (
                        'errcode' => 40001,
                        'errmsg' => 'invalid credential, access_token is invalid or not latest, hints: [ req_id: qR7j6a0664s153 ]',
                        ),
                    'token' => Overtrue\Socialite\AccessToken::__set_state(array(
                        'attributes' => array (
                                'access_token' => '。。。。。。', // 隐去敏感信息
                                'expires_in' => 7200,
                                'refresh_token' => '。。。。。。',// 隐去敏感信息
                                'openid' => '。。。。。',// 隐去敏感信息
                                'scope' => 'snsapi_userinfo',
                            ),
                    )),
                    'provider' => 'WeChat',
                ),
            )
    

    我试着根据这里的openid来查easywechat本身的log,发现: 1、上面try/catch中的log是2018-04-08T08:01:04+08:00;需要说明一下,只要报了这个错,我的应用就完全无法使用了。 2、easywechat的日志里,发现了成功发送模板消息的日志,时间是2018-04-08 08:01:50,与上述log仅差不到1分钟;成功发送模板消息,表示用户正常访问并且成功实现了操作。 3、综上两点,用户很可能是第一次打开应用发现页面报错打不开;接着马上关掉,然后马上重开应用,此时应用就能正常访问了。

    从上面报错提示看是access_token失效了?但access_token不是由easywechat管理的么?我都不知道怎么往下查了,求指条明路。

    opened by Array-Huang 31
  • 请问 Symfony\Component\Cache\Simple\FilesystemCache 这个类找不到怎么办

    请问 Symfony\Component\Cache\Simple\FilesystemCache 这个类找不到怎么办

    如题,使用php7.0+laravel5.1的开发环境,wechat版本为4.0,服务器可以收到请求并回复,但尝试服务器主动向关注者发消息时报了这个错,google查找无果,大都要求安装symfony/finder这个包,安装后仍然没有效果,在laravel的vender目录下查找也没有发现symfony\component这个包,请问应该怎么解决?

    opened by malphitee 31
  • 微信支付下单错误

    微信支付下单错误

    我用的环境

    PHP 版本:php5.6 overtrue/wechat 版本:3.0

    问题及现象

    $options = [
        'debug'  => true,
        'app_id'  => '',         // AppID
        'secret'  => '',     // AppSecret
        'oauth' => [
            'scopes'   => ['snsapi_userinfo'],
            'callback' => '',
        ],
        // payment
        'payment' => [
            'merchant_id'        => '',
            'key'                => '',
            'cert_path'          => '', // XXX: 绝对路径!!!!
            'key_path'           => '',      // XXX: 绝对路径!!!!
            'notify_url'         => '',
            'device_info'        => 'WEB',
        ],
        'log' => [
            'level' => 'debug',
            'file'  => '/tmp/easywechat.log', // XXX: 绝对路径!!!!
        ],
    ];
    
    return new Application($options);
    
    
    $attributes = [
            'body'             => $detail,
            'out_trade_no'     => date('YmdHis') . rand(1000, 9999),
            'total_fee'        => $fee,
            'trade_type'       => 'JSAPI',
        ];
    
        $order = new Order($attributes);
    
        $res = $payment->prepare($order);
    
    一直提示签名错误
    
    opened by pavlelee 28
  • easywechat4.0 [ error ] [-1]Authorize Failed: {

    easywechat4.0 [ error ] [-1]Authorize Failed: {"errcode":41008,"errmsg":"missing code, hints: [ req_id: jCbezQaLRa-yh_Wxa ]"}

    我用的环境

    • PHP 版本:PHP 7
    • overtrue/wechat 版本:4.0
    • 是否使用了框架?框架名称:thinkphp5

    问题及现象

    //授权跳转 public function get_openid(){

    //跳转获取openid
    $app = Factory::officialAccount($this->config_wechat);
    $oauth = $app->oauth;
    if (empty(Cookie::get('wechat_user'))) {
    
    	Cookie::set('target_url', $this->request->url());
    
    	// return $oauth->redirect();
    	// 这里不一定是return,如果你的框架action不是返回内容的话你就得使用
    	$oauth->redirect()->send();
    }
    

    }

    //跳转获取openid public function oauth_callback(){

    $app = Factory::officialAccount($this->config_wechat);
    $oauth = $app->oauth;
    
    // 获取 OAuth 授权结果用户信息
    $user = $oauth->user();
    
    // 永久保存Cookie
    Cookie::forever('wechat_user',$user->toArray());
    
    $targetUrl = empty(Cookie::get('target_url')) ? '/' : Cookie::get('target_url');
    
    header('location:'. $targetUrl);
    

    }

    偶尔会出现这个问题,测试很多次都是好的,但错误日志里每天都十多条关于这个的错误信息

    域名了备了案,也在公众号设置了域名白名单

    [ error ] [-1]Authorize Failed: {"errcode":41008,"errmsg":"missing code, hints: [ req_id: jCbezQaLRa-yh_Wxa ]"}

    https://yike.io/ 另外一刻社区上无法提交问题,报错信息:This action is unauthorized.

    opened by kl521516 27
  • 偶发性无法获取缓存中的access_token

    偶发性无法获取缓存中的access_token

    我用的环境

    • PHP 版本:7.1
    • overtrue/wechat 版本:4.0
    • 是否使用了框架?框架名称:lumen5.7

    问题及现象

    开放平台替换缓存为redis之后,偶发性出现无法获取授权方(如小程序)的access_token。 image

    排查过程

    1. redis中对应的小程序access_token的key是有值的但是这个值无法正常解析
    2. 查看了框架底层替换之后的cache模块为 Symfony\Component\Cache\Simple\RedisCache,set的时候实际上是调用了 Symfony\Component\Cache\Marshaller\DefaultMarshaller 中的 marshall
    3. marshall中默认用的是 serializeimage

    所以怀疑是因为 serialize请求获取的access_token数据(可能包含某种特殊字符),导致存入redis中的value有问题导致后续的 unserialize失败。 所以想请教下怎么解决 ps:在这里也看到了一个相同情况但是被closed的issue

    opened by MaymayJay 26
  • 微信公众号不能回复接收到的消息,日志无报错

    微信公众号不能回复接收到的消息,日志无报错

    我用的环境

    PHP 版本:5.6 overtrue/wechat 版本:3.1.8

    问题及现象

    服务器已经配置成功,用户发送消息可以接收,日志有提示记录没有报错,问题是用户接收不了消息,微信会提示公众号当前无法提供服务 描述你的问题现象,报错贴截图粘贴或者贴具体信息,提供必要的代码段 Uploading TIM截图20170406130359.png… `namespace App\Http\Controllers\service;

    use Log; use App\Http\Controllers\Controller;

    class WechatController extends Controller {

    /**
     * 处理微信的请求消息
     *
     * @return string
     */
    public function serve()
    {
        Log::info('request arrived.'); # 注意:Log 为 Laravel 组件,所以它记的日志去 Laravel 日志看,而不是 EasyWeChat 日志
    		
        $wechat = app('wechat');
        $wechat->server->setMessageHandler(function($message){
            return "欢迎关注 overtrue!";
        });
    
        Log::info('return response.');
    
        return $wechat->server->serve();
    }
    

    }`

    opened by dm22933 24
  • getMessage获取到的数据有误

    getMessage获取到的数据有误

    我用的环境

    PHP 版本:7.2 overtrue/wechat 版本:4.0 是否使用了框架?框架名称:laravel

    问题及现象

    我这边直接按照demo来, 接收到客服请求直接push一个消息, 就这么简单 现象: 小程序端 没有收到信息 代码截图:

    image

    image

    然后我debug了半天, 最终发现的可能原因就是$app->server->getMessage()方法获取到的并不是传参的数组, 而是一个数组key是0, value是get方式的传参字符串, 这样导致后面很多地方以getMessage获取当数组用的地方取出来的数据都是空的截图:

    image

    不知道这是什么原因, 是哪里需要配置? 请教下

    opened by ohmygd 22
  • 网页能授权但无法获取用户信息,代码跟官方文档一样。

    网页能授权但无法获取用户信息,代码跟官方文档一样。

    我用的环境

    PHP 版本:5.6 overtrue/wechat 版本:3.3

    问题及现象

    按照官方文档设置在最后一步获取用户信息中会返回curl信息,复制到浏览器中打开能够获取用户信息。 测试地址:http//meiwu.xxxxx.com/wx/user 描述你的问题现象,报错贴截图粘贴或者贴具体信息,提供必要的代码段 qq 20170524233152

    opened by dm22933 22
  • 企业微信管理多个应用,出现access_token不能使用的BUG

    企业微信管理多个应用,出现access_token不能使用的BUG

    我用的环境

    PHP 版本:7 overtrue/wechat 版本:4.0 是否使用了框架?框架名称:tp3.2

    问题及现象

    描述你的问题现象,报错贴截图粘贴或者贴具体信息,提供必要的代码段 $config = [ 'corp_id' => 'xxxxx', // 应用列表 'agents' => [ 'ceshi2' => [ 'agent_id' => '1000011', 'secret' => 'xxxxxxxxxxxxxxx' ], 'ceshi' => [ 'agent_id' => '1000010', 'secret' => 'xxxxxxxxxxxxxxx' ] ], 'response_type' => 'array', 'log' => [ 'level' => 'debug', 'file' => DIR . '/wechat.log', ], ]; $work = Factory::work($config); $agents1 = $work->agent->get('1000011'); // 能正常使用 $agents0 = $work->agent->get('1000010'); // 提示accesstoken不能使用在本应用

    如果你不提供相关的代码,我不会做任何应答,直接 close,感谢!

    Bug 
    opened by pi-ka-qiu 21
  • Read the $certificate failed, please check it whether or nor correct

    Read the $certificate failed, please check it whether or nor correct

    我用的环境

    • PHP 版本:8.0
    • overtrue/wechat 版本:6.10.0
    • 是否使用了框架?框架名称:thinkphp6

    问题及现象

    无法解析微信证书文件,会报错 Read the $certificate failed, please check it whether or nor correct WX20221225-173140@2x

    opened by northFlyX 3
  • 2个小程序 公用的一套接口

    2个小程序 公用的一套接口

    ` public function __construct($soft_type = '') { if ($soft_type == 'love_my') { $this->app_id = 'wx98a8164'; $this->secret = 'f090bc71436883527ea65258'; } else { $this->app_id = env('WECHAT_MINI_PROGRAM_APPID'); $this->secret = env('WECHAT_MINI_PROGRAM_SECRET'); }

        $this->config = [
            'app_id' => $this->app_id,
            'secret' => $this->secret,
            'token' => 'easywechat',
            'aes_key' => '' // 明文模式请勿填写 EncodingAESKey
        ];
    
        print_r($this->config);
    
    
    
            $this->app = new Application($this->config);`
    
    opened by qq1415551519 4
Releases(5.32.0)
  • 5.32.0(Dec 30, 2022)

    What's Changed

    • 增加企业微信自建应用和代开发应用oauth授权相关接口,原有的oauth是借用socialite组件包,那个版本默认对应3.x,里面的链接… by @ljyljy0211 in https://github.com/w7corp/easywechat/pull/2640

    Full Changelog: https://github.com/w7corp/easywechat/compare/5.31.0...5.32.0

    Source code(tar.gz)
    Source code(zip)
  • 6.10.0(Nov 28, 2022)

    What's Changed

    • 新增支付文件上传 uploadMedia() 方法,使用文档
    • fix: 修复传入中间件类实例,抛出 Invalid handler 异常 by @edram in https://github.com/w7corp/easywechat/pull/2625

    New Contributors

    • @edram made their first contribution in https://github.com/w7corp/easywechat/pull/2625

    Full Changelog: https://github.com/w7corp/easywechat/compare/6.9.3...6.10.0

    Source code(tar.gz)
    Source code(zip)
  • 6.9.3(Nov 16, 2022)

  • 6.9.2(Nov 3, 2022)

    What's Changed

    • Update client.md by @uax in https://github.com/w7corp/easywechat/pull/2608
    • 增加API调用说明 by @jwaterwater in https://github.com/w7corp/easywechat/pull/2612
    • Update client.md by @jwaterwater in https://github.com/w7corp/easywechat/pull/2613
    • 修复应用管理员变更通知判断 by @wjfz in https://github.com/w7corp/easywechat/pull/2617

    Full Changelog: https://github.com/w7corp/easywechat/compare/6.9.1...6.9.2

    Source code(tar.gz)
    Source code(zip)
  • 5.31.0(Nov 1, 2022)

    What's Changed

    • 增加企微[接口调用许可-账号管理-分配激活码给下游企业]接口 by @ljyljy0211 in https://github.com/w7corp/easywechat/pull/2590
    • [feature]企业微信更新模版卡片消息 by @dengxit in https://github.com/w7corp/easywechat/pull/2615

    Full Changelog: https://github.com/w7corp/easywechat/compare/5.30.0...5.31.0

    Source code(tar.gz)
    Source code(zip)
  • 4.7.0(Oct 21, 2022)

    What's Changed

    • 4.x:修复日志功能在配置了 channels 后设置不生效的问题 by @jerrybendy in https://github.com/w7corp/easywechat/pull/2579
    • 增加getClient by @jwaterwater in https://github.com/w7corp/easywechat/pull/2611

    New Contributors

    • @jwaterwater made their first contribution in https://github.com/w7corp/easywechat/pull/2611

    Full Changelog: https://github.com/w7corp/easywechat/compare/4.6.0...4.7.0

    Source code(tar.gz)
    Source code(zip)
  • 6.9.1(Oct 14, 2022)

    What's Changed

    • SocialiteOpenWork传入base_uri设置参数 by @wjfz in https://github.com/w7corp/easywechat/pull/2607

    Full Changelog: https://github.com/w7corp/easywechat/compare/6.9.0...6.9.1

    Source code(tar.gz)
    Source code(zip)
  • 6.9.0(Oct 12, 2022)

    What's Changed

    • 添加企微第三方应用相关兼容 by @wjfz in https://github.com/w7corp/easywechat/pull/2601

    Full Changelog: https://github.com/w7corp/easywechat/compare/6.8.1...6.9.0

    Source code(tar.gz)
    Source code(zip)
  • 6.8.1(Oct 11, 2022)

    What's Changed

    • 更新微信支付结果状态判断条件 by @bangbangda in https://github.com/w7corp/easywechat/pull/2600

    Full Changelog: https://github.com/w7corp/easywechat/compare/6.8.0...6.8.1

    Source code(tar.gz)
    Source code(zip)
  • 6.8.0(Sep 26, 2022)

    What's Changed

    • Added thenorthmemory/xml to fixed #2592
    • Update overview.md by @zhmuyu in https://github.com/w7corp/easywechat/pull/2591

    New Contributors

    • @zhmuyu made their first contribution in https://github.com/w7corp/easywechat/pull/2591

    Full Changelog: https://github.com/w7corp/easywechat/compare/6.7.4...6.8.0

    Source code(tar.gz)
    Source code(zip)
  • 5.30.0(Sep 5, 2022)

    What's Changed

    • 增加企微[接口调用许可-订单管理-取消订单]接口 by @ljyljy0211 in https://github.com/w7corp/easywechat/pull/2588

    Full Changelog: https://github.com/w7corp/easywechat/compare/5.29.1...5.30.0

    Source code(tar.gz)
    Source code(zip)
  • 6.7.4(Aug 29, 2022)

    What's Changed

    • [docs] Update introduction.md by @arunfung in https://github.com/w7corp/easywechat/pull/2583
    • 修复OpenWork中Authorization的错误引用 by @wjfz in https://github.com/w7corp/easywechat/pull/2584

    New Contributors

    • @arunfung made their first contribution in https://github.com/w7corp/easywechat/pull/2583
    • @wjfz made their first contribution in https://github.com/w7corp/easywechat/pull/2584

    Full Changelog: https://github.com/w7corp/easywechat/compare/6.7.3...6.7.4

    Source code(tar.gz)
    Source code(zip)
  • 6.7.3(Aug 24, 2022)

    What's Changed

    • Update server.md by @lonquan in https://github.com/w7corp/easywechat/pull/2565
    • fix: 修复 JsApiTicket Key冲突, (#2575) by @lilj in https://github.com/w7corp/easywechat/pull/2578

    New Contributors

    • @lilj made their first contribution in https://github.com/w7corp/easywechat/pull/2577

    Full Changelog: https://github.com/w7corp/easywechat/compare/6.7.2...6.7.3

    Source code(tar.gz)
    Source code(zip)
  • 4.6.0(Aug 24, 2022)

    What's Changed

    • 添加通过 Code 获取用户手机号码的方法 by @jerrybendy in https://github.com/w7corp/easywechat/pull/2576

    New Contributors

    • @jerrybendy made their first contribution in https://github.com/w7corp/easywechat/pull/2576

    Full Changelog: https://github.com/w7corp/easywechat/compare/4.5.1...4.6.0

    Source code(tar.gz)
    Source code(zip)
  • 4.5.1(Aug 23, 2022)

    What's Changed

    • 【4.x】优化base_uri by @qiqizjl in https://github.com/w7corp/easywechat/pull/2330
    • 新增 企业微信消息撤回接口,可以根据推送后返回的消息id撤回24小时内推送的信息。 by @twelife in https://github.com/w7corp/easywechat/pull/2337

    New Contributors

    • @twelife made their first contribution in https://github.com/w7corp/easywechat/pull/2337

    Full Changelog: https://github.com/w7corp/easywechat/compare/4.5.0...4.5.1

    Source code(tar.gz)
    Source code(zip)
  • 5.29.1(Jul 28, 2022)

    What's Changed

    • fix 企业微信自动激活调用 by @heartshuai in https://github.com/w7corp/easywechat/pull/2554

    New Contributors

    • @heartshuai made their first contribution in https://github.com/w7corp/easywechat/pull/2554

    Full Changelog: https://github.com/w7corp/easywechat/compare/5.29.0...5.29.1

    Source code(tar.gz)
    Source code(zip)
  • 3.7.4(Jul 21, 2022)

    What's Changed

    • 3.x 视频号添加关闭代付款订单接口 by @hpppenely in https://github.com/w7corp/easywechat/pull/2547

    Full Changelog: https://github.com/w7corp/easywechat/compare/3.7.3...3.7.4

    Source code(tar.gz)
    Source code(zip)
  • 6.7.2(Jul 18, 2022)

  • 5.29.0(Jul 13, 2022)

    What's Changed

    • 新增微盘接口 by @lio990527 in https://github.com/w7corp/easywechat/pull/2537

    New Contributors

    • @lio990527 made their first contribution in https://github.com/w7corp/easywechat/pull/2537

    Full Changelog: https://github.com/w7corp/easywechat/compare/5.28.0...5.29.0

    Source code(tar.gz)
    Source code(zip)
  • 3.7.3(Jul 6, 2022)

    What's Changed

    • 3.x 视频号售后单接口统一参数 避免参数问题 by @hpppenely in https://github.com/w7corp/easywechat/pull/2531

    Warning

    1. 此版本包含破坏性变更
    2. 此版本为 3.x 最后一个版本,3.x 分支将停止维护。

    Full Changelog: https://github.com/w7corp/easywechat/compare/3.7.2...3.7.3

    Source code(tar.gz)
    Source code(zip)
  • 3.7.2(Jul 4, 2022)

    What's Changed

    • 3.x 视频号更新组件 添加场景接入申请接口,退款单接口格式调整 by @hpppenely in https://github.com/w7corp/easywechat/pull/2519

    Full Changelog: https://github.com/w7corp/easywechat/compare/3.7.1...3.7.2

    Source code(tar.gz)
    Source code(zip)
  • 6.7.1(Jul 1, 2022)

    What's Changed

    • 修复无法通过 withFile 方式上传文件的小问题 by @bangbangda in https://github.com/w7corp/easywechat/pull/2522
    • [docs] 预置参数的传递文档优化 by @aa24615 in https://github.com/w7corp/easywechat/pull/2525
    • [fixbug] 修复withXxxx不生效 by @aa24615 in https://github.com/w7corp/easywechat/pull/2524
    • [tests] 预置参数的传递 下划线测试 by @aa24615 in https://github.com/w7corp/easywechat/pull/2526
    • [fixbug] 修复微信支付withXxx方法不存在 by @aa24615 in https://github.com/w7corp/easywechat/pull/2527
    • 优化withAppId IDE提示 by @aa24615 in https://github.com/w7corp/easywechat/pull/2529
    • [docs] install v6 by @aa24615 in https://github.com/w7corp/easywechat/pull/2528

    Full Changelog: https://github.com/w7corp/easywechat/compare/6.7.0...6.7.1

    Source code(tar.gz)
    Source code(zip)
  • 6.7.0(Jun 28, 2022)

    What's Changed

    • 支持with方式自定义header by @bangbangda in https://github.com/w7corp/easywechat/pull/2516

    Full Changelog: https://github.com/w7corp/easywechat/compare/6.6.2...6.7.0

    Source code(tar.gz)
    Source code(zip)
  • 6.6.2(Jun 27, 2022)

    What's Changed

    • [docs] 自定义 access_token by @aa24615 in https://github.com/w7corp/easywechat/pull/2498
    • fix: 公众号消息处理器的中间件形参不支持带命名空间的类名参数 by @hmingv in https://github.com/w7corp/easywechat/pull/2511
    • fix: 获取AccessToken对象,得不到refresh方法的提示 by @hmingv in https://github.com/w7corp/easywechat/pull/2514

    New Contributors

    • @hmingv made their first contribution in https://github.com/w7corp/easywechat/pull/2511

    Full Changelog: https://github.com/w7corp/easywechat/compare/6.6.1...6.6.2

    Source code(tar.gz)
    Source code(zip)
  • 5.28.0(Jun 27, 2022)

    What's Changed

    • 增加了企微服务商授获取应用的接口许可状态接口 by @keller31 in https://github.com/w7corp/easywechat/pull/2510
    • 【新增】企微服务商-接口许可-企业自动激活状态设置与查询 by @keller31 in https://github.com/w7corp/easywechat/pull/2515

    New Contributors

    • @keller31 made their first contribution in https://github.com/w7corp/easywechat/pull/2510

    Full Changelog: https://github.com/w7corp/easywechat/compare/5.27.2...5.28.0

    Source code(tar.gz)
    Source code(zip)
  • 5.27.2(Jun 23, 2022)

  • 5.27.0(Jun 16, 2022)

    What's Changed

    • 企业微信获取注册码,需要推广包的模板ID才行。 by @jatyPeng in https://github.com/w7corp/easywechat/pull/2503

    New Contributors

    • @jatyPeng made their first contribution in https://github.com/w7corp/easywechat/pull/2503

    Full Changelog: https://github.com/w7corp/easywechat/compare/5.26.0...5.27.0

    Source code(tar.gz)
    Source code(zip)
  • 5.26.0(Jun 14, 2022)

    What's Changed

    • feat 获取企业群发消息结果接口增加结果数和游标参数 by @moniang in https://github.com/w7corp/easywechat/pull/2485
    • feat 增加企业微信设备管理接口 by @moniang in https://github.com/w7corp/easywechat/pull/2486
    • 5.x by @elim051 in https://github.com/w7corp/easywechat/pull/2500

    Full Changelog: https://github.com/w7corp/easywechat/compare/5.25.0...5.26.0

    Source code(tar.gz)
    Source code(zip)
  • 6.6.1(Jun 9, 2022)

    What's Changed

    • [fix] 修复secret修改后,拿到的还是上次的token by @aa24615 in https://github.com/w7corp/easywechat/pull/2484
    • Update scan-pay.md by @joker9657 in https://github.com/w7corp/easywechat/pull/2491

    New Contributors

    • @joker9657 made their first contribution in https://github.com/w7corp/easywechat/pull/2491

    Full Changelog: https://github.com/w7corp/easywechat/compare/6.6.0...6.6.1

    Source code(tar.gz)
    Source code(zip)
  • 5.25.0(May 24, 2022)

    What's Changed

    • feat 增加企业微信第三方服务商通讯录相关接口 by @moniang in https://github.com/w7corp/easywechat/pull/2480
    • feat 增加结束临时会话接口 by @moniang in https://github.com/w7corp/easywechat/pull/2481
    • feat 增加企业微信服务商接口调用许可订单管理,账号管理接口 by @moniang in https://github.com/w7corp/easywechat/pull/2482

    Full Changelog: https://github.com/w7corp/easywechat/compare/5.24.0...5.25.0

    Source code(tar.gz)
    Source code(zip)
Owner
微擎开源计划
微擎开源计划
Zoho CRM API SDK is a wrapper to Zoho CRM APIs. By using this sdk, user can build the application with ease

Archival Notice: This SDK is archived. You can continue to use it, but no new features or support requests will be accepted. For the new version, refe

null 81 Nov 4, 2022
The 1Password Connect PHP SDK provides your PHP applications access to the 1Password Connect API hosted on your infrastructure and leverage the power of 1Password Secrets Automation

1Password Connect PHP SDK The 1Password Connect PHP SDK provides your PHP applications access to the 1Password Connect API hosted on your infrastructu

Michelangelo van Dam 12 Dec 26, 2022
Facebook SDK for PHP (v6) - allows you to access the Facebook Platform from your PHP app

Facebook SDK for PHP (v6) This repository contains the open source PHP SDK that allows you to access the Facebook Platform from your PHP app. Installa

null 0 Aug 10, 2022
Unofficial Firebase Admin SDK for PHP

Firebase Admin PHP SDK Table of Contents Overview Installation Documentation Support License Overview Firebase provides the tools and infrastructure y

kreait 1.9k Jan 3, 2023
Notion PHP SDK

Notion PHP SDK This is an unofficial PHP SDK for the new public Notion API. It's work in progress as we didn't get the change to be included to the pr

Codecycler 43 Nov 29, 2022
爱发电非官方简易 PHP SDK

afdian-php-sdk 爱发电非官方简易 PHP SDK by Akkariin 这是一个简单的 SDK,可以用于查询爱发电的订单和赞助者信息 Installation 将项目 clone 到本地即可 git clone https://github.com/ZeroDream-CN/afdi

ZeroDream-CN 17 Nov 7, 2022
AWS Cognito package using the AWS SDK for PHP/Laravel

Laravel Package to manage Web and API authentication with AWS Cognito AWS Cognito package using the AWS SDK for PHP This package provides a simple way

EllaiSys 74 Nov 15, 2022
PHP SDK to interact with the Casper Network nodes via RPC

casper-php-sdk PHP SDK to interact with Casper Network nodes via RPC Install composer require make-software/casper-php-sdk Examples RPC Client: $node

MAKE Technology LLC 7 May 8, 2022
A Laravel 5+ (and 4) service provider for the AWS SDK for PHP

AWS Service Provider for Laravel 5/6/7/8 This is a simple Laravel service provider for making it easy to include the official AWS SDK for PHP in your

Amazon Web Services 1.5k Dec 28, 2022
A complete Notion SDK for PHP developers.

notion-sdk-php A complete Notion SDK for PHP developers. Installation composer require mariosimao/notion-php Getting started A Notion token will be n

Mario Simão 77 Nov 29, 2022
SDK of the LINE Login API for PHP

LINE Login for PHP SDK of the LINE Login API for PHP Documentation See the official API documentation for more information. Installation Use the packa

null 4 Sep 15, 2022
PHP SDK - Flexie CRM fiskalizimi solution

PHP SDK - Flexie CRM fiskalizimi solution Fiskalizimi PHP SDK allows you to talk and generate your e-invoices programmatically from your own solution

Flexie CRM 3 Dec 30, 2021
PHP Digital Green Certificate SDK

Digital Green Certificate SDK PHP Indice Contesto Installazione Uso Licenza Dettaglio licenza Contesto Attenzione, questo repository è derivato dalle

null 13 Jun 20, 2022
Esse SDK em PHP foi desenvolvido no intuito de tornar mais prático a integração com nossa API.

Sobre Beedoo SDK Acessar documentação completa da Beedoo API. A API é organizada seguindo a arquitetura REST, boas práticas, convenções e padrões como

Beedoo Edtech 5 Dec 2, 2021
A PHP SDK for accessing the OpenAI GPT-3 API

OpenAI GPT-3 Api Client in PHP Installation You can install the package via composer: composer require orhanerday/open-ai Usage use Orhanerday\OpenAi\

Orhan erday 462 Jan 2, 2023
The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login

Facebook SDK for PHP (v5) This repository contains the open source PHP SDK that allows you to access the Facebook Platform from your PHP app. Installa

Meta Archive 3.1k Dec 30, 2022
PHP SDK for the Sellix Developers API (developers.sellix.io)

PHP SDK for the Sellix Developers API (developers.sellix.io). Quickly get started and create products, payments and more using PHP.

Sellix 7 Nov 23, 2022
Alibaba Cloud SDK for PHP

English | 简体中文 Alibaba Cloud SDK for PHP Alibaba Cloud SDK for PHP is a development kit that supports quick access to products, dependency on Alibaba

Alibaba Cloud 493 Dec 16, 2022
Aliyun OSS SDK for PHP

Alibaba Cloud OSS SDK for PHP README of Chinese Overview Alibaba Cloud Object Storage Service (OSS) is a cloud storage service provided by Alibaba Clo

Alibaba Cloud 939 Dec 29, 2022