Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fboender/tlib-php

Collection of small random personal PHP libraries
https://github.com/fboender/tlib-php

Last synced: about 2 months ago
JSON representation

Collection of small random personal PHP libraries

Awesome Lists containing this project

README

        

TLib-PHP

About
-----

This is TLib-PHP, a collection of PHP classes/functions/stuff that I (Ferry
Boender) deem useful. Examples on how to use the various classes and methods
are found at the bottom of tlib.php. Enjoy!

Included are:

Web
* TLSelfURL: Helper class for referring to the current page (location).
* TLWebControl: Simple website controller framework with OO, views and
templates.
Exceptions
* TLTypeException: Throw this when a passed parameter is not of the
expected type.
* TLValueException: Throw this when a passed parameter does not have a
correct value.
* TLSQLException: Throw this when your program encounters an SQL error.
Information manipulation classes
* TLString: Additional string manipulation methods.
* TLVars: Variable manipulation class.
* TLNetwork: Network information manipulation class.
* TLPath: Helpers for constructing paths.
Development helpers
* TLValidate: Variable contents validation.
* TLDebug: Additional debugging stuff.
* TLUnitTest: Very simple Unit Tester.
Misc
* TLAutoDelegate: Allows automatic delegation to objects (semi-multiple
inheritance).
* TLControlStruct: Additional control structure tools.
* TLDateRange: Work with stuff between two dates.

For documentation please refer to the html/index.html file.

Installation
------------

Just copy tlib.php to a directory that's included in your include_path.

tlib.php has no dependencies, though some classes may work better if certain
modules are installed. Please refer to the class documentation to see what
modules can be installed to improve the workings of that class.

License
-------

BSD License.