yesccx/laravel-debugging

Laravel Application Online Debugging!
1,288
Install
composer require yesccx/laravel-debugging
Latest Version:v0.1.0
PHP:^8.1.0
License:MIT
Last Updated:Jul 11, 2024
Links: GitHub  ·  Packagist
Maintainer: yesccx

安装

运行环境要求
PHP ^8.1.0
Laravel Framework ^9.0
composer require gupo/laravel-debugging

使用

组合拳

# php artisan debugging [--F | force] [--editor= nano | vim]

>> php artisan debugging -F

执行命令将自动进行以下操作:

  • 离线安装 nano 编辑器 (可选在线安装 vim );
  • 禁用 OPcache;
  • 重启 PHP-FPM.

安装编辑器

内置两种编辑器工具 vim、nano 的安装,其中 nano 支持离线安装, vim 目前需要在通外网的情况下安装.

#  php artisan debugging:install [nano | vim]

>> php artisan debugging:install vim

离线安装 nano 目前仅支持amd架构.

管理OPcache

管理 OPcache 的启用与禁用.

#  php artisan debugging:opcache [enable | true | disable | false] [--R | restart]

>> php artisan debugging:opcache false --restart

指定 --restart 时,尝试直接重启 PHP-FPM 使 OPcache 配置生效.

管理PHP-FPM

管理 PHP-FPM 服务状态.

#  php artisan debugging:service [restart | stop | start]

>> php artisan debugging:service restart

License

MIT

Related Packages

itsgoingd/clockwork

php dev tools in your browser

32,159,532 5,953
moesif/moesif-laravel

Moesif Collection/Data Ingestion Middleware for Laravel

73,617 10
viacreative/sudo-su

A utility package for logging in as other users

146,323 544
ptrofimov/clockwork-cli

Command-line interface for Clockwork, the tool for debugging and profiling PHP a...

117,929 43
libern/laravel-sql-logging

Laravel 5 package for logging SQL queries.

4,599 0

Version History

Version Released PHP Laravel License
v0.1.0 ^8.1.0 ^9.0 MIT