mingyoung / easywechat-composer Goto Github PK
View Code? Open in Web Editor NEW🚀 The composer plugin for EasyWeChat.
Home Page: https://www.easywechat.com
License: MIT License
🚀 The composer plugin for EasyWeChat.
Home Page: https://www.easywechat.com
License: MIT License
Laravel 5.8 的缓存存活时间单位从分钟变成了秒,造成 EasyWeChatComposer\Laravel\ServiceProvider::getMd5Key()
的行为在 Laravel 5.8 之前和之后不一致。
在服务提供者中加载路由,在未使用到路由的项目中,会导致 boot
严重慢
easywechat-composer/src/Laravel/ServiceProvider.php
Lines 23 to 32 in e0a2419
在核心代码中不必指定 declare(strict_types=1);
easywechat-composer/src/Laravel/ServiceProvider.php
Lines 1 to 3 in e0a2419
使用 composer.lock 的哈希作为 key,一方面是安全性可能被枚举到。另外就是性能上,会多一次文件io。再如果项目的 composer.lock 被删除了,会报错?
easywechat-composer/src/Laravel/ServiceProvider.php
Lines 44 to 60 in e0a2419
Usage
use EasyWeChatComposer\EasyWeChat;
// Enable:
EasyWeChat::withDelegation()->toHost('https://yourdomain.com')->enable();
// Disable:
EasyWeChat::withDelegation()->toHost('https://yourdomain.com')->disable();
// Use as usual:
Factory::openPlatform([])...;
Supports
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.