yousha / php-ini-scanner
A lightweight CLI tool to audit php.ini configurations against development and production standards.
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 1
Type:project
pkg:composer/yousha/php-ini-scanner
Requires
- php: 7.4.* || 8.*
- symfony/console: 5.*
Requires (Dev)
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.
