2017 © Pedro Peláez
 

library simple-php-debuging

Simple PHP debuging tools

image

trash07/simple-php-debuging

Simple PHP debuging tools

  • Thursday, May 24, 2018
  • by trash07
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

simple-php-debuging

Simple PHP debuging tools and utils, (*1)

Simple handy manual debuging utils, (*2)

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, (*3)

The Versions

24/05 2018

dev-master

9999999-dev

Simple PHP debuging tools

  Sources   Download

GPL-3.0

The Requires

  • php >=5.4.0

 

by Avatar trash07

24/05 2018

1.1

1.1.0.0

Simple PHP debuging tools

  Sources   Download

GPL-3.0

The Requires

  • php >=5.4.0

 

by Avatar trash07

09/05 2018

1.0

1.0.0.0

Simple PHP debuging tools

  Sources   Download

GPL-3.0

by Avatar trash07