Class Inheritance with PHP
84622
There are many benefits of inheritance with PHP, the most common is simplifying and reducing instances of redundant code. In this article you'll work with PHP 5 and Object Oriented Programming (OOP) to create a scalable application. By Kris Hadlock. 0912
480439
The PHPClasses.org website has posted their review of a Packt Publishing book covering PDO - "Learning PHP Data Objects" (by Dennis Poppel).   In Learning PHP Data Objects, the author, Dennis Popel, examines this new system and explains how to begin using PDO in development as a replacement for typical database drivers. The book is an excellent introduction to the data abstraction layer. It also provides essential insight into the inner workings of database interaction with PHP.   The review talks about the contents of the book, what PDO is/how it's used and how well the book hits the mark for its target audience.
391083
Latest PHPClasses.org Releases:GPS Coordinates DistancePHP Yahoo Messenger Archive DecoderIdealMySQL ClassCalculadora EsconsMath GuardAudio StreamerNumber SequenceAnimated CAPTCHAGoogle Total Results
539271
Terry Chay, a popular speaker at many of the PHP conferences and photog to the geek chic crowd in San Francisco, will be speaking at the upcoming PHP Meetup for the SF PHP group. He'll be giving a talk titled "OOps! The PHP Fear and Loathing Guide to OO Design".   How does the PHP developer in the trenches create powerful object-orientation code? By doing what the PHP's architects did, of course: cherry picking the most pragmatic of OOP principles and patterns! This talk is targeted at the PHP developer who has basic knowledge of PHP OOP syntax but wants to find out where OOP principles can fit into a program.   If you'd like to attend, head over to the meetup page for the event and let them know you're coming. It'll be happening at the CNet Network offices February 7th @ 7pm.
73354
DevShed has posted part one of a new pair of articles that show how to use inheritance in your PHP applications.   In the two articles in this series I'm going to show you how to build a sample object-based web site from its bare bones structure, by using the encapsulated logic of some parent and child PHP 5 classes. In this way I'll demonstrate how inheritance can be used to tackle a concrete project, such as constructing dynamic web pages.   In part one, they build the foundation of their sample application - a web page builder - by defining the WebPage class and abstract methods for it like buildHeader, buildStyles and buildBody. Inheriting from this, they build a HomeWebPage class that defines the methods and values to create a simple page. They take it even a step further and build an AboutUsWebPage to show another implementation.
253381
Latest PHPClasses.org Releases:Nweb ImageLeast Squares FitCalendar CalculationsParagraphGDColorSimple EnumerationFile Exchange ProtocolFind dateNaf_ValidatorGeneric Form classMulti Threaded Daemon
644422
DevShed has posted the second part of their series looking at handling exceptions in a PHP5 application today. This one focuses on capturing the errors thrown when your script autoloads classes.   Bearing in mind this intrinsic limitation exposed by the "__autoload()" magic function when it comes to triggering exceptions at runtime, in this second article  of the series I'm going to show you some basic workarounds that you can implement to provide this function with the ability to throw exceptions when a determined source class fails to be included.   They give two examples of the use of the __autoload function as well as a method to capture the fatal errors that it might throw (using an eval inside of it to check on the class).
135116
DevShed starts off a new series today in this first part of the series looking at the creation of and working with command objects in PHP5.   In this article, the first part of a series, you'll learn the basics of applying the command pattern with PHP 5. As always, plenty of hands-on examples are included.   A command class involves having a commander and the implementers that work together to do things like (what they illustrate) manipulating strings. They create the commander class and give a simple example of a subclass that implements it. They create a few more and tie them all into a master class to work together. Finally, they give an illustration of the code in action - uppercasing a string and inverting it to read backwards, then output.
313082
P&aacute;draic Brady, looking ahead to the work he will be doing over the next few months, is proposing on his blog about a new Zend Framework component - Zend_Service_Currency.    I did a quick check on what PHP classes are available for the purpose. There's really not a whole lot out there. There's a PEAR class along the lines I need, but it's released under the PHP License and, not to be too argumentative, I prefer non-PEAR solutions where the end-user may have no access to update PEAR.   So since the project is planned to use the Zend Framework, I shot off a mail to the Framework's fw-general mailing list to see if it would be a worthwhile contribution.    He sees that someone else had already opened a proposal for the same idea and decided to join with that group to work up the module. He also links to his original proposal and gives a brief overview of the goals of the package.
640050
In this new blog post today, Evert Pot shares some thoughts on a custom solution he was looking to create as an alternative for PHP's serialize function.   I wanted to build this as a helper class for a draft-PHP-RPC server. The reason I needed a custom one was because I wanted to make sure I would be able to spit out PHP4-compatible serialized data, and in the future, when its ported to PHP6, also PHP5-compatible data.   He came across several issues in the development process including the slowness of his method compared to serialize() and a lack of a way to tell if two variables reference the same data. If you'd like to check out what he has so far, he's made the code available for download.
150889
Latest PHPClasses.org Releases:JPEG Slicerclass upload fileFeed GeneratorCSV CreationKG MySQL ClassMYDB ClassmyYouYubeCotaÃÂ§ÃÂ£o do DollarObject  dynamic generationHTTP client classconvert
654364
On the Stubbles blog, Frank Kleine has pointed out a proposal from Stefan Marr to include functionality for traits in PHP.   As a language construct within PHP it would be very easy to do the same, but easier to learn and to use. Beside some keyword issues (the RFC uses "use" as keyword, but this will of course conflict with namespaces) I'm wondering what this will have an impact on reflection - the RFC stays unclear about this.    A trait is a free-floating chink of functionality that, instead of being confined to a class (or file) that has to be called on to use it, exists where the developer can use it from anywhere at any time. This helps solve some of the issues with single inheritance in PHP.
501821
Latest PHPClasses.org Releases:Send Music to Last.fmReally Simple Content CachePDO XML GridSmart ImageApplication UpdateImage RotatePHP actuatorImage SplitterVideo PlayerContent cache classBiometrics ClassReceive_mail
494845
Stuart Herbert has posted a new book review of a new offering from Packt Publishing - "Learning PHP Data Objects" (by Dennis Popel).    The folks at Packt Publishing sent me a copy of Dennis Popel's "Learning PHP Data Objects" to review. I'd never heard of Packt before, and was intrigued.   He includes a high-level overview of what the book contains, but notes that he couldn't get a hold of the code examples mentioned in the book (no CD and couldn't find it on their site). Overall, he found it a good book - it's a good primer to PDO in PHP, but you'll need to know SQL beforehand to work with it. He suggests that it's more of a one or two time read, though - not much in the way of a reference to come back to.
632471
Latest PHPClasses.org Releases:URI CacheEnTransliterationHtmlCreate CSVText Helper ClassLista Paginacao ClassshagaConfiguratorldap_classBrute ForceMulti-thread SimulationiCaptchaFAPDFID3Tiny P2P
766229
There are some PHP developers out there that see PHP as a sort of constant "work in progress" with issues all around - confusing function names, non-intuitive features, and more. So, a group has been formed to help clean things up a bit - the ogoproject.   The ogo project aims to clean up PHP, starting with fixing the inconsistent (and difficult to remember) function names. PHP needs clear naming conventions, and it needs to stick to them. We will offer a temporary fork until function name changes are agreed on, and sensible backwards and forwards compatibility is in place. Then we can get our changes merged into the main branch.   They've already posted some suggestions for a few things, including conventions they're looking to follow and a list of new function names changed according to these new conventions. There's also a downloads and forum section that will soon have content.   If you're interested in getting involved, stop by the #ogoproject channel on the Freenode IRC network and see what's going on.
233745
Latest PHPClasses.org Releases:Cruncher classImage GalleryRCalendarAntiSpam FeedbackSatya Shopping CartSimple Abstraction LayermytoolbardbStringItShellContIP infoArray to Listpork.dbObjectShopping Cart by satya and DeepakHTMLSelectListphpSortTable