Fork me on GitHub

lean gives you freedom

It's so awesome, wish I had known about it earlier!

- klawd-prime

What is lean

TL;DR: Some cold hard facts

In depth

lean is a small and lightweight library in PHP 5.3 and should be included in every project! It gives you easy and small components for templating, I18N, etc. along with some powerful utility classes such as lean\Dump and lean\Text.

On top of that, it brings /:controller/:action functionality to the Slim micro framework, complete with layout and partials!

What we mean by "lean gives you freedom" is that it does not put a frame around your code that limits your possibilities and forces you to do things in a certain way. We believe in the power of the programmer and in their abilities to come up with good solutions for their problems, equipped with our library.

lean is a good foundation to build upon but enough with the chitchat, here's a feature complete feature list!

Features

  • /:controller/:action routing
  • Small but powerful template system
  • Views with [ document > layout > view ] structure
  • Partials
  • Environments to stage your development
  • Form and form element abstraction
  • I18N (translations only at this point)
  • Session abstraction
  • Text manipulation
  • Powerful data dump class
  • Migration management
  • Full fledged I18N