Recommend this page to a friend! |
Classes of Frank Forte | Quantum PHP | README.md | Download |
|
DownloadOverviewQuantumPHP is a PHP and JavaScript library that can log server side variables directly to the developer tools console in various browsers like Firefox Quantum, with or without the use of a browser extension or add-on. Requirements
Installation1. Add QuantumPHP to your projecta) composer require frankforte/quantumphp or b) git clone https://github.com/frankforte/quantumphp.git vendor/frankforte/quantumphp 2. Get QuamtumPHP in your browser:a) For Firefox, add the following light weight add-on:https://addons.mozilla.org/en-US/firefox/addon/quantumphp/ or b) For Google Chrome, install the Chrome extension:https://chrome.google.com/extensions/detail/noaneddfkdjfnfdakjjmocngnfkfehhd More information can be found here: http://www.chromelogger.com or c) copy the JavaScript file into your public directory and include it in your HTML.for example:
Then add the file to the HTML template
3. Use it in your project:Add this to your PHP file. The 'add' method will add rich information to the logs in a table format.
Note: objects and arrays should be logged with the "add" method:
Finally, hit F12 in your browser to open developer tools, and view the output under the "console" tab. Please submit any issues you have: https://github.com/frankforte/quantumphp/issues |