anwarachilles / php-tracer
PHP 错误与数据跟踪工具
1.0.2
2023-08-28 12:40 UTC
README
简单的 PHP 数据跟踪工具
安装
使用 composer 安装 php-tracer
composer require anwarachilles/php-tracer
使用/示例
<?php // load vendor require_once "vendor/autoload.php"; // load class use AnwarAchilles\PHPTracer; // data sample $string = "Hello World"; $array = ["Hello", "World"]; $boolean = true; $integer = 123; $float = 1.23; $object = new stdClass(); class Person { private $name; protected $age; public $gender; } $object_in_class = new Person; // init class $trace = new PHPTracer(); // run tracer $trace->run([ $string, $array, $boolean, $integer, $float, $object, $object_in_class ]);