hellonico/var-dumper-configurator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

hellonico/var-dumper-configurator

最新稳定版本:0.2.0

Composer 安装命令:

composer require hellonico/var-dumper-configurator

包简介

Configure Symfony var-dumper when using outside Symfony

README 文档

README

VarDumper component has some nice features when used with the complete Symfony stack. However, those features are lost or tedious to configure application wide when using in standalone mode.

This package aims to provide a simple way to configure these options such as theme and fileLinkFormat which puts links on dumped objects that directly open related file in your favorite IDE.

Usage

Install the package:

composer req hellonico/var-dumper-configurator --dev

The component is automatically configured with environment variables:

If you're using a .env file:

VAR_DUMPER_THEME=light
VAR_DUMPER_IDE=vscode

Or in pure PHP:

$_SERVER['VAR_DUMPER_THEME'] = 'light';
$_SERVER['VAR_DUMPER_IDE'] = 'vscode';
// OR
putenv('VAR_DUMPER_THEME=light');
putenv('VAR_DUMPER_IDE=vscode');

⚠️ Put those lines BEFORE requiring your vendor/autoload.php file.

You can also call the VarDumperConfigurator::configure method yourself.

HelloNico\VarDumperConfigurator\VarDumperConfigurator::configure('vscode', 'light');

⚠️ Don't require --dev if using it that way.

IDE supported

Check the Symfony docs for a full list of supported IDE: https://symfony.com/doc/current/reference/configuration/framework.html#ide

统计信息

  • 总下载量: 3.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2022-07-12