php常用插件
初衷
以下總結了一些開發中發現以及用到的比較好用的擴展,會不斷地進行更新,如果有好的擴展推薦,也可以留言我會及時補充上,方便自己和大家使用。
更新說明:
- 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.com/zjq528/yii2-cron2.php驗證擴展(類似yii2)
https://gitee.com/zjq528/php-validate3.阿里大于短信擴展
https://github.com/zhang-jianqiang/dysmshttps://github.com/flc1125/alidayu4.微信支付擴展
https://github.com/zhang-jianqiang/omnipay-wechatpay5.支付寶支付擴展
https://github.com/zhang-jianqiang/omnipay-alipay6.銀聯支付擴展
https://github.com/zhang-jianqiang/omnipay-unionpay7.http請求擴展guzzle(沒有zttp好用)
https://github.com/zhang-jianqiang/guzzle8.http請求擴展zttp
https://github.com/zhang-jianqiang/zttp9.yii2-redis擴展
https://github.com/yiisoft/yii2-redis10.微信公眾號擴展(easyWechat)
https://github.com/overtrue/wechat11.七牛-ueditor(可以直接傳圖到七牛云js插件)
https://github.com/zhang-jianqiang/qiuniu_ueditor12.Linux微信網頁擴展
https://github.com/zhang-jianqiang/Mojo-Weixin13.PHP解析Markdown
https://github.com/erusev/parsedown14.PHP生成pdf文檔
https://github.com/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.com/17.php數據校驗擴展
https://github.com/rakit/validation18.生成二維擴展
https://github.com/2amigos/qrcode-library19.PhpAnalysis分詞擴展
http://www.phpbone.com/phpanalysis/20.PHPMailer發送郵件
https://github.com/PHPMailer/PHPMailertest: $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 = '***83966@qq.com'; $phpmailer->Password = '1234551112'; $phpmailer->FromName = '***83966@qq.com'; $phpmailer->setFrom('***83966@qq.com', '測試'); $phpmailer->isHTML(true); $phpmailer->addAddress('***43791@qq.com'); $phpmailer->Subject = '我正在測試發送郵件'; $phpmailer->Body = '<h1>Hello World</h1>'; $status = $phpmailer->send();21.rageframe yii2框架
http://www.rageframe.com/#snapshoot22.數據抓取類庫
https://github.com/bupt1987/html-parser23.用于解析,格式化,存儲和驗證國際電話號碼的PHP庫
https://github.com/giggsey/libphonenumber-for-php24.漢字轉拼音
https://github.com/overtrue/pinyin25.yii2計劃任務插件
https://github.com/DenisOgr/yii2-cronjobs26.生成jwt token
官網:https://jwt.io/ // php插件 https://github.com/lcobucci/jwt27.php高效操作excle的擴展
https://xlswriter-docs.viest.me/zh-cn/an-zhuang/pecl-tui-jian28.解析crontab擴展
https://github.com/mtdowling/cron-expression28.迅搜擴展
https://github.com/hightman/xunsearch官網詳細教程鏈接:http://www.xunsearch.com/29.php資源列表
// 這是一個掘金上看到的非常全的 php 資源列表 https://juejin.im/entry/58fc427161ff4b00666424cb30.php文件加密擴展
這是一個別人寫的 php 文件加密的擴展,注意是 php 擴展,簡單測試了一下簡單文件可用,但是有一個問題,安裝之后 composer 不可用了,以下鏈接是我 fork 作者的項目,并在一位大神的指導下修復了 php7.2 啟用擴展后不能使用 composer 問題
https://gitee.com/zjq528/php-screw-plus總結
- 上一篇: Nicescroll滚动条插件手机端问题
- 下一篇: 从零开始攻略PHP(8)——面向对象(下