overtrue/wechat

This package is abandoned and no longer maintained. The author suggests using the w7corp/easywechat package instead.

微信SDK

Fund package maintenance!
overtrue

Installs: 3 016 055

Dependents: 212

Suggesters: 2

Security: 0

Stars: 10 206

Watchers: 508

Forks: 2 401

Open Issues: 6

6.15.1 2024-03-29 12:23 UTC

This package is auto-updated.

Last update: 2024-04-25 03:41:12 UTC


README

📦 一个 PHP 微信开发 SDK,开源 SaaS 平台提供商 微擎 旗下开源产品。

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

环境需求

安装

composer require w7corp/easywechat

使用示例

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

<?php

use EasyWeChat\OfficialAccount\Application;

$config = [
    'app_id' => 'wx3cf0f39249eb0exxx',
    'secret' => 'f1c242f4f28f735d4687abb469072xxx',
    'aes_key' => 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFG',
    'token' => 'easywechat',
];

$app = new Application($config);

$server = $app->getServer();

$server->with(fn() => "您好!EasyWeChat!");

$response = $server->serve();

文档和链接

官网 · 讨论 · 更新策略

❤️ 支持我

如果你喜欢我的项目并想支持它,点击这里 ❤️

由 JetBrains 赞助

非常感谢 Jetbrains 为我提供的 IDE 开源许可,让我完成此项目和其他开源项目上的开发工作。

可爱的贡献者们

68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f7765636861742f636f6e7472696275746f72732e7376673f77696474683d383930

License

MIT