Wednesday, May 11, 2011

Note: Include Phar archives on Ubuntu 11.04

To include/require phar archives you have to whitelist phar files in your php.ini/suhosin.ini configuration file.

suhosin.executor.include.whitelist = phar

Friday, April 15, 2011

Propel2 - 'Whether it is called Propel2 or not is irrelevant.'

Yesterday something popped out on my twitter stream and made me a bit curious. Francois Zaninotto is working on an ActiveRecord Implementation built on top of some Symfony2 components,  Doctrine2 and Twig, maybe it will be later called Propel2 or not.

Check it out here.

Features currently supported (out of the project readme on github)
  • Working ActiveRecord builder (no handling of relations for now)
    • Generated entities are empty classes extending generated Base Entities extending nothing
    • Getter & setter generation
    • Metadata loader
    • Access to the EntityManager from within an Entity
    • fromArray and toArray
    • isNew, isModified, etc.
    • ActiveEntity methods: save(), delete()
  • Basic behavior support
    • Ability to alter the data structure
    • Ability to modify the generated code pretty much everywhere
    • Timestampable behavior example
  • Template customization via partials

I love this new era of PHP projects:
Just to mention a few ;)

Friday, April 8, 2011

SILEX - a PHP micro-framework

New toys for us to play with!

Fabien Potencier and Igor Wiedler brought us under the flagship of Sensio Labs a Sinatra.rb inspired micro framework.

Check out their presentation:


via Daniel Bayerlein

For you JavaScript freaks out there, I created some months ago a prototype of Sinatra.rb in JavaScript based on MooTools 1.3 called Dean.js, the source is available at github.