webino / exceptions
Slightly better PHP exceptions.
1.0.0
2019-03-21 16:37 UTC
Requires
- php: ~7.1
Requires (Dev)
- nette/tester: 1.*
- phpstan/phpstan: 0.*
- squizlabs/php_codesniffer: 3.*
- tracy/tracy: 2.*
This package is auto-updated.
Last update: 2024-11-22 05:09:18 UTC
README
Slightly better exceptions.
Setup
composer require webino\exceptions
Quick Use
Exception message formatting:
$exc = (new Exception('Exception %s, %s.'))->format($foo, $bar); echo $exc->getMessage(); // => Exception `Foo`, `Bar`.
Development
Static analysis:
composer analyse
Coding style check:
composer check
Coding style fix:
composer fix
Testing:
composer test
Git pre-commit setup:
ln -s ../../pre-commit .git/hooks/pre-commit
Addendum
Please, if you are interested in this library report any issues and don't hesitate to contribute. We will appreciate any contributions on development of this library.