承接 omegacode/t3-debugger-utility-standalone 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

omegacode/t3-debugger-utility-standalone

Composer 安装命令:

composer require omegacode/t3-debugger-utility-standalone

包简介

A standalone port of the DebuggerUtility of the well known CMS TYPO3.

README 文档

README

Build Status CodeFactor

TYPO3 DebuggerUtility - Standalone

This library is for everybody who wants to use the DebuggerUtility of the well known CMS TYPO3 (v 9.5) in its own project.

The API of the class is still the same, so you dont have to learn a new one.

Its an education project to increase my skills as a developer, but may it will be useful for somebody.

Installation

This library is composer based, so you simply have to execute the following command:

composer require omegacode/t3-debugger-utility-standalone

Requirements

  • At least PHP version 7.1

Usage

This is a simple example of how to use the class.

require_once __DIR__.'/vendor/autoload.php';

$var = new stdClass();
$var->title = "my obj";
$var->someVar = [
  "key" => "value",
  1234,
  0.23
];

\OmegaCode\DebuggerUtility::var_dump($var, 'my awesome var_dump!');

For more advanced usages, check the API of the class

Parameter Description Optional
$variable The value to dump no
$title optional custom title for the debug output yes
$maxDepth Sets the max recursion depth of the dump. De- or increase the number according to your needs and memory limit. yes
$plainText if TRUE, the dump is in plain text, if FALSE the debug output is in HTML format yes
$ansiColors if TRUE (default), ANSI color codes is added to the output, if FALSE the debug output not colored yes
$return if TRUE, the dump is returned for custom post-processing (e.g. embed in custom HTML). If FALSE (default), the dump is directly displayed. yes
$blacklistedClassNames An array of class names (RegEx) to be filtered. Default is an array of some common class names. yes
$blacklistedPropertyNames An array of property names and/or array keys (RegEx) to be filtered. Default is an array of some common property names. yes

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

How to run tests local

To run the tests use the console file (build/scripts/console.sh)

Test runner help

No arguments: Run all unit tests

Options:

-s <...>
    Specifies which test suite to run
        - build: Test if the project can be build without errors.
        - unit: Runs all unit tests
        - quality: Runs all code quality tests.

-p <7.1|7.2|7.3>
    Specifies the PHP version to be used

-h
    Show this help.

Examples:

Run unit tests using PHP 7.2: build/scripts/console.sh -s unit -p 7.2

Run code quality tests using PHP 7.3 build/scripts/console.sh -s quality -p 7.3

Test runner information

This library is developed using OSX. If you are using a different OS there might be a chance that this script wont work.

License

GPL-3.0

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2019-06-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固