neofox / objective-php-debug-bar
Objective PHP 的 PHPDebugBar 集成
v1.0
2016-12-20 12:09 UTC
Requires
- php: >=7.0
- maximebf/debugbar: 1.*
- objective-php/application: 1.0.*
- objective-php/components: 1.0.*
- objective-php/fastroute-package: ^1.0.0
- objective-php/message: 0.9.*
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- jakub-onderka/php-parallel-lint: ^0.9.2
- phpro/grumphp: ^0.10.2
- phpunit/phpunit: 5.*
- squizlabs/php_codesniffer: ^2.7
This package is auto-updated.
Last update: 2024-09-20 04:01:01 UTC
README
项目介绍
此包允许在 Objective PHP 中添加一个 PHP 调试栏
需求
目前此包需要在您的应用程序中进行两个步骤
- 路由
- 渲染
步骤名称将在未来的版本中可配置。
安装
手动
您可以通过运行以下命令克隆我们的 Github 仓库:
git clone http://github.com/Neofox/objective-php-debug-bar
如果您打算这样做,您可能不需要更多的解释来了解如何使用这个库 :)
Composer
最简单的方法是使用 Composer 安装库并准备好使用它。在您为 Primitives 创建的空文件夹中运行以下命令:
composer require --dev neofox/objective-php-debug-bar:dev-master
使用方法
现在您已经获取了包,您需要将其插入到您的应用程序中(Application.php)
$this->getStep('bootstrap')->plug(DebugBarPackage::class)
这样就完成了!
如何测试正在进行的工作?
运行单元测试
首先,请始终运行单元测试套件。我们的测试是使用 PHPUnit 编写的,可以按照以下方式运行
composer test
配置包
待续!