Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

12 Commits

Repository files navigation

simple-php-debuging

Simple PHP debuging tools and utils

Simple handy manual debuging utils

Install

composer require trash07/simple-php-debuging --dev

Load dependencies

require'vendor/autoload.php'

Usage

  • Dumping
$people = array('marc', 'john', 'liman');
// what is the structure of $people ?_dump($people);
  • Debug
$info = array('marc', 'john', 1);
// readable $info array echo_debug($people);
  • Stopping execution
// simple stop_stop();
// stop with message_stop("Sorry we must stop");
  • Testing condition
$r = 10; $s = 11;
// test the condition of the if statement_condition($r > $s && $r < $s);
if ($r > $s && $r < $s) {
// do something ...
}
$r = 10; $s = 11;
// test the condition of the if statement with message_condition($r > $s && $r < $s, "The $r, $s equality testing if");
if ($r > $s && $r < $s) {
// do something ...
}
  • Seing if a line was executed
// simple test_line();
// _line() with message_line("Are we realy here ?");

License

GPL-3.0 © trash07

About

Simple PHP debuging tools and utils

Topics

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages