PHP Objects, Patterns and Practice, 4/e (Paperback)
暫譯: PHP 物件、模式與實務,第 4 版 (平裝本)

Matt Zandstra

  • 出版商: Apress
  • 出版日期: 2013-11-28
  • 售價: $2,090
  • 貴賓價: 9.5$1,986
  • 語言: 英文
  • 頁數: 532
  • 裝訂: Paperback
  • ISBN: 1430260319
  • ISBN-13: 9781430260318
  • 相關分類: PHP
  • 已過版

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

商品描述

PHP Objects Patterns and Practice, Fourth Edition is revised and updated throughout.
The book begins by covering PHP's object-oriented features. It introduces key topics including class declaration, inheritance, reflection and much more. These provide the fundamentals of the PHP's support for objects. It also introduces some principles of design.
This edition introduces new object relevant features such as traits, reflection extension additions, callable type hinting, improvements to exception handling, and many smaller language enhancements.




The next section is devoted to design patterns. These describe common problems and their solutions. The section describes the design principles that make patterns powerful. It 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 build and install using Phing and PEAR. It also explores strategies for automated testing and build. 




In addition to discussing the latest developments in build, test, and continuous integration, this section keeps pace with best practice in version control by focusing on Git, increasingly the developer's system of choice.




Taken together these three elements: object fundamentals, design principles, and best practice will help the reader develop elegant and rock solid systems.




PHP Objects and Patterns:
  • Describes and demonstrates PHP's built-in object-oriented features
  • Breaks down the principles of object-oriented design, explaining key design patterns using practical examples.
  • Discusses the tools and practices necessary for developing, testing and deploying exemplary applications.




What you’ll learn

You will:
  • Learn to 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.
  • Understand and use design principles to deploy objects and classes effectively in your projects.
  • Learn about design patterns, their purpose, structure and the underlying principles that govern them.
  • Discover a set of powerful patterns that you can deploy in your own projects
  • Learn about the tools and practices that can 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 projects. 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.

Table of Contents

  1. PHP: Design and Management
  2. PHP and Objects
  3. Object Basics
  4. Advanced Features
  5. Object Tools
  6. Objects and Design
  7.  What Are Design Patterns? Why Use Them?
  8. Some Pattern Principles
  9. Generating Objects
  10. Patterns for Flexible Object Programming
  11. Performing and Representing Tasks
  12. Enterprise Patterns
  13. Database Patterns
  14. Good (and Bad) Practice
  15. An Introduction to PEAR and Pyrus
  16. Generating Documentation with phpDocumentor
  17. Version Control
  18. Testing with PHPUnit
  19. Automated Build with Phing
  20. Continuous Integration
  21. Objects, Patterns, and Practice
  22. App A: Bibliography
  23. App B: A Simple Parser

商品描述(中文翻譯)

PHP 物件模式與實務(第四版)已全面修訂與更新。本書首先介紹 PHP 的物件導向特性,涵蓋類別宣告、繼承、反射等關鍵主題,這些都是 PHP 對物件支援的基礎。此外,書中也介紹了一些設計原則。

本版引入了與物件相關的新特性,例如 traits、反射擴展新增、可呼叫型別提示、例外處理的改進,以及許多較小的語言增強。

接下來的部分專注於設計模式,這些模式描述了常見問題及其解決方案。該部分闡述了使模式強大的設計原則,涵蓋了許多經典設計模式,並包括企業模式和資料庫模式的章節。

本書的最後一部分涵蓋了幫助將優秀代碼轉化為成功專案的工具和實務。該部分展示了如何使用 git 管理多位開發者和版本,如何使用 Phing 和 PEAR 進行構建和安裝。它還探討了自動化測試和構建的策略。

除了討論構建、測試和持續整合的最新發展外,這部分還通過專注於 Git,跟上版本控制的最佳實踐,因為 Git 正日益成為開發者的首選系統。

綜合這三個要素:物件基礎、設計原則和最佳實踐,將幫助讀者開發出優雅且穩固的系統。

PHP 物件與模式:
- 描述並演示 PHP 的內建物件導向特性
- 分析物件導向設計的原則,使用實際範例解釋關鍵設計模式
- 討論開發、測試和部署範例應用所需的工具和實務

你將學到:
- 學會處理物件基礎:撰寫類別和方法、實例化物件、使用繼承創建強大的類別層次結構
- 精通進階物件導向特性,包括靜態方法和屬性、使用例外管理錯誤條件,以及創建抽象類別和介面
- 理解並使用設計原則,將物件和類別有效地部署到你的專案中
- 了解設計模式、其目的、結構及其背後的原則
- 發現一組可以在自己專案中部署的強大模式
- 學習保證專案成功的工具和實務,包括單元測試、版本控制、構建、安裝和套件管理,以及持續整合

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

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

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

目錄:
1. PHP:設計與管理
2. PHP 與物件
3. 物件基礎
4. 進階特性
5. 物件工具
6. 物件與設計
7. 什麼是設計模式?為什麼使用它們?
8. 一些模式原則
9. 生成物件
10. 靈活物件編程的模式
11. 執行與表示任務
12. 企業模式
13. 資料庫模式
14. 良好(與不良)實踐
15. PEAR 和 Pyrus 簡介
16. 使用 phpDocumentor 生成文檔
17. 版本控制
18. 使用 PHPUnit 測試
19. 使用 Phing 進行自動化構建
20. 持續整合
21. 物件、模式與實務
22. 附錄 A:參考書目
23. 附錄 B:簡單解析器