Yii Application Development Cookbook - Third Edition
暫譯: Yii 應用程式開發食譜 - 第三版

Andrew Bogdanov, Dmitry Eliseev

  • 出版商: Packt Publishing
  • 出版日期: 2016-10-28
  • 售價: $2,220
  • 貴賓價: 9.5$2,109
  • 語言: 英文
  • 頁數: 611
  • 裝訂: Paperback
  • ISBN: 1785281763
  • ISBN-13: 9781785281761
  • 海外代購書籍(需單獨結帳)

商品描述

Key Features

  • Learn how to use Yii2 efficiently through clear examples and core features, and see how to use tests, create reusable code snippets, core widgets, deployment, and more
  • This book provides you with a wide space for practice approaches and helps you to learn about the new Yii2 framework.
  • Understand the difference between the Yii 1.x.x versions using useful examples from real web applications

Book Description

Yii is a free, open source web application development framework written in PHP5 that promotes clean DRY design and encourages rapid development. It works to streamline your application development time and helps to ensure an extremely efficient, extensible, and maintainable end product. Being extremely performance optimized, Yii is a perfect choice for any size project. However, it has been built with sophisticated, enterprise applications in mind. You have full control over the configuration from head-to-toe (presentation-to-persistence) to conform to your enterprise development guidelines. It comes packaged with tools to help test and debug your application, and has clear and comprehensive documentation.

This book is a collection of Yii2 recipes. Each recipe is represented as a full and independent item, which showcases solutions from real web-applications. So you can easily reproduce them in your environment and learn Yii2 fast and without tears. All recipes are explained with step-by-step code examples and clear screenshots.

Yii2 is like a suit that looks great off the rack, but is also very easy to tailor to fit your needs. Virtually every component of the framework is extensible. This book will show how to use official extensions, extend any component, or write a new one.

This book will help you create modern web applications quickly, and make sure they perform well using examples and business logic from real life. You will deal with the Yii command line, migrations, and assets. You will learn about role-based access, security, and deployment. We’ll show you how to easily get started, configure your environment, and be ready to write web applications efficiently and quickly.

What you will learn

  • See the new version of the Yii2 framework and application development practices
  • Write your applications more efficiently using shortcuts, Yii’s core functionality, and the best practices in Web 2.0
  • Get data from a database, and deal with Active Record, migrations, widgets, and core features
  • Easily update your skills from the previous version of the framework
  • Explore how to use Yii with different JavaScript frameworks and libraries such as WebSockets, Angular, Ember, Backbone and React
  • Learn how to keep your application secure according to the general web application security principle "filter input, escape output.
  • Write RESTfull Web Services using Yii2 and built-in features
  • Correctly install and use official extensions in your projects
  • Effectively create and implement your own Yii extension, and also ensure your extension is reusable and useful for the community

About the Author

Andrew Bogdanov is a seasoned web developer from Yekaterinburg, Russia with more than six years of experience in industrial development. Since 2010 he has been interested in Yii and MVC frameworks. He has taken part in projects written in Yii such as a work aggregator for a UK company, high-load projects, real-estate projects, and development of private projects for the government.

He has worked on various CMS and frameworks using PHP and MySQL, which includes Yii, Kohana, Symphony, Joomla, WordPress, CakePHP, and so on. Also, having good hands in integrating third-party APIs such as Payment gateways (Paypal, Facebook, Twitter, and LinkedIn), he is very good in slicing and frontend. So he can provide full information about Yii framework.

He is also well-versed in PHP/MYSQL, Yii 1.x.x, Yii 2.x.x, Ajax, JQuery, MVC frameworks, Python, LAMP, HTML/CSS, Mercurial, Git, AngularJs, and adaptive markup. You can also visit his blog http://jehkinen.com.

In his free time he likes to visit and talk with new people and discuss web development problems. He is currently working with professionals http://2amigos.us.

Dmitry Eliseev has been a web developer since 2008 and specializes in server-side programming on PHP and PHP frameworks.

