alddesign/php-xout 问题修复 & 功能扩展

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

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

alddesign/php-xout

最新稳定版本:1.0.0

Composer 安装命令:

composer require alddesign/php-xout

包简介

A more readable implementation of PHPs var_dump() function

README 文档

README

A more readable, syntax highlighted implementation of PHPs var_dump() or print_r() function.
Compatible with all PHP versions back to 5.4

Installation

Via Composer

composer require alddesign/php-xout

Manual

Downlaod the package and load xout.php:

require_once 'xout.php'

Usage

//code before...
$array = 
[
    'cars' => ['audi','bmw','volkswagen'], 
    'settings' => (object)
    [
        'drive' => true, 
        'disable_car' => 
        function(){}
    ],
    'value' => 220.25,
    'active' => null
];

//Call xout
Xout::xout($array);

//Or use the shorthand function:
xout($var);

The output will look like this:
output

Remarks

Parameters

  • value: The expression to output
  • return (bool): If set to true the resulting html is being returned insted of echoing it. Default: false
  • dontDie (bool): If set to true the script will not terminated. When return is set to true, this parameter has no effect. Default: false

Customization

In xout.php you can change many options like font, color, brace style,...

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-07-19