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

1.0.3.3 2025-12-21 15:23 UTC

This package is auto-updated.

Last update: 2025-12-27 16:13:46 UTC


README

A lightweight CLI tool to audit php.ini configurations against development and production standards.

current version PHP PHP issues repo size GitHub license

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

  1. PHP 7.4 – 8.*
  2. Composer >= 2

Screenshots

Screenshot

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.