fmihel / console-log
error,log,console,php,javascript,js,error_log,console.log,console.info
Installs: 1 983
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires (Dev)
- phpunit/phpunit: ^8.5
README
Class out to error_log like as console.info from js
Install
composer require fmihel/console-log
Use
<?php require_once __DIR__.'/vendor/autoload.php'; use fmihel\console; console::log('Can out array',[1,2,3,4]); try{ throw new \Exception('generate error'); }catch(\Exception $e){ console::error($e); }; >
Api
Config
For config use method console::params([...])
with next params:
|