What are some of your can't-live-without php libraries?
Any kind, collections, templates, anything that makes your life easier when working with php.
What are some of your can't-live-without php libraries?
Any kind, collections, templates, anything that makes your life easier when working with php.
Zend framework is a great collection of components ready to use in any project
PHPUnit is another great library. A decent alternative to Zend Framework if you don't like how it works is eZ Components.
Personally I would be wary of using smarty. We've been using it here in our shop for a few years on an enterprise app and it suffers from a lot of limitations and performance issues. Remember Smarty can't do everything PHP can, and what it does it doesn't do very well IMhO.
CodeIgniter - It is free, compact, simple and easy to understand http://codeigniter.com
Doctrine as ORM/DBAL
Doctrine is an object relational mapper (ORM) for PHP 5.2.3+ that sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernates HQL. This provides developers with a powerful alternative to SQL that maintains flexibility without requiring unnecessary code duplication.
phpUnit for testing
In the last decade, PHP has developed from a niche language for adding dynamic functionality to small websites to a powerful tool making strong inroads into large-scale Web systems. Critical business logic like this needs to work correctly. But how do you ensure that it does? You test it, of course.
HTML_BBCodeParser (pear!)
This is a parser to replace UBB style tags with their html equivalents.
FirePHP (ajax debugging)
FirePHP enables you to log to your Firebug Console using a simple PHP method call.
All data is sent via response headers and will not interfere with the content on your page.
FirePHP is ideally suited for AJAX development where clean JSON and XML responses are required.
PHPMAILER for sending emails
I use this library frequently for sending email messages from PHP.
phpQuery for accessing and manipulating the DOM using the same sort of selectors as jQuery. Very handy for screen-scraping-type scripts.
http://www.bradyvercher.com/php-pagination-class.html
Paginate it is a cool little class which takes a large set of results and paginates it up and provides the links for the user to navigate to the other pages.
From their web site:
PaginateIt is a simple PHP class I wrote to make pagination easy. Pagination allows you to break up a collection of data (gallery, news items, etc...) into different pages. It can work in conjuction with a database, flat files, or any other collection.
I had written code over and over again to paginate data on various websites before I finally decided I needed a better way to do this. This class will allow you to easily implement pagination and help keep your code cleaner.