protoqol/quo-php
最新稳定版本:0.1.3
Composer 安装命令:
composer require protoqol/quo-php
包简介
Companion package for the Quo debugger.
README 文档
README
Quo is a cross-platform variable dumper designed to make debugging easier. It receives data from your application and displays it in a clean desktop interface, allowing you to inspect complex values in real-time without cluttering your terminal or browser console.
Note: This package requires the Quo desktop client to be running to display the debug data.
Noteworthy features
- Multiple arguments: Inspect multiple variables or expressions in a single call.
- Rich Metadata: Capture stack traces, system metrics, memory addresses, and more.
Requirements
- PHP: >= 7.1
Installation
Add quo-php to your project using composer:
composer require protoqol/quo-php --dev
Usage
Use the quo function and pass variables to inspect:
<?php require_once 'vendor/autoload.php'; $user_id = 42; $user = [ 'id' => 1, 'username' => 'jdoe' ]; // Dump a single variable quo($user_id); // Dump multiple variables at once quo($user_id, $user); // Some quick maths quo(42 * 42);
Configuration
You can customise the Quo server address in your composer.json or environment variables.
Via composer.json
Add an extra block to your composer.json:
{
"extra": {
"quo-php": {
"host": "127.0.0.1",
"port": 7312
}
}
}
The correct port can be found in the bottom left in the Quo client. Do note that it is not to change host.
Dependency justification
| Package | Used for |
|---|---|
ext-json |
Serializes debug data into JSON format for transmission to the Quo client. |
ext-curl |
Transmits the captured debug payloads to the Quo desktop client over HTTP. |
ramsey/uuid |
Generates unique UUIDv4 identifiers for each individual dump event, enabling the client to uniquely identify and track them. |
License
Quo is open-source software licensed under the GPL-3 licence.
统计信息
- 总下载量: 847
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-only
- 更新时间: 2022-06-07