Skip to content

PHP Class that simplifies writing to a JS Console

Notifications You must be signed in to change notification settings

johnvilsack/PHP.ConsoleWriter.Class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

ConsoleWrite Usage

Including the ConsoleWriter

include('ConsoleWriter.php');

Create Javascript Block

ConsoleWriter::consoleBlock('open');
// YOUR WRITES GO HERE
ConsoleWriter::consoleBlock('close');

Grouping Your Javascript Writes

ConsoleWriter::consoleGroup('open', string _groupname_, );
// YOUR GROUPED WRITES GO HERE
ConsoleWriter::consoleGroup('close');
  • Parameters
    • type Type of grouping
    • open Create a grouping that has visible contents
    • end Close out a grouping
    • collapsed Create a grouping that is collapsed by default
    • groupname The classification you want to give your grouping

Writing to the Console

ConsoleWriter::consoleLine(string _value_[, [string _type_], [string _key_]]);
	_or_
ConsoleWriter::consoleQuickLine(string _value_[, [string _type_], [string _key_]]);
  • Parameters
  • value Value desired to write to the console
  • type Type of write
  • log Pretty much the same as informational
  • info Normal
  • warn Yellow Yield Sign
  • error Red and Nasty
  • key Key value

About

PHP Class that simplifies writing to a JS Console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages