webino / develop
PHP projects development support.
Requires
- php: ~7.1
Requires (Dev)
- nette/tester: 1.*
- phpstan/phpstan: 0.*
- squizlabs/php_codesniffer: 3.*
- tracy/tracy: 2.*
Suggests
- tracy/tracy: Better debug.
This package is auto-updated.
Last update: 2024-11-29 06:09:49 UTC
README
Developer utilities.
Recommended Usage
Do use utility functions only for development usage.
Setup
composer require webino\develop
Quick Use
Utility functions, development only:
d($foo); // var_dump(); dd($foo); // var_dump();exit; p($foo); // print_r(); pd($foo); // print_r();exit; pr($foo); // return print_r(); e(); // throw new \Webino\DevException;
API
-
void d(mixed $subject)
Var dumping the subject. -
void d(mixed $subject)
Dying var dumping the subject. -
void p(mixed $subject)
Enhanced subject print scream. -
void pd(mixed $subject)
Dying enhanced subject print scream. -
string pr(mixed $subject)
Enhanced subject print return. -
void bd(mixed $subject)
Debugger bar var dumping the subject. -
void e(string $msg = '')
Development exception.
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.