Since 2012 he has authored his personal blog, http://elisdn.ru, about web development in general and about the Yii Framework particularly. His blog became a well-known resource in the Russian Yii community. He is an active member of a Russian-language forum http://yiiframework.ru.

Dmitry is interested in developmental best practices, software architectures, object-oriented programming, and other approaches.

He is an author and a presenter of practical courses about principles and best practices of object oriented programming and the use of version control systems. And also he is an author of webinars, the Yii2 Framework, and common developmental subjects. He practices teaching and counseling by development on frameworks and using of principles of software design and improvements of common code quality. This is his first book.

Alexander Makarov is an experienced engineer from Russia and has been a Yii framework core team member since 2010. Before joining the Yii core team, he participated in the CodeIgniter community growth in Russia. In 2009, he finished the Russian translation of the framework documentation and created the Russian community website. In 2012, he released the Russian version of the book along with Russian community members. In the same year, he was the technical reviewer for three more books:

  • The Yii Book: Developing Web Applications Using the Yii PHP Framework, Larry Ullman
  • Web Application Development with Yii and PHP, Jeff Winesett
  • Yii Rapid Application Development Hotshot, Lauren O'Meara and James Hamilton

In his free time, Alexander writes technical blog at http://rmcreative.ru/, speaks at conferences, and enjoys movies, music, traveling, photography, and languages. He currently resides in Voronezh, Russia with his beloved wife and daughter.

Table of Contents

  1. Fundamentals
  2. Routing, Controllers, and Views
  3. ActiveRecord, Model, and Database
  4. Forms
  5. Security
  6. RESTful Web Services
  7. Official Extensions
  8. Extending Yii
  9. Performance Tuning
  10. Deployment
  11. Testing
  12. Debugging, Logging, and Error Handling

商品描述(中文翻譯)

**主要特點**

- 透過清晰的範例和核心功能學習如何有效使用 Yii2,並了解如何使用測試、創建可重用的代碼片段、核心小部件、部署等。
- 本書為您提供了廣泛的實踐方法,幫助您了解新的 Yii2 框架。
- 使用實際網頁應用程式中的有用範例,了解 Yii 1.x.x 版本之間的差異。

**書籍描述**

Yii 是一個免費的開源網頁應用程式開發框架,使用 PHP5 編寫,推廣乾淨的 DRY 設計並鼓勵快速開發。它旨在簡化您的應用程式開發時間,並幫助確保最終產品的高效性、可擴展性和可維護性。由於其極高的性能優化,Yii 是任何規模專案的完美選擇。然而,它是以複雜的企業應用程式為考量而構建的。您可以完全控制從頭到尾(展示到持久性)的配置,以符合您的企業開發指導方針。它配備了幫助測試和調試應用程式的工具,並擁有清晰且全面的文檔。

本書是一系列 Yii2 食譜的集合。每個食譜都作為一個完整且獨立的項目,展示來自實際網頁應用程式的解決方案。因此,您可以輕鬆地在自己的環境中重現它們,快速且無痛地學習 Yii2。所有食譜都用逐步的代碼範例和清晰的截圖進行解釋。

Yii2 就像一套現成的西裝,外觀優雅,但也非常容易根據您的需求進行調整。框架的幾乎每個組件都是可擴展的。本書將展示如何使用官方擴展、擴展任何組件或編寫新的組件。

本書將幫助您快速創建現代網頁應用程式,並確保它們的性能良好,使用來自現實生活的範例和商業邏輯。您將處理 Yii 命令行、遷移和資產。您將學習基於角色的訪問、安全性和部署。我們將向您展示如何輕鬆入門、配置環境,並準備高效快速地編寫網頁應用程式。

**您將學到的內容**

- 了解 Yii2 框架的新版本和應用程式開發實踐
- 使用快捷方式、Yii 的核心功能和 Web 2.0 的最佳實踐,更有效地編寫應用程式
- 從數據庫獲取數據,處理 Active Record、遷移、小部件和核心功能
- 輕鬆更新您從框架舊版本的技能
- 探索如何將 Yii 與不同的 JavaScript 框架和庫(如 WebSockets、Angular、Ember、Backbone 和 React)結合使用
- 學習如何根據一般網頁應用程式安全原則「過濾輸入,轉義輸出」來保持應用程式的安全性
- 使用 Yii2 和內建功能編寫 RESTful 網路服務
- 正確安裝和使用官方擴展於您的專案中
- 有效創建和實現自己的 Yii 擴展,並確保您的擴展對社群可重用且有用

**關於作者**

**Andrew Bogdanov** 是來自俄羅斯葉卡捷琳堡的資深網頁開發者,擁有超過六年的工業開發經驗。自 2010 年以來,他對 Yii 和 MVC 框架產生了興趣。他參與了使用 Yii 編寫的專案,例如英國公司的工作聚合器、高負載專案、房地產專案以及為政府開發的私人專案。

他曾使用 PHP 和 MySQL 在各種 CMS 和框架上工作,包括 Yii、Kohana、Symphony、Joomla、WordPress、CakePHP 等。此外,他在整合第三方 API(如支付網關(Paypal、Facebook、Twitter 和 LinkedIn))方面也有良好的經驗,並且在前端開發方面非常出色。因此,他能提供有關 Yii 框架的全面資訊。

他對 PHP/MYSQL、Yii 1.x.x、Yii 2.x.x、Ajax、JQuery、MVC 框架、Python、LAMP、HTML/CSS、Mercurial、Git、AngularJs 和自適應標記有深入了解。您也可以訪問他的部落格 http://jehkinen.com。

在空閒時間,他喜歡拜訪新朋友並討論網頁開發問題。他目前與專業人士合作 http://2amigos.us。

**Dmitry Eliseev** 自 2008 年以來一直是網頁開發者,專注於 PHP 和 PHP 框架的伺服器端編程。

自 2012 年以來,他創建了個人部落格 http://elisdn.ru,專注於網頁開發的一般主題,特別是 Yii 框架。他的部落格成為俄羅斯 Yii 社群中的知名資源。他是俄語論壇 http://yiiframework.ru 的活躍成員。

Dmitry 對開發最佳實踐、軟體架構、物件導向編程及其他方法感興趣。

他是有關物件導向編程原則和最佳實踐以及版本控制系統使用的實用課程的作者和講者。他也是有關 Yii2 框架和一般開發主題的網路研討會的作者。他實踐教學和諮詢,專注於框架開發及軟體設計原則和改善一般代碼質量。這是他的第一本書。

**Alexander Makarov** 是一位來自俄羅斯的經驗豐富的工程師,自 2010 年以來一直是 Yii 框架核心團隊的成員。在加入 Yii 核心團隊之前,他參與了 CodeIgniter 社群在俄羅斯的成長。2009 年,他完成了框架文檔的俄文翻譯並創建了俄文社群網站。2012 年,他與俄文社群成員一起發布了該書的俄文版本。同年,他還擔任了另外三本書的技術審稿人:

- The Yii Book: Developing Web Applications Using the Yii PHP Framework, Larry Ullman
- Web Application Development with Yii and PHP, Jeff Winesett
- Yii Rapid Application Development Hotshot, Lauren O'Meara 和 James Hamilton

在空閒時間,Alexander 在 http://rmcreative.ru/ 撰寫技術部落格,參加會議,並享受電影、音樂、旅行、攝影和語言。他目前與心愛的妻子和女兒居住在俄羅斯沃羅涅日。

**目錄**

1. 基礎知識
2. 路由、控制器和視圖
3. ActiveRecord、模型和數據庫
4. 表單
5. 安全性
6. RESTful 網路服務
7. 官方擴展
8. 擴展 Yii
9. 性能調整
10. 部署
11. 測試
12. 調試、日誌記錄和錯誤處理