PHP Programming with PEAR

XML, Data, Dates, Web Services, and Web APIs
Preview in Mapt

PHP Programming with PEAR

Carsten Lucke, Stoyan Stefanov

XML, Data, Dates, Web Services, and Web APIs
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$39.99
$29.99p/m after trial
RRP $23.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


PHP Programming with PEAR Book Cover
PHP Programming with PEAR
$ 23.99
$ 16.80
Object-Oriented Programming with PHP5 Book Cover
Object-Oriented Programming with PHP5
$ 23.99
$ 16.80
Buy 2 for $33.60
Save $14.38
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781904811794
Paperback250 pages

Book 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: MDB2
A Brief History of MDB2
Abstraction Layers
Speed Considerations
MDB2 Package Design
Getting Started with MDB2
Using MDB2
MDB2 SQL Abstraction
MDB2 Modules
Extending MDB2
MDB2_Schema
Summary
Chapter 2: Displaying Data
HTML Tables
Excel Spreadsheets
DataGrids
Generating PDF Files
Summary
Chapter 3: Working with XML
PEAR Packages for Working with XML
Creating XML Documents
Processing XML Documents
Summary
Chapter 4: Web Services
Consuming Web Services
Offering a Web Service
Summary
Chapter 5: Working with Dates
Working with the Date Package
Date_Holidays
Working with the Calendar Package
Summary

What You Will Learn

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

Authors

Table of Contents

Chapter 1: MDB2
A Brief History of MDB2
Abstraction Layers
Speed Considerations
MDB2 Package Design
Getting Started with MDB2
Using MDB2
MDB2 SQL Abstraction
MDB2 Modules
Extending MDB2
MDB2_Schema
Summary
Chapter 2: Displaying Data
HTML Tables
Excel Spreadsheets
DataGrids
Generating PDF Files
Summary
Chapter 3: Working with XML
PEAR Packages for Working with XML
Creating XML Documents
Processing XML Documents
Summary
Chapter 4: Web Services
Consuming Web Services
Offering a Web Service
Summary
Chapter 5: Working with Dates
Working with the Date Package
Date_Holidays
Working with the Calendar Package
Summary

Book Details

ISBN 139781904811794
Paperback250 pages
Read More

Read More Reviews

Recommended for You

Expert PHP 5 Tools Book Cover
Expert PHP 5 Tools
$ 29.99
$ 21.00
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
jQuery UI 1.7: The User Interface Library for jQuery  Book Cover
jQuery UI 1.7: The User Interface Library for jQuery
$ 26.99
$ 18.90
PHP jQuery Cookbook Book Cover
PHP jQuery Cookbook
$ 23.99
$ 16.80
OSWorkflow: A guide for Java developers and architects to integrating open-source Business Process Management  Book Cover
OSWorkflow: A guide for Java developers and architects to integrating open-source Business Process Management
$ 29.99
$ 21.00
Learning PHP Data Objects Book Cover
Learning PHP Data Objects
$ 23.99
$ 16.80