My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

NEW: Released Tephlon v1_1: More features, bugfixes and 3 new useful data structures!

NEW: Tutorial wiki page Usage, Codeigniter integration

What is Tephlon

Tephlon is a multi-driver (for now FileSystem and MySQL) PHP library that adds a persistence layer to your PHP objects, arrays or variables.

It's mainly file based, but adding a new driver for other kind of internal/external storage is really simple.

It is also very easy to integrate as an external library in popular PHP frameworks like Codeigniter.

Reason behind

Many websites use SQL without a real reason, just for implementing basic persistence of data.

For example: why would you put users into a SQL table if 90% of your SQL selects on the Users table will have a "WHERE <primary key> = <value>"?

Having SQL in your project puts you to:

  • Be prone to SQL injections
  • Writing a lot of ORM code just to map objects to SQL
  • Writing a lot of ORM code just to map SQL to objects
  • Complicated and difficult to automate database dumps for backup.

Status of development

Version 1.1 is generally available (just Filesystem driver). MySQL driver works in the SVN version.

Powered by Google Project Hosting