定制 pixelee/insight-dumper 二次开发

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

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

pixelee/insight-dumper

Composer 安装命令:

composer require pixelee/insight-dumper

包简介

InsightDumper est un outil de débogage PHP conçu pour offrir aux développeurs une vision claire et approfondie de leurs données au moment du développement.

README 文档

README

InsightDumper is a PHP debugging tool designed to provide developers with a clear and detailed view of their data during development. Combining advanced variable dumping features with a colorful and intuitive visual presentation, InsightDumper transforms the way developers interact with their data, making the debugging process not just more efficient but also enjoyable.

Key Features

  • Enhanced Visualization: Enjoy a colorful and structured display of data, making the inspection of complex arrays, objects, and other PHP data types straightforward and direct.
  • Seamless Integration: Designed for effortless integration into any PHP project, whether you're using a specific framework like Laravel or Symfony, or operating in a pure PHP environment.
  • Rich Functionality: From straightforward variable dumping to advanced features like execution tracing and performance profiling, InsightDumper is equipped to meet all your debugging needs.
  • Customization: Tailor the display and behavior of InsightDumper to perfectly match your debugging workflow and preferences.

Whether you're a solo developer working on your passion project or a team building a large-scale PHP application, InsightDumper is here to illuminate your debugging process with clarity, color, and deep insight into your data.

Installation

To get started with InsightDumper, install it via Composer:

composer require pixelee/insight-dumper

Usage

Standard PHP Project

  1. Setup: Include Composer's autoload file and the in() function file in your project.
require_once 'vendor/autoload.php';
require_once __DIR__ . '/vendor/pixelee/insight-dumper/Resources/functions/in.php';
  1. Variable Dumping: Use the in() function to dump variables for debugging.
$data = ['name' => 'John', 'age' => 30];
in($data);

PHP MVC Frameworks

Laravel

  • Service Provider and Facade (Optional): Optionally, register InsightDumper as a service provider and create a facade for an elegant syntax.
  • Usage: Call in() within your application to debug data effortlessly.
// In a controller method
$users = User::all();
in($users);

Symfony

  • Service Configuration: Optionally, configure InsightDumper as a service in services.yaml.
  • Usage: Use in() in controllers or services for debugging.
// In a controller action
$users = $this->userRepository->findAll();
in($users);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-20