PHPackages                             yousha/php-ini-scanner - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. yousha/php-ini-scanner

ActiveProject[CLI &amp; Console](/categories/cli)

yousha/php-ini-scanner
======================

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

1.0.3.3(6mo ago)3191GPL-3.0-onlyPHPPHP 7.4.\* || 8.\*CI passing

Since Dec 20Pushed 4mo agoCompare

[ Source](https://github.com/Yousha/php-ini-scanner)[ Packagist](https://packagist.org/packages/yousha/php-ini-scanner)[ Docs](https://github.com/yousha/php-ini-scanner)[ RSS](/packages/yousha-php-ini-scanner/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (7)Versions (4)Used By (0)

PHP INI Scanner
===============

[](#php-ini-scanner)

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

[![current version](https://camo.githubusercontent.com/52c49d06c826c14929e0287e8840d8e6c09880892d2c8c579733b37fe087dc83/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796f757368612f7068702d696e692d7363616e6e65722e737667)](https://packagist.org/packages/yousha/php-ini-scanner) [![PHP](https://camo.githubusercontent.com/cf058b53858080cfae1a7486368a9e4745bb450e281526dd35c49e91072e866d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e342d363137434245)](https://php.net/) [![PHP](https://camo.githubusercontent.com/dd6a93275d7eff08b50f79fc445ffe6a8a9e6f6a560531dfcf4c00002a6f7a33/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e352d363137434245)](https://php.net/) [![issues](https://camo.githubusercontent.com/1520e44164e19a722693a553abefc1e8b53defc8a3eb4c01fbd792389ab45416/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f796f757368612f7068702d696e692d7363616e6e6572)](https://github.com/yousha/php-ini-scanner/issues) [![repo size](https://camo.githubusercontent.com/745dc446f21ca52ecd858d002b929be7f37cad1e21f2c24e9a0c2c1b12ec0baa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f796f757368612f7068702d696e692d7363616e6e6572)](https://camo.githubusercontent.com/745dc446f21ca52ecd858d002b929be7f37cad1e21f2c24e9a0c2c1b12ec0baa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f796f757368612f7068702d696e692d7363616e6e6572) [![GitHub license](https://camo.githubusercontent.com/1bd226ec8565a4bc538b3d17d59cf154fc488b2d971423bd0436bf874798bf78/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f796f757368612f7068702d696e692d7363616e6e6572)](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
------------

[](#requirements)

1. PHP 7.4 – 8.\*
2. Composer &gt;= 2

Screenshots
-----------

[](#screenshots)

[![Screenshot](resources/images/screenshots/1.png)](resources/images/screenshots/1.png)

Installation
------------

[](#installation)

Via [Composer](https://getcomposer.org/) per project:

```
composer require yousha/php-ini-scanner
```

Or via [Composer](https://getcomposer.org/) globally:

```
composer global require yousha/php-ini-scanner
```

Usage
-----

[](#usage)

### Scan for Production

[](#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

[](#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
--------

[](#commands)

OptionShortcutDescription`--production``-p`Uses production rule set.`--development``-d`Uses development rule set.`--ini-path``-i`Path to `php.ini` file.License
-------

[](#license)

This open-source software is distributed under the GPL-3.0 license. See [LICENSE](LICENSE) file.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance71

Regular maintenance activity

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

194d ago

PHP version history (2 changes)1.0.0.1PHP 7.4.\*

1.0.1.1PHP 7.4.\* || 8.\*

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18091267?v=4)[Yousha Aleayoub](/maintainers/yousha)[@Yousha](https://github.com/Yousha)

---

Top Contributors

[![Yousha](https://avatars.githubusercontent.com/u/18091267?v=4)](https://github.com/Yousha "Yousha (22 commits)")

---

Tags

phpconfigdevelopmentlinterproductionphp.inisecurity-auditsecurity-lintersecurity-best-practices

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/yousha-php-ini-scanner/health.svg)

```
[![Health](https://phpackages.com/badges/yousha-php-ini-scanner/health.svg)](https://phpackages.com/packages/yousha-php-ini-scanner)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
