Persistence in PHP with Doctrine ORM
暫譯: 使用 Doctrine ORM 在 PHP 中的持久化

Kévin Dunglas

  • 出版商: Packt Publishing
  • 出版日期: 2013-12-22
  • 售價: $1,470
  • 貴賓價: 9.5$1,397
  • 語言: 英文
  • 頁數: 114
  • 裝訂: Paperback
  • ISBN: 1782164103
  • ISBN-13: 9781782164104
  • 相關分類: PHP
  • 海外代購書籍(需單獨結帳)

商品描述

This book is designed for PHP developers and architects who want to modernize their skills through better understanding of Persistence and ORM. You'll learn through explanations and code samples, all tied to the full development of a web application.

Overview

  • Develop a fully functional Doctrine-backed web application
  • Demonstrate aspects of Doctrine using code samples
  • Generate a database schema from your PHP classes

In Detail

Doctrine 2 has become the most popular modern persistence system for PHP. It can either be used as a standalone system or can be distributed with Symfony 2, and it also integrates very well with popular frameworks. It allows you to easily retrieve PHP object graphs, provides a powerful object-oriented query language called DQL, a database schema generator tool, and supports database migration. It is efficient, abstracts popular DBMS, and supports PHP 5.3 features.

Doctrine is a must-have for modern PHP applications.

Persistence in PHP with the Doctrine ORM is a practical, hands-on guide that describes the full creation process of a web application powered by Doctrine. Core features of the ORM are explained in depth and illustrated by useful, explicit, and reusable code samples.

Persistence in PHP with the Doctrine ORM explains everything you need to know to get started with Doctrine in a clear and detailed manner.

From installing the ORM through Composer to mastering advanced features such as native queries, this book is a full overview of the power of Doctrine. You will also learn a bunch of mapping annotations, create associations, and generate database schemas from PHP classes. You will also see how to write data fixtures, create custom entity repositories, and issue advanced DQL queries. Finally it will teach you to play with inheritance, write native queries, and use built-in lifecycle events. If you want to use a powerful persistence system for your PHP application, Persistence in PHP with the Doctrine ORM is the book you.

What you will learn from this book

  • Install Doctrine through the Composer dependency manager
  • Configure Doctrine Command Line Tools
  • Learn to manage relations between entities with different association types
  • Create data fixtures, a custom entity repository, and native SQL queries
  • Master the query builder to generate DQL queries
  • Get started with inheritance and lifecycle events

Approach

Persistence in PHP with the Doctrine ORM is a concise, fast, and focused guide to build a blog engine with advanced features such as native queries and lifecycle callbacks.

Who this book is written for

This book is primarily intended for PHP developers and architects who want to increase their skills in the field of Persistence and ORM to map the data they are working on to objects they are using in programming. Basic knowledge of databases and PDO and working knowledge of PHP namespaces is a prerequisite.

商品描述(中文翻譯)

這本書是為希望通過更好地理解持久性(Persistence)和物件關聯映射(ORM)來現代化技能的 PHP 開發人員和架構師而設計的。您將通過解釋和程式碼範例學習,所有內容都與完整的網頁應用程式開發相關聯。

**概述**
- 開發一個完全功能的 Doctrine 支援的網頁應用程式
- 使用程式碼範例展示 Doctrine 的各個方面
- 從您的 PHP 類生成資料庫架構

**詳細內容**
Doctrine 2 已成為 PHP 最受歡迎的現代持久性系統。它可以作為獨立系統使用,也可以與 Symfony 2 一起分發,並且與流行的框架集成得非常好。它使您能夠輕鬆檢索 PHP 物件圖,提供一種強大的物件導向查詢語言 DQL,還有一個資料庫架構生成工具,並支持資料庫遷移。它高效,抽象了流行的資料庫管理系統(DBMS),並支持 PHP 5.3 的特性。

Doctrine 是現代 PHP 應用程式的必備工具。

《使用 Doctrine ORM 的 PHP 持久性》是一本實用的、動手操作的指南,描述了由 Doctrine 驅動的網頁應用程式的完整創建過程。ORM 的核心特性將深入解釋,並通過有用、明確且可重用的程式碼範例進行說明。

《使用 Doctrine ORM 的 PHP 持久性》清晰且詳細地解釋了您開始使用 Doctrine 所需了解的一切。

從通過 Composer 安裝 ORM 到掌握原生查詢等高級功能,這本書全面概述了 Doctrine 的強大功能。您還將學習一系列映射註解,創建關聯,並從 PHP 類生成資料庫架構。您還將看到如何編寫資料固定檔、創建自定義實體儲存庫,並發出高級 DQL 查詢。最後,它將教您如何使用繼承、編寫原生查詢和使用內建的生命週期事件。如果您想為您的 PHP 應用程式使用一個強大的持久性系統,《使用 Doctrine ORM 的 PHP 持久性》就是您需要的書籍。

**您將從這本書中學到什麼**
- 通過 Composer 依賴管理器安裝 Doctrine
- 配置 Doctrine 命令行工具
- 學習管理不同關聯類型的實體之間的關係
- 創建資料固定檔、自定義實體儲存庫和原生 SQL 查詢
- 精通查詢生成器以生成 DQL 查詢
- 開始使用繼承和生命週期事件

**方法**
《使用 Doctrine ORM 的 PHP 持久性》是一本簡潔、快速且專注的指南,用於構建具有原生查詢和生命週期回調等高級功能的博客引擎。

**本書的讀者**
這本書主要針對希望提高在持久性和 ORM 領域技能的 PHP 開發人員和架構師,以將他們正在處理的數據映射到他們在編程中使用的物件。對資料庫和 PDO 的基本知識以及對 PHP 命名空間的工作知識是先決條件。

最後瀏覽商品 (19)