PHP String Tokenizer

This small function replaces tokens in a string with values passed in as an associative array. Useful for creating small templates when something like Smarty is overkill or not available

I wrote this for use in some form to email scripts

PHP Syntax Highlighting

Have you ever wanted to post code on your site and have it appear nicely formatted with syntax highlighting? It couldn't be easier.

Smarty De-Underscore Modifier

This Smarty modifier removes underscores from strings and capitalizes the first letter after underscore.

For example, my_table_name becomes myTableName

Smarty Random Number Plugin

This Smarty plugin returns a random number withing a range specified by arguments.

Useful for selecting random bits in your template like quotes, images, links, etc.

PHP HTTP Request Wrapper

This is a tiny class that encapsulates HTTP requests in a read-only format. It allows you to access request parameters by name regardless of the request method, and set a default return value for parameters that were not found in the request.


PHP Validation Class

One of the most common and time consuming tasks in web application development is also one of the most important. Input validation. This class encapsulates the validation to keep it in one place and out of your page handling code.