alphabetus/var-dumper
Composer 安装命令:
composer require alphabetus/var-dumper
包简介
Basic var dump into file
README 文档
README
This package provides a simple var_dumper that allows you to transcript variables into file.
It generates the file /var/alpha-dump/dump.txt with the contents of given var.
1. Basic Usage
-
$ composer require alphabetus/var-dumper
- The static method
::log()can be used with 1 or 2 parameters:::log($var)- Logs only the last call of the dump and deletes older entries.::log($var, $keep_log_boolean)- if true, cumulates dumper calls in the same file.
Follow the example below
<?php
namespace App\Module;
use AlphaLogger\Logger as Logger;
class YourClass
{
public function foo()
{
$var = ...
Logger::log($var, [$cumulate_log]);
}
}
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-17