Welcome to the Trac site for Lepton-PHP

IMPORTANT! There has been some changes made with the version bump to 0.1.9 that might require your attention when updating from the SVN trunk - For more information, see the discussion forum.

Lepton-PHP is the almighty PHP framework that kicks butt and allows you to drop a site in the blink of an eye. If you want to see Lepton in action, take a look at the links on the Who is using Lepton page. If you still need convincing, go read Why should I use Lepton. You might also be interested in some of Lepton's sister projects or the quick tutorial on how to get the show on the road.

Get the trunk!

svn checkout http://svn.noccy.com/lepton-php/trunk lepton-trunk

For information about using the SVN version, see use the source.

For downloads and available files, see files.

Automatic table upgrades

Automatic table upgrading has been implemented, allowing changes to be performed to the Lepton system tables. This has been done in order to stop things from blowing up as tables are updated during the development process.

This functionality can be undesired for some websites, in which case the configuration key lepton.core.autoupdate can be set to false to stop this.

Nasser on Lepton

We are proud to announce that the new website of international world rally champion  Nasser Al-Attiyah is using Lepton. The site hosts a photo gallery holding over 1 GB of images ranging from 2004 to 2009 as well as a custom news gallery.

The Lepton team would also like to forward our congratulations on the latest victory!

  • Posted: 2010-01-06 17:02
  • Author: noccy
  • Categories: (none)
  • Comments (0)

Dynamic content caching, 0.2 and analytics

As you all may have noticed we busted the 0.2 deadline again. Some things got in the way, and in reality we are probably a month from tagging the 0.2 milestone. We will keep working towards it tho, and any contributions are welcome.

Lepton now has basic (and very beta) support for dynamic content caching, that is storing data in the filesystem and database rather than regenerating it on each request. This is good and very useful for f.ex. galleries where images change often, dynamically generated avatars, and also any textual content that takes time to generate.

Using it is easy, just call the static get() and set() methods of the FsCache class; first attempt to get() it, and if that fails just generate the content and then set() it:

if (!FsCache::get('images/'.$id)) {
   $i = Graphics::load('images/'.$id);
   $i->resize(140,140,ImageCanvas::KEEP_CROP);
   $i->output('image/png');
   $d = $i->output('image/png', 75, true);
   FsCache::set('images/'.$id, 'image/png', $d);
}

Easy to use, albeit still a bit gronky. The handy part tho is that the get() call will handle all the output, including setting the content type.

There is now also support for Google Analytics using the ganalytics library. You can read more about that in the readme file.

Lepton/PHP

Reference

Also see the Reference index

Extensions

Lepton/JS

Roadmap

0.2 due Feb 01, 2010 [in -37 days, for -37 days]
Lepton 0.2 codename Achernar is the first pre-release of Lepton. It should have reliable APIs to work with databases as well as authentication. The key content management function such as Wiki and Forum should be functional, and if possible also Blog and Comments.

Key components:

  • Content Management (Wiki, Forum, Blog, Comments)
  • Database API (Query, Schema management, Scaffolding)
  • Feeds (RSS, Atom)
  • Authentication, ACL, and AuthenticationBridge
  • File uploads, File management, and Shell
  • Graphics library
0.2.1 due Mar 01, 2010 [in -9 days, for 28 days]
This milestone will resolve tickets that could not be closed in time for the 0.2 release and is to be considered a bugfix release.
0.3 due Mar 31, 2010 [in 20 days, for 29 days]
Lepton 0.3 codename Bellatrix:
  • Basic native SMTP implementation
  • Markup working for at least bbcode, safe html subset, and markdown
  • Extensions, Events, and Hooks working
0.4 due Jun 30, 2010 [in 111 days, for 91 days]
Lepton 0.4 codename Chara:
  • All the key modules should have test cases for lUnit
  • Content distribution framework (bittorrent and webseeding)
0.5 due Sep 30, 2010 [in 203 days, for 92 days]
Lepton 0.5 codename Deneb:
  • Installer and Control Panel
  • XMLRPC and SOAP APIs
  • LDWP
1.0 due Dec 31, 2010 [in 295 days, for 92 days]
Lepton 1.0 codename Eltanin: