PHP Programming with PEAR
暫譯: 使用 PEAR 的 PHP 程式設計

Schmidt Stephan, Stoyan Stefanov, Wormus Aaron, Lucke Carsten

  • 出版商: Packt Publishing
  • 出版日期: 2006-09-26
  • 售價: $1,710
  • 貴賓價: 9.5$1,625
  • 語言: 英文
  • 頁數: 292
  • 裝訂: Paperback
  • ISBN: 1904811795
  • ISBN-13: 9781904811794
  • 相關分類: PHP
  • 已過版

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

商品描述

Description

PEAR is the PHP Extension and Application Repository, and is a framework and distribution system for reusable, high-quality PHP components, available in the form of "packages".

In this book, you will learn how to use a number of the most powerful PEAR packages available to boost your PHP development productivity. By focusing on these packages for key development activities, this book is an in-depth guide to getting the most from these powerful coding resources.

You will become a master of various PEAR packages that help you with the essential tasks of PHP development such as:

•    Accessing databases with MDB2
•    Displaying data in a range of formats (HTML, Excel spreadsheet, PDF)
•    Creating and parsing XML documents
•    Serializing PHP objects into XML, and unserializing XML documents to PHP objects
•    Consuming and offering web services
•    Accessing Web APIs including Google, Yahoo, Amazon, and Technorati

 

Table of Contents

Chapter 1 shows you how to access databases with the MDB2 package. You will learn:

•    Connecting to the database, and instantiate objects
•    Executing queries and fetching data
•    MDB2 SQL abstraction; sequences, replace queries, sub-select support, prepared statements
•    Using MDB2 modules
•    Extending MDB2 to provide custom fetch and result classes, iterators, and modules

Chapter 2 explains how to use PEAR packages to display data . It teaches you:

•    Creating powerful tables of data easily with the HTML_Table package
•    Advanced table formatting with HTML_Table_Matrix
•    Creating Excel spreadsheets dynamically with Spreadsheet_Excel_Writer
•    Adding formatting to these spreadsheets including colors, patterns, formulae and number formatting
•    Creating flexible, sortable grids of data with Structures_DataGrid
•    Adding columns to the grid, control paging, select data sources, and renderers
•    Using File_PDF to create PDF documents on the fly

Chapter 3 covers the usage of PEAR packages to work with XML and stresses on:
 
•    Creating XML documents with XML_Util, XML_Fastcreate
•    Transforming PHP objects to XML format with XML_Serializer
•    Creating Mozilla applications with XML_XUL
•    Parsing XML with XML_Parser
•    Processing XML documents to PHP objects with XML_Unserializer
•    Parsing RSS with XML_RSS

Chapter 4 is an extensive tutorial on working with web services and Web API's using PEAR packages. We cover the following topics:

•    Consuming web services
•    Consuming XML-RPC-based web services
•    Accessing the Google API
•    Searching blog entries with Services_Technorati
•    Accessing the Amazon web service
•    Accessing the Yahoo API
•    Offering XML-RPC-based web services
•    Offering SOAP-based web services
•    Offering REST-based services using XML_Serializer


Chapter 5 covers PEAR's date and time functions using the PEAR::Calendar and PEAR::Date packages such as:

•    Creating, manipulating, and comparing Date objects
•    Data_Span arithmetic
•    Handling timezones with Date_Timezone
•    Keeping track of public holidays with Date_Holiday
•    Using the Calendar class to display an HTML calendar

商品描述(中文翻譯)

**描述**
PEAR 是 PHP 擴展和應用程式庫,是一個可重用的高品質 PHP 元件的框架和發佈系統,以「套件」的形式提供。

在本書中,您將學習如何使用多個最強大的 PEAR 套件來提升您的 PHP 開發生產力。通過專注於這些套件以進行關鍵的開發活動,本書是深入了解如何充分利用這些強大編碼資源的指南。

您將成為各種 PEAR 套件的專家,這些套件幫助您完成 PHP 開發中的基本任務,例如:
• 訪問資料庫,使用 MDB2
• 以多種格式顯示數據(HTML、Excel 試算表、PDF)
• 創建和解析 XML 文檔
• 將 PHP 對象序列化為 XML,並將 XML 文檔反序列化為 PHP 對象
• 消費和提供網路服務
• 訪問包括 Google、Yahoo、Amazon 和 Technorati 的 Web API

**目錄**
第 1 章展示了如何使用 MDB2 套件訪問資料庫。您將學習:
• 連接到資料庫並實例化對象
• 執行查詢和獲取數據
• MDB2 SQL 抽象;序列、替換查詢、子選擇支持、預備語句
• 使用 MDB2 模組
• 擴展 MDB2 以提供自定義獲取和結果類、迭代器和模組

第 2 章解釋了如何使用 PEAR 套件來顯示數據。它教您:
• 使用 HTML_Table 套件輕鬆創建強大的數據表
• 使用 HTML_Table_Matrix 進行高級表格格式化
• 使用 Spreadsheet_Excel_Writer 動態創建 Excel 試算表
• 為這些試算表添加格式,包括顏色、樣式、公式和數字格式
• 使用 Structures_DataGrid 創建靈活的可排序數據網格
• 向網格添加列,控制分頁,選擇數據源和渲染器
• 使用 File_PDF 即時創建 PDF 文檔

第 3 章涵蓋了使用 PEAR 套件處理 XML 的方法,並強調:
• 使用 XML_Util、XML_Fastcreate 創建 XML 文檔
• 使用 XML_Serializer 將 PHP 對象轉換為 XML 格式
• 使用 XML_XUL 創建 Mozilla 應用程式
• 使用 XML_Parser 解析 XML
• 使用 XML_Unserializer 將 XML 文檔處理為 PHP 對象
• 使用 XML_RSS 解析 RSS

第 4 章是關於使用 PEAR 套件處理網路服務和 Web API 的廣泛教程。我們涵蓋以下主題:
• 消費網路服務
• 消費基於 XML-RPC 的網路服務
• 訪問 Google API
• 使用 Services_Technorati 搜尋部落格條目
• 訪問 Amazon 網路服務
• 訪問 Yahoo API
• 提供基於 XML-RPC 的網路服務
• 提供基於 SOAP 的網路服務
• 使用 XML_Serializer 提供基於 REST 的服務

第 5 章涵蓋了 PEAR 的日期和時間函數,使用 PEAR::Calendar 和 PEAR::Date 套件,例如:
• 創建、操作和比較 Date 對象
• Data_Span 算術
• 使用 Date_Timezone 處理時區
• 使用 Date_Holiday 跟踪公共假期
• 使用 Calendar 類顯示 HTML 日曆

最後瀏覽商品 (20)