webino/develop

PHP projects development support.

1.0.0 2019-06-22 07:12 UTC

This package is auto-updated.

Last update: 2024-10-29 05:52:55 UTC


README

Developer utilities.

Build Status Coverage Status Code Quality Latest Stable Version

Recommended Usage

Do use utility functions only for development usage.

Setup

PHP from Packagist

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

Build Status Coverage Status Code Quality Latest Unstable Version

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

License Total Downloads GitHub code size in bytes

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.

GitHub issues GitHub forks