定制 alphabetus/var-dumper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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
  1. $ composer require alphabetus/var-dumper

  2. 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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固