PHP 8 Objects, Patterns, and Practice: Volume 1: Mastering Oo Enhancements and Design Patterns

Zandstra, Matt

  • 出版商: Apress
  • 出版日期: 2024-12-19
  • 售價: $1,730
  • 貴賓價: 9.5$1,644
  • 語言: 英文
  • 頁數: 740
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 9798868804816
  • ISBN-13: 9798868804816
  • 相關分類: PHPDesign Pattern
  • 尚未上市,無法訂購

相關主題

商品描述

Develop elegant and rock-solid systems using PHP, aided by three key elements: object fundamentals, design principles, and best practices. Now in its 7th edition, this book has been fully updated for PHP 8.3 and split into two volumes to better accommodate its wealth of new content. Volume 1 covers objects and patterns, while Volume 2 focuses on tools and best practices.

You'll begin this volume by reviewing PHP's object-oriented features including key topics such as class declarations, inheritance, and reflection. The second part of the book is devoted to design patterns. It explains the principles that make patterns powerful and covers many of the classic design patterns, as well as enterprise and database patterns.

This volume provides a solid grounding in PHP's support for objects and builds on this foundation to apply the core principles of software design. New topics covered include read only classes, enumerations, typed class constants, as well as various additions to argument and return types. The knowledge gained from this book will help you master the object-oriented enhancements and the design patterns available for PHP 8, paving the way for developing best practices in Volume 2.

What You Will Learn

  • Work with object fundamentals.
  • Write classes and methods, instantiate objects, and create powerful class hierarchies using inheritance.
  • Master advanced object-oriented features, including static methods and properties.
  • Manage error conditions with exceptions and create abstract classes and interfaces.
  • Use design principles to deploy objects and classes effectively in your projects.
  • Discover a set of powerful patterns that you can implement in your own projects.

Who This Book Is For

Anyone with at least a basic knowledge of PHP who wants to use its object-oriented features in their projects.

商品描述(中文翻譯)

開發優雅且穩固的系統,使用 PHP,並輔以三個關鍵要素:物件基礎、設計原則和最佳實踐。本書現已進入第七版,已全面更新至 PHP 8.3,並分為兩卷以更好地容納其豐富的新內容。第一卷涵蓋物件和模式,而第二卷則專注於工具和最佳實踐。

您將從回顧 PHP 的物件導向特性開始,包括類別宣告、繼承和反射等關鍵主題。本書的第二部分專注於設計模式,解釋使模式強大的原則,並涵蓋許多經典設計模式,以及企業和資料庫模式。

本卷提供了 PHP 對物件支持的堅實基礎,並在此基礎上應用軟體設計的核心原則。新涵蓋的主題包括唯讀類別、列舉、類別常數類型,以及對參數和返回類型的各種新增內容。從本書中獲得的知識將幫助您掌握 PHP 8 的物件導向增強功能和設計模式,為第二卷中發展最佳實踐鋪平道路。

您將學到的內容:
- 理解物件基礎。
- 編寫類別和方法,實例化物件,並使用繼承創建強大的類別層次結構。
- 精通進階的物件導向特性,包括靜態方法和屬性。
- 使用例外管理錯誤條件,並創建抽象類別和介面。
- 使用設計原則有效地在您的專案中部署物件和類別。
- 發現一套強大的模式,您可以在自己的專案中實施。

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

作者簡介

Matt Zandstra has worked as a web programmer, consultant, and writer for over two decades. In addition to this book, he is the author of SAMS Teach Yourself PHP in 24 Hours (three editions) and is a contributor to DHTML Unleashed. He has written articles for Linux Magazine, Zend, IBM DeveloperWorks, and phparchitect Magazine, and also writes fiction.

Matt was a senior developer/tech lead at Yahoo and API tech lead at LoveCrafts. He now runs an agency that advises companies on their architectures and system management, and develops systems primarily with PHP, Python, and Java.

作者簡介(中文翻譯)

Matt Zandstra 擁有超過二十年的網頁程式設計、顧問和寫作經驗。除了這本書,他還是 SAMS 的《Teach Yourself PHP in 24 Hours》(三個版本)的作者,並且是《DHTML Unleashed》的貢獻者。他曾為《Linux Magazine》、《Zend》、《IBM DeveloperWorks》和《phparchitect Magazine》撰寫文章,並且也從事小說創作。

Matt 曾擔任 Yahoo 的高級開發人員/技術負責人,以及 LoveCrafts 的 API 技術負責人。他目前經營一家顧問公司,為企業提供架構和系統管理的建議,並主要使用 PHP、Python 和 Java 開發系統。