Skip to content

izica/php-browser-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f6ade6e · Apr 9, 2023

History

13 Commits
Jun 13, 2018
Jun 10, 2018
Jun 12, 2018
Apr 9, 2023
Jun 10, 2018
Jun 10, 2018

Repository files navigation

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);