Useful Classes And Libraries For PHP Developers « PHP Twitter. Numerous PHP Frameworks have evolved to enable rapid web development with PHP. However even greater number of standalone PHP libraries and classes are available which provide similar benefits. W3Avenue has compiled a list of some really useful classes and libraries that every PHP developers should be familiar with.
Whether you like to use a PHP Framework or prefer to work without one, your productivity can multiply with the help of these libraries and classes. Database ADOdb An object oriented library written in PHP that abstracts database operations for portability. Doctrine Doctrine is an object relational mapper (ORM) for PHP 5.2.3+ that sits on top of a powerful database abstraction layer (DBAL). A set of PHP classes mimicing C#3.0’s LINQ (Language Integrated Query) extension methods.PHPLinq currently features: LINQ operators (select, take, skip, orderBy / orderByDescending, thenBy / thenByDescending), Lambda expressions, and Anonymous types. Mimesis Development PHP CodeSniffer Document. Help - Eclipse SDK. Type Hinting. People often ask about scalar/basic typehints. Here is a drop in class that I use in my MVC framework that will enable typehints through the use of a custom error handler. Note: You should include this code above all other code in your include headers and if you are the using set_error_handler() function you should be aware that this uses it as well.
You may need to chain your set_error_handlers() Why? 1) Because people are sick of using the is_* functions to validate parameters. 2) Reduction of redundant coding for defensive coders. 3) Functions/Methods are self defining/documenting as to required input. Also.. <? Define('TYPEHINT_PCRE' ,'/^Argument (\d)+ passed to (? Class Typehint{ private static $Typehints = array( 'boolean' => 'is_bool', 'integer' => 'is_int', 'float' => 'is_float', 'string' => 'is_string', 'resrouce' => 'is_resource' ); private function __Constrct() {} public static function initializeHandler() { set_error_handler('Typehint::handleTypehint'); return TRUE; } return TRUE; } } PHP OpenXML API.