Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
li₃ is the fast, flexible and most RAD development framework for PHP
Failed to load latest commit information.
action Removing magic numbers in CGI HTTP auth.
analysis Docblock for lithium\analysis\Logger
console Fix a bad method call in `console\Command::header()`. Heading style w…
core Fixes scope/library conflicts for matching on scoped routes.
data Implementing naive relationship fetching & docs.
g11n Typo fixes.
net Fixes #988. Fixes #804. Again, but simpler and doesn't break other st…
security Documenting needed rewrite rule for HTTP auth with CGI.
storage Cleaning up coding standards warnings
template Fixing issue where asset paths were not being properly escaped.
test Complete docs in the `template` folder.
tests Adding relationship strategies for more dynamic configuration.
util Some typo fixes.
.gitignore Cleaning up and reformatting `.gitignore`.
.travis.yml CI process now require `li3_fixtures` to run some integration tests.
LICENSE.txt Happy 2013!
composer.json Change the lithium composer vendor name. Readme update: Twig url.

You asked for a better framework. Here it is.

Lithium is the fast, flexible and most RAD development framework for PHP 5.3 and up.

A framework of firsts

Lithium is the first and only major PHP framework built from the ground up for PHP 5.3+, and the first to break ground into major new technologies, including bridging the gap between relational and non-relational databases through a single, unified API.

Promiscuously opinionated

Some frameworks give you a solid set of classes, but little or no default project organization, leaving you to fend for yourself on each project you create, and spend time wiring up framework classes that should just work together. Others provide you with great organizational conventions, but no way to break out of those conventions if you need to, and too often, no way to override or replace core framework classes.

Lithium is the first framework to give you the best of both worlds, without compromising either. In fact, Lithium's API is intentionally designed to allow you to "grow out of" the framework and into your own custom code over the course of your application's lifecycle, if your needs require.


Lithium takes full advantage of the latest PHP 5.3 features, including namespaces, late static binding and closures. Lithium's innovative method filter system makes extensive use of closures and anonymous functions to allow application developers to "wrap" framework method calls, intercepting parameters before, and return values after.

Lithium also complies with the PHP 5.3 namespacing standard, allowing you to easily integrate other PHP 5.3 standard libraries and frameworks with Lithium applications, and vice-versa.

Lithium integrates the latest storage technologies, including MongoDB, CouchDB and Redis, with plugin support for Cassandra, ElasticSearch and others.


Lithium gives you full control over your application, from filters to dynamically modify framework internals, to dynamic dependencies to extend and replace core classes with application or plugin classes, to heavy use of adapter-oriented configurations, to make it seamless to move between different technologies and options.

Every component of the Lithium framework stack is replaceable through the robust plugin architecture. Swap out the default ORM / ODM implementation for Doctrine 2 or PHP ActiveRecord. Don't like the templating? Use Twig, Mustache, or roll your own.

If you don't even need to write a full application, build a micro-app in a single file using the routing system, without giving up the maintainability of the framework's structure.

Build status

Build Status

Something went wrong with that request. Please try again.