News for hackers. Stuff that matters.
Re:Laravel : A New PHP Framework by corford on Sunday May 27, 2012 @07:31AM (#4029894)
It looks interesting enough but a few things put me off:

1). Rolling its own ORM rather than using Doctrine.

2). YATL (yet another templating language). I wish the PHP world would just standardise on Twig.

3). Localisation seems a bit basic at the moment and it's a shame you have to define messages in a PHP array rather than something more portable like YAML.

4). Would have been great if it used Monolog for logging.

On the plus side, I like the clean design and their approach for events looks cool.

Re:Laravel : A New PHP Framework by crynobone on Sunday May 27, 2012 @09:06PM (#4031547)
1. You can use Doctrine bundle http://bundles.laravel.com/bundle/doctrine

2. It's also available. http://bundles.laravel.com/search?q=twig

3. Laravel focus on Event, so you can just set a listener to `laravel.language.loader` event and replace to anything you want it to be. Check http://www.keithloy.me/2012/04/yaml-config-files-in-laravel/

4. Same with Logging, just change https://github.com/laravel/laravel/blob/master/application/c...

Re:Laravel : A New PHP Framework by corford on Tuesday May 29, 2012 @07:47AM (#4036990)
Thanks crynobone. Looks like I was too hasty in my criticism.
Re:Laravel : A New PHP Framework by voidr on Tuesday May 29, 2012 @02:21PM (#4038900)
1) Are you sure Doctrine is the best choice?

2) Why not simply use PHP for templating?

3) Using YAML would be just as bad, if you want to use something use something standard for localization like gettext or XLiff.

Re:Laravel : A New PHP Framework by corford on Wednesday May 30, 2012 @02:23PM (#4044060)
1). I'm not an ORM lover in general but, yes, if you're going to use an ORM and are basing your project on PHP, Doctrine is generally accepted as the best.

2). See: http://twig.sensiolabs.org/ (Why yet another template engine?)

3). Personal preference I guess but I hate gettext. I much prefer the pattern of using labels in your template (e.g. menu.item1) and then looking up that label in the desired language file e.g. messages.en.yml. And I've never had a problem with translators working with YAML files (i.e. the syntax is easy for them to grok)

Re:Laravel : A New PHP Framework by Arcanis on Friday June 01, 2012 @06:08PM (#4056093)
2). I really don't understand why we should use Twig : Smarty is older, why using yet another template engine ? Or I've got a better idea : we could use the template engine used in phpBB2 : he's older !

I'm agree that standardization would be just fine(c), and I like the Twig syntax, but I think the "YATL, we should use Twig" argument is not relevant.