Rating:

Author: Matt Zandstra
ISBN : B004VJ2YZU
New from $19.79
Format: PDF, EPUB
Free download Free PHP Objects, Patterns and Practice (Expert's Voice in Open Source) [Kindle Edition] from mediafire, rapishare, and mirror link
This book takes you beyond the PHP basics to the enterprise development practices used by professional programmers. Updated for PHP 5.3 with new sections on closures, namespaces, and continuous integration, this edition will teach you about object features such as abstract classes, reflection, interfaces, and error handling. Youll also discover object tools to help you learn more about your classes, objects, and methods.
Then youll move into design patterns and the principles that make patterns powerful. Youll learn both classic design patterns and enterprise and database patterns with easy-to-follow examples.
Finally, youll discover how to put it all into practice to help turn great code into successful projects. Youll learn how to manage multiple developers with Subversion, and how to build and install using Phing and PEAR. Youll also learn strategies for automated testing and building, including continuous integration.
Taken together, these three elementsobject fundamentals, design principles, and best practiceswill help you develop elegant and rock-solid systems.
What youll learn
- Learn to work with object fundamentals: writing classes and methods, instantiating objects, and creating powerful class hierarchies using inheritance.
- Master advanced object-oriented features, including static methods and properties.
- Learn how to manage error conditions with exceptions, and create abstract classes and interfaces.
- Understand and use design principles to deploy objects and classes effectively in your projects.
- Learn about design patterns, their purpose and structure, and the underlying principles that govern them.
- Discover a set of powerful patterns that you can deploy in your own projects.
- Learn about the tools and practices that can guarantee a successful project including unit testing; version control; build, installation, and package management; and continuous integration.
Who this book is for
This book is suitable for anyone with at least a basic knowledge of PHP who wants to use its object-oriented features in their projects.
Those who already know their interfaces from their abstracts may well still find it hard to use these features in their projects. These users will benefit from the books emphasis on design. They will learn how to choose and combine the participants of a system, how to read design patterns, and how to use them in their code.
Finally, this book is for PHP coders who want to learn about the practices and tools (version control, testing, continuous integration, etc.) that can make projects safe, elegant, and stable.
Table of Contents
PHP: Design and Management PHP and Objects Object Basics Advanced Features Object Tools Objects and Design What Are Design Patterns? Why Use Them? Some Pattern Principles Generating Objects Patterns for Flexible Object Programming Performing and Representing Tasks Enterprise Patterns Database Patterns Good (and Bad) Practice An Introduction to PEAR and Pyrus Generating Documentation with phpDocumentor Version Control with Subversion Testing with PHPUnit Automated Build with Phing Continuous Integration Objects, Patterns, Practice Direct download links available for Free PHP Objects, Patterns and Practice (Expert's Voice in Open Source) [Kindle Edition]
- File Size: 3929 KB
- Print Length: 536 pages
- Page Numbers Source ISBN: 143022925X
- Publisher: Apress; 3 edition (June 7, 2010)
- Sold by: Amazon Digital Services, Inc.
- Language: English
- ASIN: B004VJ2YZU
- Text-to-Speech: Enabled
X-Ray:
- Lending: Enabled
- Amazon Best Sellers Rank: #376,124 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
- #69
in Kindle Store > Kindle eBooks > Computers & Technology > Programming > PHP
- #69
in Kindle Store > Kindle eBooks > Computers & Technology > Programming > PHP
Free PHP Objects, Patterns and Practice
I've owned PHP Objects, Patterns, and Practice for over a year, and it's still one of those books I go back to. It's a well written, generally well executed book on what constitutes Object Oriented Programming in the PHP5 environment.
First, the good news:
This book is a crash course on OOP design and thought. It borrows heavily from two monumentous texts in the field - the Gang of Four's book, and Java Enterprise Patterns - and condences their essences into an easy to swallow form. The basics are all here: how to create well designed classes, how to instantiate objects, etc. There's a hidden gem in the introductory portion of the book: the Reflection API. This API is built into PHP, and gives the coder unparalleled access to the guts of the classes and objects in a given project. It definitely has its uses.
The patterns are all generally useful, with the only exception perhaps being the Interpreter pattern. I'm just not convinced that creating one's own command line interface syntax is necessary, given that PHP projects aren't usually interactive. It seems like something best left to an appendex, or extra web content.
Now, for the bad news:
Some sections of the book, especially some of the code examples, could've used a better editor. Small things, the kinds of things that can trip up inexperienced coders, crop up. Using private properties instead of protected. Using the wrong variable name between examples. That sort of thing.
There's also a lack of a satisfying conclusion, so-to-speak. Zandstra himself claims that generating objects is perhaps the hardest thing to demonstrate. Yet, most of his examples (excepting the patterns late in the book) are canned.
It's been about a year and a half since I've read this, I have the first edition, but I think most of what I write is still relevant for this second one.
At the moment, very few php books come close in trying to actually present the language as a real contender for serious and professional web development. This book attempts just that.
PHP has come a long way since its inception, but the teaching material has not really caught up and the community is still pestered with bad code, architecture and practice. This book is an eye opener as it presents php for what it can be: a convenient and flexible tool that, in the right hands, can tough up and allow a programmer to get work done efficiently. It's not to say that php can do everything, but before you blame it as the root of all evil, you should definitely understand how you, the programmer, can work at improving the quality of your code. This text offers some insight into tried and true practices, usually well established in other more mature communities.
There are 3 parts:
The Objects part is a nice introduction to many goodies in the new PHP5 object model (the whole thing is php5 centric).
Some of the topics covered in the section matter more than others imo, since in your practice you'll encounter and will definitely draw some values from them. So pay particular attention to: Autoloading, Exception handling, magic methods, namespaces, reflection.
Because PHP is still a language in search for an identity, it borrows features, coding styles and development philosophy from other languages. Despite the fact that the two are fundamentally very different, Java has heavily influenced PHP's OO design and syntax.
Download Link 1 -
Download Link 2