{"id":14966530,"url":"https://github.com/forecho/yii2-practice-book","last_synced_at":"2025-10-25T16:30:54.841Z","repository":{"id":147509823,"uuid":"44754608","full_name":"forecho/yii2-practice-book","owner":"forecho","description":"Yii 2.0 最佳实践","archived":false,"fork":false,"pushed_at":"2017-09-08T06:54:41.000Z","size":45,"stargazers_count":89,"open_issues_count":0,"forks_count":21,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-01-31T08:06:06.277Z","etag":null,"topics":["yii"],"latest_commit_sha":null,"homepage":"http://www.wejiang.com/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forecho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-22T15:28:12.000Z","updated_at":"2024-11-02T17:33:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"c8df2fb6-d2c7-4153-baaf-7be83cd77e2e","html_url":"https://github.com/forecho/yii2-practice-book","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"8ae0bfe350b77b43d50a03128fded56d7773a9b0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forecho%2Fyii2-practice-book","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forecho%2Fyii2-practice-book/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forecho%2Fyii2-practice-book/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forecho%2Fyii2-practice-book/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forecho","download_url":"https://codeload.github.com/forecho/yii2-practice-book/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238174151,"owners_count":19428633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["yii"],"created_at":"2024-09-24T13:36:32.713Z","updated_at":"2025-10-25T16:30:54.536Z","avatar_url":"https://github.com/forecho.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 写在前面\n\n你好，我是 forecho，2011年开始从事 PHP 开发工作。[《Yii 2.0 实践》](https://github.com/forecho/yii2-practice-book)这本书，是我第一次编写完整的教程，对我来说，它更像是对过往经验的总结。\n\nPS: 如果你对本书感兴趣欢迎点 Watch 订阅，由于工作比较忙，会不定时更新本项目。如果本项目订阅人数超过50人，会定时每周更新一篇。\n\n## 我什么会写这本书？\n\n2012 年的时候我因为工作原因接触了 Yii 1.0，刚开始真是无从下手，而且大部分文档是英文的，只有少数的中文资料，BoyLee 的 [视频](http://blog.yiiblog.info/) 让我入了门， Yii 的 QQ 群一些大牛对新手的解惑，让我慢慢感受到 Yii 的强大。从此以后「除却无上不是云」了，直到 Yii 2.0 推出。\n\nYii 是一个很强大的框架，而且设计的很好，它的模式非常一致，一旦你入门了，那么就会有一通百通的效果，这个过程中官方文档会一直伴随着你。\n\n为了感谢那些帮助我的人，我特此写了这本书，献给同样迷茫的你，献给那些热爱 Yii 的 Yiier。\n\n## 阅读电子版\n\n本书电子版为免费阅读，目前只有一个指定的发布地址：\n\n## 当前版本\n\n1.0.0\n\n## 本书读者\n\n本书适合期望使用 Yii 2.0 制作 Web 网站的开发者，读者需要具备基础的 HTML，JS 和 CSS 知识，并且了解 PHP 基本语法。你可以从未使用过 Yii，这没关系，本书会带领你从安装 PHP 环境开始，直到完成这个 Yii 项目。\n\n在学习的过程中，我建议读者注册一个 github.com 账号，建立一个学习笔记的代码仓库。\n\n## 本书约定\n\n- Yii 2.0 以下简称 Yii。\n- 名词首字母大写。\n- 英文缩写大写。\n- 命令小写。\n- 作为名词时，首字母大写，作为命令时 小写。Yii 同。\n- 专有名词不翻译。\n- 专有名词按照约定书写，如 iPhone，iMac，html，js，css，php，jQuery 等等。\n- 中文和英文间留有空格。\n- 命令行中，当前用户操作使用 $ 开头，root 用户操作，用 # 开头。\n\n## 版权声明\n\n本书的著作权归作者蔡正海（署名： forecho）所有。\n\n除特别声明外，本书中的内容使用CC BY-SA 3.0 License（创作共用 署名-相同方式共享3.0许可协议）授权，代码遵循BSD 3-Clause License（3项条款的BSD许可协议）。\n\n**你可以：**\n\n- 下载、保存以及打印本书\n- 网络链接、转载本书的部分或者全部内容，但是必须在明显处提供读者访问本书发布网站的链接\n- 在你的程序中任意使用本书所附的程序代码，但是由本书的程序所引起的任何问题，作者不承担任何责任\n\n**你不可以：**\n\n- 以任何形式出售本书的电子版或者打印版\n- 擅自印刷、出版本书\n- 以纸媒出版为目的，改写、改编以及摘抄本书的内容\n\n## 读者反馈\n\n你可以在 https://github.com/forecho/yii2-practice-book/issues 页面写下你的问题，也可以留下意见和建议。如有错误的地方欢迎指正，感激不尽。\n\n## 示例代码\n\nhttps://github.com/WJTeam/restful\n\n你可以 fork 这份代码到自己的代码仓库（Repo）中，修改并提交，然后向我的代码仓库提交 Pull Request，如果修改无异议，我将合并到 master 中。\n\n## 作者介绍\n\n蔡正海，网名 forecho，2012年开始从事 Yii 开发。\n\n工作之余，维护 http://www.getyii.com/ 社区。\n\n## 通过捐款支持本书\n\n![微信支付](https://raw.githubusercontent.com/iiYii/getyii/master/wechat-pay.png)![支付宝支付](https://raw.githubusercontent.com/iiYii/getyii/master/ali-pay.png)\n\n手机微信或者支付宝扫描上方二维码可向本项目赞助，如果你觉得这个项目对你很有帮助，欢迎赞助。\n\n## 开始阅读\n\n[开始阅读](SUMMARY.md)\n\n## 感谢\n\n- [Yii](http://www.yiiframework.com/) 让我更热爱编程\n- [深入理解Yii2.0](http://www.digpage.com/)\n- [与《YII框架》不得不说的故事](http://www.imooc.com/space/teacher/id/1991615)\n- [《Rails 实践》](http://rails-practice.com/content) 的作者\n- [Yiier](https://github.com/yiier)\n- [Yii2-中文化](https://github.com/yii2-chinesization) 的翻译成员\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforecho%2Fyii2-practice-book","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforecho%2Fyii2-practice-book","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforecho%2Fyii2-practice-book/lists"}