We are gonna be using php5.5 , so upgrade your systems to that.
-
http://laravel.com/docs/contributing#coding-guidelines , we follow these, along with PSR-0 and PSR-1.
-
use Foo
(aliasing) etc statements should start from the 3rd line. Each class that needs to be used in a namespace has to be aliased in a separate line. -
Aliasing is important. You shouldn't be using more than two Namespace Separators
(\)
in the code that you right in your classes. Try to restrict the count of those namespace separators to one. -
No accessing global namespace (ie,
\Foo
is not allowed, you need to alias the classFoo
viause Foo
). The only exception for this is php spl exception classes.