dev-master
9999999-devCollection PHP exceptions grouped by functionality with nice ::assert API
MIT
The Development Requires
0.1.0
0.1.0.0Collection PHP exceptions grouped by functionality with nice ::assert API
MIT
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Collection PHP exceptions grouped by functionality with nice ::assert API
How many times you throw exceptions in your code? and how many of them are repeating?, (*1)
This library collects general use cases and provide nice ::assert API., (*2)
Use it, don't waste your development time for custom exceptions, use one of our exceptions classes., (*3)
Tired of writing is_array($value) || $value instanceof \Traversable?
Use predefined assertions and save your time, like so:, (*4)
``` php use Exception\InvalidTypeException;, (*5)
function thatCanCantBeViolated($arrayOrTraversable) { InvalidTypeException::assertIsTraversable($arrayOrTraversable); // do your regular work }, (*6)
## Installation
composer require widmogrod/php-exceptions, (*7)
## Development This repository follows [semantic versioning concept](http://semver.org/). If you want to contribute, just follow [GitHub workflow](https://guides.github.com/introduction/flow/) and open a pull request. ## Testing Quality assurance is brought to you by [PHPSpec](http://www.phpspec.net/)
composer test ```, (*8)
Collection PHP exceptions grouped by functionality with nice ::assert API
MIT
Collection PHP exceptions grouped by functionality with nice ::assert API
MIT