Skip to content
This repository was archived by the owner on Jul 11, 2019. It is now read-only.

jotham/php-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

PHP UTIL

PRINT DEBUGGING FOR LIFE 🐾

Contents

trace() Takes any number of arguments and datatypes and attempts to use JSON to render them to the error log.

tracef() Prints context and arguments of current function.

Example:

class Foo {
  public function SomeFunction($bar){
    tracef();
  }
}
(new Foo())->SomeFunction("Hello World!");

Output:

"Foo->SomeFunction" ["Hello World!"]

About

PHP helpers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages