Mastering Yii(Paperback)
暫譯: 精通 Yii(平裝本)

Charles R. Portwood II

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

相關主題

商品描述

Key Features

  • Learn to work with the key aspects of Yii Framework 2
  • Explore how to create RESTful APIs with Yii
  • Incorporate codeception with Yii2 to test your code thoroughly

Book Description

The successor of Yii Framework 1.1, Yii2 is a complete rewrite of Yii Framework, one of the most popular PHP 5 frameworks for making modern web applications. The update embraces the best practices and protocols established with newer versions of PHP, while still maintaining the simple, fast, and extendable behavior found in its predecessor.

This book has been written to enhance your skills and knowledge with Yii Framework 2. Starting with configuration and how to initialize new projects, you'll learn how to configure, manage, and use every aspect of Yii2 from Gii, DAO, Query Builder, Active Record, and migrations, to asset manager. You'll also discover how to automatically test your code using codeception.

With this book by your side, you'll have all the skills you need to quickly create rich modern web and console applications with Yii2.

What you will learn

  • Explore Yii2's conventions and learn how to properly configure Yii2
  • Create both web and console applications
  • Reduce development time by learning to create classes automatically with Gii, Yii2's automatic code generation tool
  • Use Yii2's database migration tool
  • Manage and access databases with Active Record, DAO, and Query Builder
  • Handle user authentication and authorization within Yii2
  • Create RESTful APIs with Yii Framework 2
  • Test applications automatically with codeception

About the Author

Charles R. Portwood II has over 10 years of experience developing modern web applications and is well versed in integrating PHP with native mobile applications. An avid proponent of Yii Framework and open source software, Charles has contributed multiple guides, extensions, and applications to the Yii community. In addition to being a programmer, he is also a Linux system administrator.

Table of Contents

  1. Composer, Configuration, Classes, and Path Aliases
  2. Console Commands and Applications
  3. Migrations, DAO, and Query Building
  4. Active Record, Models, and Forms
  5. Modules, Widgets, and Helpers
  6. Asset Management
  7. Authenticating and Authorizing Users
  8. Routing, Responses, and Events
  9. RESTful APIs
  10. Testing with Codeception
  11. Internationalization and Localization
  12. Performance and Security
  13. Debugging and Deploying

商品描述(中文翻譯)

**主要特點**
- 學習如何處理 Yii Framework 2 的關鍵方面
- 探索如何使用 Yii 創建 RESTful API
- 將 Codeception 與 Yii2 結合以徹底測試您的代碼

**書籍描述**
Yii2 是 Yii Framework 1.1 的繼任者,對 Yii Framework 進行了全面重寫,這是最受歡迎的 PHP 5 框架之一,用於製作現代網頁應用程式。此更新採納了隨著 PHP 新版本建立的最佳實踐和協議,同時仍然保持其前身所具有的簡單、快速和可擴展的特性。

本書旨在提升您對 Yii Framework 2 的技能和知識。從配置和如何初始化新專案開始,您將學習如何配置、管理和使用 Yii2 的每個方面,包括 Gii、DAO、查詢生成器、主動記錄和遷移,以及資產管理器。您還將發現如何使用 Codeception 自動測試您的代碼。

有了這本書,您將擁有快速創建豐富的現代網頁和控制台應用程式所需的所有技能,使用 Yii2。

**您將學到什麼**
- 探索 Yii2 的慣例,學習如何正確配置 Yii2
- 創建網頁和控制台應用程式
- 通過學習使用 Gii(Yii2 的自動代碼生成工具)自動創建類來減少開發時間
- 使用 Yii2 的數據庫遷移工具
- 使用主動記錄、DAO 和查詢生成器管理和訪問數據庫
- 在 Yii2 中處理用戶身份驗證和授權
- 使用 Yii Framework 2 創建 RESTful API
- 使用 Codeception 自動測試應用程式

**關於作者**
**Charles R. Portwood II** 擁有超過 10 年的現代網頁應用程式開發經驗,並且精通將 PHP 與原生移動應用程式集成。作為 Yii Framework 和開源軟體的熱心支持者,Charles 為 Yii 社區貢獻了多個指南、擴展和應用程式。除了是一名程式設計師外,他還是一名 Linux 系統管理員。

**目錄**
1. Composer、配置、類和路徑別名
2. 控制台命令和應用程式
3. 遷移、DAO 和查詢構建
4. 主動記錄、模型和表單
5. 模組、小部件和輔助工具
6. 資產管理
7. 用戶身份驗證和授權
8. 路由、響應和事件
9. RESTful API
10. 使用 Codeception 測試
11. 國際化和本地化
12. 性能和安全性
13. 除錯和部署