Introduction

volktron edited this page Apr 4, 2012 · 2 revisions
Clone this wiki locally

Pearalized is a PHP 5.4+ library that simplifies the way PHP applications are written. At the core is a collection of classes that handle common tasks such as rendering tabular data, sending mail, and so on. If you are familiar with jQuery, picking up Pearalized should be a breeze.

For instance, given some 2-dimensional associative array (e.g. some SQL result) the following code will render an html table, complete with headers:

echo p('grid')->data($data)->html();

The ease of use is immediately obvious - you don't need to handle includes, instantiation or worry about complicated execution ordering. If you have complicated controller setups in your MVC architecture, using Pearalized will result in cleaner code and be easier to maintain.