PHP Objects, Patterns, and Practice, 5/e

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開發人員。