Most important:
This library does not use type-hints, follow PSR-2, or apply most other "best practices."
This is intentional, and mostly just to make life a little more fun. Life's too short to take everything so seriously.
The library is still high quality and has an awesome test suite; it's just written more like Ruby than like Java :)
This library borrows most structural choices from PSR-2 in terms of tabs vs. spaces, where there should/shouldn't be whitespace, and where to put braces.
It deviates significantly from PSR-1 and PSR-2 in the following ways:
__construct
For example:
// Bad! 😒
class Foo
{
private $bar;
private $baz = 'hello world';
public function __construct()
{
$this->bar = new Collection;
}
private function qux()
{
// ...
}
}
// Fantastic! 😍
class Foo
{
function __construct()
{
$this->bar = new Collection;
$this->baz = 'hello world';
}
function qux()
{
// ...
}
}
Additionally, code must also follow these constraints:
We accept contributions via Pull Requests on GitHub.