PHP Object-Oriented Solutions

  • 1 0
  • (Rated 5 Stars)
  •  5-1-2019
  •  192

Автор:David Powers
ISBN:978-1-4302-1011 Тегло (гр.): 806 Формат: 190 / 230 Състояние: Мн. добро
PHP Object-Oriented Solutions / David Powers

About the Author xi
About the Technical Reviewer xiii
Acknowledgments xv
Introduction xvii
Chapter 1: Why Object-Oriented PHP? 3
Chapter 2: Writing PHP Classes 23
Chapter 3: Taking the Pain Out of Working with Dates 77
Chapter 4: Using PHP Filters to Validate User Input 121
Chapter 5: Building a Versatile Remote File Connector 169
Chapter 6: SimpleXML—Couldn’t Be Simpler 207
Chapter 7: Supercharged Looping with SPL 251
Chapter 8: Generating XML from a Database 289
Chapter 9: Case Study: Creating Your Own RSS Feed 321
Index 355

In this book you’ll learn how to:

■ Produce code that’s easier to maintain by adopting OOP techniques.
■ Use best practices by implementing basic design patterns.
■ Simplify complex code through encapsulation.
■ Unlock the secrets of the Standard PHP Library.
■ Generate your own news feed using Really Simple Syndication (RSS).

functionality to web sites, such as sending email from online forms and generating database-driven content. But there soon comes a time when you realize you’re writing similar scripts over and over again. By adopting an object-oriented approach, you can avoid the need to reinvent the wheel every time, creating scripts that are reusable, easier to understand, and easier to maintain.

The main barrier to object-oriented programming (OOP) is that it’s based on unfamiliar concepts, such as objects, classes, interfaces, encapsulation, and polymorphism. This book strips away the mystique and explains each concept in an approachable and understandable way. It provides a gentle but fast-paced introduction to OOP as it applies to PHP. Another barrier to the adoption of OOP among PHP developers has been the slow migration from PHP 4, which used a radically different—and inferior—object model. Now that PHP 4 has come to the official end of its life, this book concentrates exclusively on using OOP with PHP 5 and 6. So you can be confident that you’re learning skills that won’t be out of date almost as soon as you put the book down.
Through a series of practical projects, this book shows how OOP can be used to group related functions in a portable manner. The projects include a validator for filtering user input, a class that avoids the need to remember all the esoteric PHP date formatting codes, and an XML generator—everyday requirements for a lot of developers. Although the emphasis is on learning how the code works, if you’re in a hurry, the PHP classes used in the book can be downloaded from the friends of ED web site and incorporated into existing sites with a minimum of effort.

The book is aimed at intermediate developers with a good understanding of PHP basics, such as variables, arrays, functions, loops, and conditional statements. It provides the necessary groundwork for advancing on to using an object-oriented framework, such as the Zend Framework, and taking your PHP coding skills to the next level.
Also Available
DOM Scripting
ISBN 978-1-4302-1011-5
PHP Objects, Patterns, and Practice

Забележка: Здраво книжно тяло, без забележки в текста.
о2. PHP-Object-Oriented-Solutions 
Категория › Английски език

Допълнителни снмики

Все още няма коментари...

Info! За съжаление само регистрираните потребители могат да публикуват коментари.Моля, влезте или се регистрирайте.