noccylabs/crap

$ git tag
0.1.0

$ git branch
* master

CRAP: Error/exception/assertion handling

Crap listens for catastrophic events, and create output that is useful for developers.

Handlers are needed for each supported SAPI:

Using with Symphony

Register as a service for dev environment.

Examples

Example: Register handlers

use NoccyLabs\Crap\Crap;

Crap::activate();

Example: Assertions

use NoccyLabs\Crap\Assert;

$x = 4;
$y = "foo";

Assert::isNumeric($x);
Assert::isString($y);