For about the last year and a half I have been using the awesome DataTables Plugin for jQuery. This is the most feature-rich and powerful javascript table plugin that I have come across and have been quite happy using it in various applications.
I decided to write a library to make it easy to render a DataTable in any application using any datasource. This library’s main aim is to provide a clean and simple object-oriented interface to build and render a DataTable. So far I have wrapped a majority of the features and options of the javascript plugin.
You can download the library here: http://github.com/lampjunkie/php-datatables
Check out the example in the “demo” folder for a full working example.