# yii2干货集 **Repository Path**: tbqphp/awesome-yii2 ## Basic Information - **Project Name**: yii2干货集 - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: tbq - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-28 - **Last Updated**: 2024-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # yii2资料集 # ## 文档 ## - [Yii2 干货集](https://github.com/forecho/awesome-yii2) - [Yii 2.0 权威指南中文版](https://www.yiichina.com/doc/guide/2.0) - [Yii Framework 2.0 API 文档](https://www.yiichina.com/doc/api/2.0) ## 项目模板 ## - [yii2-app-basic](https://github.com/yiisoft/yii2-app-basic) 基础模版 composer create-project --prefer-dist yiisoft/yii2-app-basic basic - [yii2-app-advanced](https://github.com/yiisoft/yii2-app-advanced) 高级模版 - [我自己的多项目模板 包括admin frantend restful statics, 集成了yiisoft/yii2-bootstrap yiisoft/yii2-smarty yiiexttbq/adminlte sizeg/yii2-jwt yiiexttbq/user](https://github.com/yiiapps/yii-advanced) - [单项目模板 ](https://github.com/yiiapps/yii-basic-smarty-adminlte) ## 开源程序 ## - [yiiapps/basic-blog](https://github.com/yiiapps/basic-blog) 一个简易博客, 使用basic模版开发, 使用了blog扩展 admin扩展 adminlte为后台html模版 - [tbqphp/cms_yii_liufee 一个cms](https://gitee.com/tbqphp/cms_yii_liufee) - [GetYii:论坛](https://github.com/iiyii/getyii) ## 扩展 ## - [yiiexttbq/blog](https://github.com/yiiapps/blogmodule) 一个blog扩展 [yiiapps/adminlte-asset-ext](https://github.com/yiiapps/adminlte-asset-ext)和[Yii2 Blog](https://github.com/funson86/yii2-blog) - [yiiapps/adminlte-asset-ext(yiiexttbq/adminlte)](https://github.com/yiiapps/adminlte-asset-ext) 基于mdmsoft/yii2-admin和[dmstr/yii2-adminlte-asset](https://github.com/dmstr/yii2-adminlte-asset) - yiiexttbq/user - yiiexttbq/yuqiutils - yiisoft/yii2-bootstrap - yiisoft/yii2-smarty - sizeg/yii2-jwt ----------------------------- 下面: _斜体_ 表示已验证无法安装, 或没必要验证 **黑体** 表示已验证可以使用 awesome-yii2 ================ Yii2 干货集,欢迎点 Watch 订阅,也欢迎提交 Pull Requests。(提交过来的开源项目最好是你用过的,并且觉得好用的) ## Sites 网站 - [yiifeed](http://yiifeed.com/):Yii 最新动态都在这里 - [yiigist](https://yiigist.com/):Yii 专用的 Packages - [YiiPowered](http://yiipowered.com/en):用 Yii 开发的项目案例,包括开源不开源的,包括 Yii1 和 Yii2,到目前为止有300多个案例了。 - [Yii2 学习小专栏](https://xiaozhuanlan.com/yiier):forecho 开的付费小专栏,欢迎有需要的朋友订阅。 ## Docs 文档 - [Yii Framework 2.0 类参考手册](http://www.yiiframework.com/doc-2.0/index.html) - [Yii Framework 2.0 权威指南](http://www.yiiframework.com/doc-2.0/guide-index.html) - [Yii Framework 2.0 权威指南镜像](http://stuff.cebe.cc/yii2docs/)(每次github有提交时15分钟后自动更新比官方那个及时) - [Yii Framework 2.0 中文权威指南 ](https://github.com/yiisoft/yii2/tree/master/docs/guide-zh-CN) - [Yii2 官方文档及其他文本的中文本土化项目](https://github.com/yii2-chinesization/yii2-zh-cn) - [yii2-cookbook](https://github.com/samdark/yii2-cookbook) - [yii2-coding-standards](https://github.com/yiisoft/yii2-coding-standards):Yii2 代码标准检查 - [yii2-learning](http://dixonsatit.github.io/yii2-learning/):是泰语的!但是可以看一下代码。 ## 基于 Yii2 的开源程序 - [GetYii](https://github.com/iiyii/getyii):论坛 - _[dotplant2](https://github.com/DevGroup-ru/dotplant2):来自俄罗斯的电子商务CMS_ - [yincart2](https://github.com/yincart2/galaxy):电商星系系统,提供零售、批发、特卖、垂直电商、分销、O2O、C2C、移动电商、微信电商、社交电商、P2P、众筹等电商解决方案,根据需要选择不同的模块组合 - _[yii2-shop](https://github.com/samdark/yii2-shop):使用Yii 2.0实现简单商店的示例项目_ - [funshop](https://github.com/funson86/funshop):一个灵活的商城。 - _[huajuan](https://github.com/callmez/huajuan):Yii2 实现的问答,微信,文章系统 Demo_ - [dcms2](https://github.com/djfly/dcms2):yii2编写的cms - _[MoBlog](https://github.com/mojifan/MoBlog):一个基于Yii2的博客系统_ - [EasyiiCMS](https://github.com/noumo/easyii):基于 Yii2 的 CMS 系统 - _[yii2-starter-kit](https://github.com/trntv/yii2-starter-kit):Yii2 开箱即用_ - [yunjianyi](https://github.com/chonder/yunjianyi):基于 Yii2 打造的 V2EX - [yii2-platform-basic](https://github.com/gromver/yii2-platform-basic):基于 Yii2 基础版打造的 CMS - _[lulucms2](https://github.com/yiifans/lulucms2) :LuLu CMS2,模块化开发,集成强大的权限管理功能,非常适合二次开发_ - [hassiumsoft/hasscms-app](https://github.com/hassiumsoft/hasscms-app):基于 Yii2 开发的 一个现代的、轻量级的、可扩展的PHP CMS 系统。 - [yiisoft-contrib/yiiframework.com](https://github.com/yiisoft-contrib/yiiframework.com):新版官网首页正在开发中 - [githubjeka/angular-yii2](https://github.com/githubjeka/angular-yii2):yii2 restful + angular 实现前后端分离 - [zephir/luya](https://github.com/zephir/luya):基于Yii2 CMS的编程框架。 - [humhub](https://github.com/humhub/humhub):开源社交网络,以前说 Yii 1 现在迁移到 Yii2。 - [xiaoego.com](https://github.com/daixianceng/xiaoego.com):xiaoego.com源码,校园O2O购物平台。 - [YeeCMS](https://github.com/yeesoft/yii2-yee-cms):基于 Yii2 的 CMS,独到之处是借用 composer 安装卸载模块,你看看他的 [composer.json](https://github.com/yeesoft/yii2-yee-cms/blob/master/composer.json) 文件你就知道了。 - [Fecshop](https://github.com/fancyecommerce/yii2_fecshop) :Fecshop 全称为 Fancy ECommerce Shop,是基于 PHP Yii2框架之上开发的一款优秀的开源电商系统。 - _[jamband/plusarchive.com](https://github.com/jamband/plusarchive.com):如果想在 Yii2 中使用 webpack,可以参考这个项目。_ ## Component 组件 - [robregonm/yii2-pdf](https://github.com/robregonm/yii2-pdf):把 HTML 渲染成 PDF。 - [yii2tech/balance](https://github.com/yii2tech/balance):强大的钱包系统。 ## Module 模块 - [yii2-webshell](https://github.com/samdark/yii2-webshell) 在 web 下运行shell - [zhuravljov/yii2-rest](https://github.com/zhuravljov/yii2-rest) Yii2 REST 客户端 - **[mdmsoft/yii2-admin](https://github.com/mdmsoft/yii2-admin) RBAC Manager 基于角色的权限管理** - **[yii2-user](https://github.com/dektrium/yii2-user)** - [yii2-plugins-system](https://github.com/loveorigami/yii2-plugins-system) Yii2 plugins system module with event manager and shortcodes as WordPress - [yii2-notification-wrapper](https://github.com/loveorigami/yii2-notification-wrapper) Yii2-notification-wrapper module renders a message from session flash (with ajax, pjax support and etc.) through Growl, Noty, Toastr and more libraries - [yii2-setting](https://github.com/funson86/yii2-setting):常见的在后台设置,可以使用在任何地方 - [yii2-wechat](https://github.com/callmez/yii2-wechat):基于Yii2实现的微信模块 - [CostaRico/yii2-images](https://github.com/CostaRico/yii2-images):图片尺寸裁剪解决方案 - _[myweishanli/yii2-extjs-rbac](https://github.com/myweishanli/yii2-extjs-rbac):Yii2 ExtJs5 RBAC+ACL 权限管理系统_ - [bedezign/yii2-audit](https://github.com/bedezign/yii2-audit):记录和显示web/cli请求,数据库更改php/js错误和相关数据。 - [Chiliec/yii2-vote](https://github.com/Chiliec/yii2-vote):提供点赞的模块 - [codemix/yii2-bs3activeform](https://github.com/codemix/yii2-bs3activeform) :Yii2 表单增强模块,有[在线 Demo](http://codemix.github.io/yii2-bs3activeform/index.html)。 - [yii2mod/yii2-cashier](https://github.com/yii2mod/yii2-cashier):帮你处理付费订阅棘手问题,比方说订阅专栏一个月/一年等。 - [yiier/yii2-rbac](https://github.com/yiier/yii2-rbac): 又一个 RBAC 模块 - [yiier/yii2-humans-log](https://github.com/yiier/yii2-humans-log): 人类能看得懂的操作日志 ## Widgets 小部件 - [kop/yii2-scroll-pager](https://github.com/kop/yii2-scroll-pager):瀑布滚动翻页 - [yii2-widget-linkpager](https://github.com/liyunfang/yii2-widget-linkpager):带分页大小的分页栏 - [yii2-ajaxform](https://github.com/lichunqiang/yii2-ajaxform):通过ajax提交表单 - [lichunqiang/yii2-sweet-submit](https://github.com/lichunqiang/yii2-sweet-submit):[sweetalert](https://github.com/t4t5/sweetalert)一个漂亮的弹出框 - [bizley/yii2-content-tools](https://github.com/bizley/yii2-content-tools):Yii2 实现 [ContentTools](http://getcontenttools.com/) 编辑器 - [bupy7/yii2-dynamic-fields](https://github.com/bupy7/yii2-dynamic-fields):表单动态增加行的组件(demo可以看[Adding dynamic field](http://formvalidation.io/examples/adding-dynamic-field/)) ## Extension 扩展 - [yiisoft](https://github.com/yiisoft):Yii2 官方扩展 - [kartik-v](http://demos.krajee.com/):kartik-v 高产合集 - [2amigos](http://yiiwheels.com/):2amigos 团队高产合集 - [yii2tech](https://github.com/yii2tech):yii2tech 团队合集 - [wbraganca](http://wbraganca.com/yii2extensions):又一个扩展集合,包括收货地址、上传图片、动态嵌套表单、选择框、标签框、上传图片、视频等扩展,最重要的是有在线 demo 体验。 - [yii2-beanstalk](https://github.com/udokmeci/yii2-beanstalk):beanstalk 队列 - [yii2-imagine](https://github.com/yiisoft/yii2-imagine):图片处理,缩略图生成 - [yii2-yunpian](https://github.com/dcb9/yii2-yunpian):一个基于 Yii2 的短信 SDK - [yii2-qiniu](https://github.com/dcb9/yii2-qiniu):集成七牛的 SDK - [pingpp-yii2](https://github.com/idarex/pingpp-yii2):Yii2 化 Ping++ SDK - [crontab](https://github.com/yii2tech/crontab):Yii2 定时任务 - [yii2-contextmenu](https://github.com/liyunfang/yii2-contextmenu):Yii2 grid行右击操作 - [yii2-smser](https://github.com/daixianceng/yii2-smser):国内短信扩展 - [yii2-echarts](https://github.com/daixianceng/yii2-echarts):Yii2 ECharts扩展 - [yiidoc/yii2-redactor](https://github.com/yiidoc/yii2-redactor):大名鼎鼎的 [Redactor](http://imperavi.com/redactor/) 在线编辑器 - [Hzhihua/yii2-dump](https://github.com/Hzhihua/yii2-dump):用命令行的方式自动对现有的数据库(SQL)生成数据库迁移(migrate)文件,内有预览图。 - [jamband/yii2-schemadump](https://github.com/jamband/yii2-schemadump):用命令的方式对现有的数据库(SQL)生成数据库迁移(migrate)代码,内有 gif 演示。 - [DenisOgr/yii2-cronjobs](https://github.com/DenisOgr/yii2-cronjobs):用系统计划任务来每分钟运行这个PHP计划任务,然后你程序的计划任务的调用就写在 cron 这个控制器里就可以了。 - [trntv/yii2-aceeditor](https://github.com/trntv/yii2-aceeditor):Yii2 封装 [ace 在线编辑器](https://ace.c9.io/) - [zelenin/yii2-semantic-ui](https://github.com/zelenin/yii2-semantic-ui):Yii2 封装 [Semantic UI](http://semantic-ui.com/) - [yiier/yii2-backup](https://github.com/yiier/yii2-backup):通过命令备份数据库的扩展,可以添加到定时任务实现定时备份发送到 Email。 - [yiier/yii2-aliyun-oss](https://github.com/yiier/yii2-aliyun-oss):基于官网 SDK 封装的 Yii2 使用阿里云OSS。 - [yiier/yiier-return-url](https://github.com/yiier/yiier-return-url):登录之后自动跳转登录之前的页面。 - [lichunqiang/yii2-swagger](https://github.com/lichunqiang/yii2-swagger):Yii2 结合 [swagger](http://swagger.io/) 让写 API 文档不再是难事。[Demo 地址](https://github.com/lichunqiang/yii2-swagger-demo) - [boundstate/yii2-mailgun](https://github.com/boundstate/yii2-mailgun):mailgun 邮箱服务扩展。 - [abhi1693/yii2-system-info](https://github.com/abhi1693/yii2-system-info):获取 Windows 或者 Linux 系统信息。 - [imanilchaudhari/yii2-rrssb](https://github.com/imanilchaudhari/yii2-rrssb):分享到社交网络(主要是针对国外一些网站)。 - [alexandernst/yii2-device-detect](https://github.com/alexandernst/yii2-device-detect):获取访问网站的设备信息。 - [yiister/yii2-advanced-grid](https://github.com/yiister/yii2-advanced-grid):高级版的 grid,有[在线 demo](http://yiister.ru/projects/advanced-grid) 体验。 - [hellowearemito/yii2-sentry](https://github.com/hellowearemito/yii2-sentry): 收集日志神器——[Sentry](https://getsentry.com/) 的 Yii2 扩展。 - [zhuravljov/yii2-queue](https://github.com/zhuravljov/yii2-queue):有望成为官网异步扩展的队列 - [moonlandsoft/yii2-phpexcel](https://github.com/moonlandsoft/yii2-phpexcel):导出 Excel - [windhoney/yii2-rest-rbac](https://github.com/windhoney/yii2-rest-rbac):Yii2前后分离,权限管理rbac--rest接口方式 - [imyangjin/yii2-mysql-json](https://github.com/imyangjin/yii2-mysql-json):扩展Yii2的ActiveRecord和ActiveQuery支持mysql json格式。使mysql json字段的操作和yii2无缝对接,使用更加简单。 - [yiier/yii2-action-store](https://github.com/yiier/yii2-action-store): 让你不再为点赞、收藏等烦恼的扩展。 - [yiier/yii2-smser](https://github.com/yiier/yii2-smser): 发短信 - [yiier/yii2-notification](https://github.com/yiier/yii2-notification): 管理通知 ## Themes 主题模板 - **[dmstr/yii2-adminlte-asset](https://github.com/dmstr/yii2-adminlte-asset):大名鼎鼎的 [AdminLTE](https://github.com/almasaeed2010/AdminLTE) 开源后台,我现在很多后台就用这个。配合[Yii2 使用 AdminLTE 模板](http://www.getyii.com/topic/564)教程使用更佳。** - [yiister/yii2-adminlte](https://github.com/yiister/yii2-adminlte):AdminLTE 后台模板的另一个选择,有做简单的 widget 封装,[在线体验地址](http://adminlte.yiister.ru/) - [yiister/yii2-gentelella](https://github.com/yiister/yii2-gentelella):Gentelella 后台模板,[在线体验地址](http://gentelella.yiister.ru/) ## Behaviors 行为 - [creocoder/yii2-nested-sets](https://github.com/creocoder/yii2-nested-sets):无限极嵌套分类 - [creocoder/yii2-taggable](https://github.com/creocoder/yii2-taggable):文章标签解决方案 - [OmgDef/yii2-multilingual-behavior](https://github.com/OmgDef/yii2-multilingual-behavior):多语言文章解决方案 - [cornernote/yii2-softdelete](https://github.com/cornernote/yii2-softdelete):软删除(伪删除) - [yii2mod/yii2-behaviors](https://github.com/yii2mod/yii2-behaviors):两个行为,CarbonBehavior 处理跟时间日期有关系的事情。PurifyBehavior 使用 HTMLPurifier 保证输出数据的安全性。 - [paulzi/yii2-nested-intervals](https://github.com/paulzi/yii2-nested-intervals):数结构分类的行为、层级分类行为。 ## Helpers 助手 - [kartik-v/yii2-helpers](https://github.com/kartik-v/yii2-helpers):[HTML](http://demos.krajee.com/helper-functions/html) 和 [枚举](http://demos.krajee.com/helper-functions/enum)的 helper - [DevGroup-ru/yii2-tag-dependency-helper](https://github.com/DevGroup-ru/yii2-tag-dependency-helper):非常棒的缓存设计方法,具体实现可以参考 [dotplant2](https://github.com/DevGroup-ru/dotplant2) 代码。 - [xinnianq/yii2-routes](https://github.com/xinnianq/yii2-routes) :获取yii2项目所有路由,方便权限控制 ## Posts 文章 - [Yii2 Day 1~7 系列文章](http://my.oschina.net/u/248080/blog?catalog=3273266) 文章不是非常深入,但是对初学者非常有用 - [使用Yii2时遇到的实际问题](http://segmentfault.com/a/1190000002428574) - [深入理解 Yii2.0](https://www.kancloud.cn/kancloud/yii-in-depth/50784) - [Bsourcecode Yii2.0 系列文章(英文)](http://www.bsourcecode.com/yiiframework2/) - [krajee Yii2.0 系列文章(英文)](http://webtips.krajee.com/tag/yii/) - [PHP开源框架Yii2系列](http://www.cnblogs.com/ganiks/tag/yii2/):有很多关于 Yii2 RESTful 的使用 ## Videos 视频 - [与《YII框架》不得不说的故事—基础篇](http://www.imooc.com/view/404):讲的很基础,建议初学者过一遍 - [与《YII框架》不得不说的故事—高效篇](http://www.imooc.com/view/440):主要讲了缓存和 Gii 的使用 - [与《YII框架》不得不说的故事—安全篇](http://www.imooc.com/learn/467):主要讲了 XSS 和 CSRF 等 - [与《YII框架》不得不说的故事—扩展篇](http://www.imooc.com/learn/491):主要讲了模块化、事件机制和行为还有依赖注入,话题越来越高级,很赞。 - [与《YII框架》不得不说的故事—工具篇](http://www.imooc.com/learn/520):主要讲了Gii、Composer 还有 Yii2 Debug 工具。 - [深入理解 Yii2.0 视频](http://v.youku.com/v_show/id_XODY4NDQ5NzA0.html?f=23331432&from=y1.7-1.3) - [Yii2 Development Visualization - youtube](https://www.youtube.com/watch?v=NMjA5N7kbEQ&feature=youtu.be) - [Yii2 Lessons - youtube](https://www.youtube.com/playlist?list=PLRd0zhQj3CBmusDbBzFgg3H20VxLx2mkF) - [Yii2 Lessons 2019 - youtube](https://www.youtube.com/watch?v=JD5Y-lQNrPs&list=PLLQuc_7jk__VZFYZa9uVbU2mYPbnfAMC6) - [魏曦的 Yii2.0 视频教程](http://i.youku.com/weixistyle) 与 [源码 michaelweixi/Yii2Blog](https://github.com/michaelweixi/Yii2Blog) ## Donate 赞助 ![微信支付](https://raw.githubusercontent.com/iiYii/getyii/master/wechat-pay.png)![支付宝支付](https://raw.githubusercontent.com/iiYii/getyii/master/ali-pay.png) 手机微信或者支付宝扫描上方二维码可向本项目赞助,如果你觉得这个「干货集」对你很有帮助,帮你节省了大量的找资料时间,欢迎赞助。