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.
-
Smarty! It's a great templating engine, and makes PHP much nicer to work with in my opinion.
-
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.
rick : Considering Smarty will compile into php on the first page load, what performance issues have you had? -
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.
Tomasz Tybulewicz : But is "typical user" aware of BBCode? I think it's better to add some RichEdit control and sanitize it's output -
TemplateLite
Mostly compatible with Smarty but crazy fast.
-
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.
Mark Biek : This is awesome! -
SimpleTest
Nice, simple, light-weight unit test framework.
-
PHPMAILER for sending emails
I use this library frequently for sending email messages from PHP.
dusoft : very good library, indeed. -
HTMLPurifier for security
-
- fpdf for PDF creation.
- pChart for beautifull Charts.
- Swift Mailer
-
SimplePie
SimplePie is a really cool way to parse RSS and Atom feeds.
From the web site:
Very fast and easy-to-use class, written in PHP, that puts the 'simple' back into 'really simple syndication'. Flexible enough to suit beginners and veterans alike, SimplePie is focused on speed, ease of use, compatibility and standards compliance.
-
phpQuery for accessing and manipulating the DOM using the same sort of selectors as jQuery. Very handy for screen-scraping-type scripts.
-
PaginateIt
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.
-
Var dump (not the function, the PEAR plug in). Very useful var_dump wrapper for debugging, can output a variable in a number of useful ways.
0 comments:
Post a Comment