PHP Objects, Patterns, and Practice, 5/e
暫譯: PHP 物件、模式與實務,第五版

MATT ZANDSTRA

買這商品的人也買了...

相關主題

商品描述

Aided by three key elements: object fundamentals, design principles, and best practices, you'll learn how to develop elegant and rock solid systems using PHP.
 
The 5th edition of this popular book has been fully updated for PHP 7, including replacing the PEAR package manager with Composer, and new material on Vagrant and PHP standards. It provides a solid grounding in PHP's support for objects, it builds on this foundation to instill core principles of software design and then covers the tools and practices needed to develop, test and deploy robust code.
 
PHP Objects, Patterns, and Practice begins by covering PHP's object-oriented features. It introduces key topics including class declaration, inheritance, reflection and much more.
 
The next section is devoted to design patterns. It explains the principles that make patterns powerful. The book covers many of the classic design patterns and includes chapters on enterprise and database patterns.
 
The last segment of the book covers the tools and practices that can help turn great code into a successful project. The section shows how to manage multiple developers and releases with git, how to manage builds and dependencies with Composer. It also explores strategies for automated testing and continuous integration.
 
 
What You'll Learn
  • Work with object fundamentals: writing classes and methods, instantiating objects, creating powerful class hierarchies using inheritance.
  • Master advanced object-oriented features, including static methods and properties, managing error conditions with exceptions, and creating abstract classes and interfaces.
  • Learn about the new object-oriented features introduced by PHP 7 and why they matter for your code.
  • Understand and use design principles to deploy objects and classes effectively in your projects.
  • Discover a set of powerful patterns that you can deploy in your own projects.
  • Guarantee a successful project including unit testing; version control, build, installation and package management; and continuous integration.
 
Who This Book is For
 
This book is suitable for anyone with at least a basic knowledge of PHP who wants to use its object-oriented features in their projects. 
 
Those who already know their interfaces from their abstracts may well still find it hard to use these features in their systems. They will benefit from the book's emphasis on design. They will learn how to choose and combine the participants of a system; how to read design patterns and how to use them in their code. 
 
Finally this book is for PHP coders who want to learn about the practices and tools (version control, testing, continuous integration, etc) that can make projects safe, elegant and stable.

 

 

 

 

商品描述(中文翻譯)

輔以三個關鍵要素:物件基礎、設計原則和最佳實踐,您將學會如何使用 PHP 開發優雅且穩固的系統。

本書的第五版已全面更新至 PHP 7,包括將 PEAR 套件管理器替換為 Composer,以及有關 Vagrant 和 PHP 標準的新材料。它提供了 PHP 對物件支持的堅實基礎,並在此基礎上灌輸軟體設計的核心原則,然後涵蓋開發、測試和部署穩健代碼所需的工具和實踐。

《PHP 物件、模式與實踐》首先介紹 PHP 的物件導向特性。它介紹了包括類別宣告、繼承、反射等關鍵主題。

接下來的部分專注於設計模式。它解釋了使模式強大的原則。本書涵蓋了許多經典設計模式,並包括有關企業和資料庫模式的章節。

本書的最後一部分涵蓋了可以幫助將優秀代碼轉變為成功專案的工具和實踐。該部分展示了如何使用 git 管理多位開發者和版本,如何使用 Composer 管理構建和依賴。它還探討了自動化測試和持續集成的策略。

您將學到的內容:

- 處理物件基礎:撰寫類別和方法、實例化物件、使用繼承創建強大的類別層次結構。
- 精通進階物件導向特性,包括靜態方法和屬性、使用例外管理錯誤條件,以及創建抽象類別和介面。
- 了解 PHP 7 引入的新物件導向特性及其對您代碼的重要性。
- 理解並使用設計原則,以有效地在您的專案中部署物件和類別。
- 發現一組強大的模式,您可以在自己的專案中部署。
- 確保專案成功,包括單元測試、版本控制、構建、安裝和套件管理,以及持續集成。

本書適合對象:

本書適合任何對 PHP 具有基本知識的人,想在其專案中使用物件導向特性。

那些已經了解介面和抽象類別的人,可能仍然會發現將這些特性應用於其系統中有困難。他們將從本書對設計的強調中受益。他們將學會如何選擇和組合系統的參與者;如何閱讀設計模式以及如何在其代碼中使用它們。

最後,本書適合希望了解能使專案安全、優雅和穩定的實踐和工具(版本控制、測試、持續集成等)的 PHP 程式設計師。