easywechat README

The project's README from github.com/w7corp/easywechat. As one markdown file: README.md.

EasyWeChat

📦 一个 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();

文档和链接

官网 · 讨论 · 更新策略

:heart: 支持我

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

可爱的贡献者们

License

MIT

easywechat (w7corp/easywechat)

Searching Database…

What is this?EasyWeChat is an open-source PHP SDK for WeChat development, maintained by WeEngine (微擎), an open-source SaaS platform provider.
Is it a hosted service, or something I add to my own codebase?It is a library: you install it into your own PHP project with Composer and call WeChat's APIs from your server-side code — there is nothing to deploy on its own.
What does my server need before installing?PHP 8.0.2 or newer and Composer 2.0 or newer — that is the entire environment requirement the README lists.
Is the SDK enough on its own, or do I need my own WeChat credentials?The SDK only wraps WeChat's APIs — it does nothing without your own WeChat-side app and its credentials. The README's basic example is a server-side Official Account (公众号) integration, which presumes you have an account to connect to.
Do I need to be a PHP developer to use it?Yes — it lives inside a PHP 8+ codebase, so it is aimed at developers building server-side WeChat features in PHP.
What is WeEngine (微擎)?WeEngine is an open-source SaaS platform provider, and EasyWeChat is one of the open-source products it maintains. The project has been on GitHub since 2015 and is MIT-licensed.
Can I use it in a commercial project?Yes. EasyWeChat is MIT-licensed, so commercial use, modification and redistribution are permitted as long as the license notice is kept.
What does a first working example look like?The README walks through a basic server-side example for a WeChat Official Account (公众号服务端) — the typical starting point — and links to the official site, community discussions and its update policy for everything else.
Creator
w7corp
Size
7.1 MB
Stars
10.4K
Age
11y
Commits · 90 Days