初衷
以下总结了一些开发中发现以及用到的比较好用的扩展,会不断地进行更新,如果有好的扩展推荐,也可以留言我会及时补充上,方便自己和大家使用。
更新说明:
- 2019年11月11日更新,添加 php 文件加密扩展
- 2019年10月28日更新,添加 php 资源列表
- 2019年9月18日更新,添加xunsearch php中文分词扩展
- 2019年9月12日更新,添加crontab解析扩展
- 2019年9月11日更新,添加php高效操作excel的扩展
- 2019年8月5日更新,添加php生成jwt token插件
- 2019年6月16日更新,添加一款极度好用的yii2定时任务管理插件
- 2019年6月6日更新,添加汉字转拼音插件
- 2019年5月31日更新
1.定时任务管理扩展
https://gitee/zjq528/yii2-cron
2.php验证扩展(类似yii2)
https://gitee/zjq528/php-validate
3.阿里大于短信扩展
https://github/zhang-jianqiang/dysms
https://github/flc1125/alidayu
4.微信支付扩展
https://github/zhang-jianqiang/omnipay-wechatpay
5.支付宝支付扩展
https://github/zhang-jianqiang/omnipay-alipay
6.银联支付扩展
https://github/zhang-jianqiang/omnipay-unionpay
7.http请求扩展guzzle(没有zttp好用)
https://github/zhang-jianqiang/guzzle
8.http请求扩展zttp
https://github/zhang-jianqiang/zttp
9.yii2-redis扩展
https://github/yiisoft/yii2-redis
10.微信公众号扩展(easyWechat)
https://github/overtrue/wechat
11.七牛-ueditor(可以直接传图到七牛云js插件)
https://github/zhang-jianqiang/qiuniu_ueditor
12.Linux微信网页扩展
https://github/zhang-jianqiang/Mojo-Weixin
13.PHP解析Markdown
https://github/erusev/parsedown
14.PHP生成pdf文档
https://github/mpdf/mpdf
//使用
$mpdf = new Mpdf();
//防止中文乱码
$mpdf->autoLangToFont = true;
$mpdf->autoScriptToLang = true;
$mpdf->WriteHTML('<h1>Hello world!你好</h1>');
//直接输出到浏览器
$mpdf->Output();
//直接下载文件
$mpdf->Output('test.pdf', 'D');
15.最新phpexcel扩展
https://phpspreadsheet.readthedocs.io/en/latest/
16.开源PHP文件管理系统
可道云
http://kodcloud/
17.php数据校验扩展
https://github/rakit/validation
18.生成二维扩展
https://github/2amigos/qrcode-library
19.PhpAnalysis分词扩展
http://www.phpbone/phpanalysis/
20.PHPMailer发送邮件
https://github/PHPMailer/PHPMailer
test:
$phpmailer = new PHPMailer();
$phpmailer->isSMTP();
$phpmailer->SMTPDebug = 2;
$phpmailer->SMTPAuth = true;
$phpmailer->Host = 'smtp.qq';
$phpmailer->SMTPSecure = 'ssl';
$phpmailer->Port = 465;
$phpmailer->CharSet = 'UTF-8';
$phpmailer->Username = '***83966@qq';
$phpmailer->Password = '1234551112';
$phpmailer->FromName = '***83966@qq';
$phpmailer->setFrom('***83966@qq', '测试');
$phpmailer->isHTML(true);
$phpmailer->addAddress('***43791@qq');
$phpmailer->Subject = '我正在测试发送邮件';
$phpmailer->Body = '<h1>Hello World</h1>';
$status = $phpmailer->send();
21.rageframe yii2框架
http://www.rageframe/#snapshoot
22.数据抓取类库
https://github/bupt1987/html-parser
23.用于解析,格式化,存储和验证国际电话号码的PHP库
https://github/giggsey/libphonenumber-for-php
24.汉字转拼音
https://github/overtrue/pinyin
25.yii2计划任务插件
https://github/DenisOgr/yii2-cronjobs
26.生成jwt token
官网:https://jwt.io/
// php插件
https://github/lcobucci/jwt
27.php高效操作excle的扩展
https://xlswriter-docs.viest.me/zh-cn/an-zhuang/pecl-tui-jian
28.解析crontab扩展
https://github/mtdowling/cron-expression
28.迅搜扩展
https://github/hightman/xunsearch
官网详细教程链接:http://www.xunsearch/
29.php资源列表
// 这是一个掘金上看到的非常全的 php 资源列表
https://juejin.im/entry/58fc427161ff4b00666424cb
30.php文件加密扩展
这是一个别人写的 php 文件加密的扩展,注意是 php 扩展,简单测试了一下简单文件可用,但是有一个问题,安装之后 composer 不可用了,以下链接是我 fork 作者的项目,并在一位大神的指导下修复了 php7.2 启用扩展后不能使用 composer 问题
https://gitee/zjq528/php-screw-plus
更多推荐
php常用插件
发布评论