以下总结了一些开发中发现以及用到的比较好用的扩展,会不断地进行更新,如果有好的扩展推荐,也可以留言我会及时补充上,方便自己和大家使用。
更新说明:
https://gitee.com/zjq528/yii2-cron
https://gitee.com/zjq528/php-validate
https://github.com/zhang-jianqiang/dysms
https://github.com/flc1125/alidayu
https://github.com/zhang-jianqiang/omnipay-wechatpay
https://github.com/zhang-jianqiang/omnipay-alipay
https://github.com/zhang-jianqiang/omnipay-unionpay
https://github.com/zhang-jianqiang/guzzle
https://github.com/zhang-jianqiang/zttp
https://github.com/yiisoft/yii2-redis
https://github.com/overtrue/wechat
https://github.com/zhang-jianqiang/qiuniu_ueditor
https://github.com/zhang-jianqiang/Mojo-Weixin
https://github.com/erusev/parsedown
https://github.com/mpdf/mpdf
//使用
$mpdf = new Mpdf();
//防止中文乱码
$mpdf->autoLangToFont = true;
$mpdf->autoScriptToLang = true;
$mpdf->WriteHTML('Hello world!你好
');
//直接输出到浏览器
$mpdf->Output();
//直接下载文件
$mpdf->Output('test.pdf', 'D');
https://phpspreadsheet.readthedocs.io/en/latest/
可道云
http://kodcloud.com/
https://github.com/rakit/validation
https://github.com/2amigos/qrcode-library
http://www.phpbone.com/phpanalysis/
https://github.com/PHPMailer/PHPMailer
test:
$phpmailer = new PHPMailer();
$phpmailer->isSMTP();
$phpmailer->SMTPDebug = 2;
$phpmailer->SMTPAuth = true;
$phpmailer->Host = 'smtp.qq.com';
$phpmailer->SMTPSecure = 'ssl';
$phpmailer->Port = 465;
$phpmailer->CharSet = 'UTF-8';
$phpmailer->Username = '***[email protected]';
$phpmailer->Password = '1234551112';
$phpmailer->FromName = '***[email protected]';
$phpmailer->setFrom('***[email protected]', '测试');
$phpmailer->isHTML(true);
$phpmailer->addAddress('***[email protected]');
$phpmailer->Subject = '我正在测试发送邮件';
$phpmailer->Body = 'Hello World
';
$status = $phpmailer->send();
http://www.rageframe.com/#snapshoot
https://github.com/bupt1987/html-parser
https://github.com/giggsey/libphonenumber-for-php
https://github.com/overtrue/pinyin
https://github.com/DenisOgr/yii2-cronjobs
官网:https://jwt.io/
// php插件
https://github.com/lcobucci/jwt
https://xlswriter-docs.viest.me/zh-cn/an-zhuang/pecl-tui-jian
https://github.com/mtdowling/cron-expression
https://github.com/hightman/xunsearch
官网详细教程链接:http://www.xunsearch.com/
// 这是一个掘金上看到的非常全的 php 资源列表
https://juejin.im/entry/58fc427161ff4b00666424cb
这是一个别人写的 php 文件加密的扩展,注意是 php 扩展,简单测试了一下简单文件可用,但是有一个问题,安装之后 composer 不可用了,以下链接是我 fork 作者的项目,并在一位大神的指导下修复了 php7.2 启用扩展后不能使用 composer 问题
https://gitee.com/zjq528/php-screw-plus