yousha/php-ini-scanner
最新稳定版本:1.0.3.3
Composer 安装命令:
composer create-project yousha/php-ini-scanner
包简介
A lightweight CLI tool to audit php.ini configurations against development and production standards.
关键字:
README 文档
README
A lightweight CLI tool to audit php.ini configurations against development and production standards.
It compares given settings against industry-standard recommendations for either Development or Production environments.
Built using SOLID principles, strict_types=1 and PSR compliance.
Requirements
- PHP 7.4 – 8.*
- Composer >= 2
Screenshots
Installation
Via Composer per project:
composer require yousha/php-ini-scanner
Or via Composer globally:
composer global require yousha/php-ini-scanner
Usage
Scan for Production
Checks for production environment settings:
php ./vendor/bin/php-ini-scanner scan -p -i /path/to/php.ini
Or for Windows paths:
php ./vendor/bin/php-ini-scanner scan -p -i "C:\Programs\PHP\php.ini"
Or auto-scan current installed PHP:
php ./vendor/bin/php-ini-scanner scan -p
Scan for Development
Checks for debugging-friendly settings:
php ./vendor/bin/php-ini-scanner scan -d -i /path/to/php.ini
Or for Windows paths:
php ./vendor/bin/php-ini-scanner scan -d -i "C:\Programs\PHP\php.ini"
Or auto-scan current installed PHP:
php ./vendor/bin/php-ini-scanner scan -d
Commands
| Option | Shortcut | Description |
|---|---|---|
--production |
-p |
Uses production rule set. |
--development |
-d |
Uses development rule set. |
--ini-path |
-i |
Path to php.ini file. |
License
This open-source software is distributed under the GPL-3.0 license. See LICENSE file.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2025-12-20
