izica/php-browser-log

Pretty log in browser console

1.4.1 2023-04-09 00:53 UTC

This package is auto-updated.

Last update: 2024-12-09 04:47:18 UTC


README

browser screen

print_r() and var_dump() alternative

Printing your data in browser console

Install

composer require izica/php-browser-log

Usage

You need to use this debug in html view. You will see result in browser console(F12, Inspect mode console);

    PhpBrowserLog::log($arg1);
    PhpBrowserLog::log($arg1, $arg2);
    PhpBrowserLog::log(...any args count);

or Aliases

    PhpBrowserLog::pre($arg1);
    pre($arg1, $arg2);