PHPackages                             algoritma/phpinfo - 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. algoritma/phpinfo

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

algoritma/phpinfo
=================

A lightweight CLI tool to fetch and inspect PHP settings by running `phpinfo()` via HTTP in your web application's environment. This tool is particularly useful for verifying the actual configuration of a running FPM instance when CLI settings might differ.

0.0.1(2w ago)120MITPHPPHP &gt;=8.4CI passing

Since Mar 6Pushed 2w agoCompare

[ Source](https://github.com/algoritma-dev/phpinfo)[ Packagist](https://packagist.org/packages/algoritma/phpinfo)[ RSS](/packages/algoritma-phpinfo/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (6)Used By (0)

PHP Info Inspector
==================

[](#php-info-inspector)

A lightweight CLI tool to fetch and inspect PHP settings by running `phpinfo()` via HTTP in your web application's environment. This tool is particularly useful for verifying the actual configuration of a running FPM instance when CLI settings might differ.

Features
--------

[](#features)

- **Accurate Info**: Fetches settings from the perspective of the web server, not the CLI.
- **Secure**: Uses a randomly named temporary file that is automatically deleted after each request.
- **Filtering**: View only important settings, search for specific keys, or filter by extension/section.
- **Colorized Output**: Easy-to-read terminal output with a legend for local vs. default values.

Requirements
------------

[](#requirements)

- PHP 8.4 or higher.
- PHP cURL extension.
- Write access to the public directory of your web application.

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

[](#installation)

### Via Composer

[](#via-composer)

You can install this tool as a dependency in your project:

```
composer require algoritma/phpinfo
```

Or install it globally:

```
composer global require algoritma/phpinfo
```

Utilization
-----------

[](#utilization)

The tool provides a single command: `php:info`.

### Basic Usage

[](#basic-usage)

You must provide the base URL of your application. The tool will automatically attempt to guess your project's public directory.

```
bin/phpinfo https://myapp.local
```

### Configuration via Environment Variables

[](#configuration-via-environment-variables)

You can set default values in a `.env` file in your current directory:

```
APP_URL=https://myapp.local
APP_PUBLIC_DIR=/var/www/html/public
```

### Advanced Options

[](#advanced-options)

- **Specific Public Directory**: If the tool cannot guess it correctly.

    ```
    bin/phpinfo https://myapp.local /var/www/html/my-public-dir
    ```
- **Filter by Section**: Show only specific extensions or sections.

    ```
    bin/phpinfo https://myapp.local --section=core --section=opcache
    ```
- **Search for a Key**: Find a specific configuration directive.

    ```
    bin/phpinfo https://myapp.local --search=memory
    ```
- **Show Important Settings**: Display a curated list of the most relevant production settings.

    ```
    bin/phpinfo https://myapp.local --important
    ```
- **Skip SSL Verification**: Useful for local development with self-signed certificates.

    ```
    bin/phpinfo https://myapp.local --no-verify
    ```

Contributing
------------

[](#contributing)

Contributions are welcome! To contribute, follow these steps:

1. **Fork the repository**.
2. **Install dependencies**:

    ```
    composer install
    ```
3. **Run Quality Assurance**: Before submitting a PR, ensure all tests and quality checks pass:

    ```
    make qa
    ```

    This command runs:

    - **PHPUnit**: Unit and integration tests.
    - **PHPStan**: Static analysis.
    - **Rector**: Code upgrades and refactoring checks.
    - **PHP-CS-Fixer**: Coding style checks.
4. **Fix Coding Style / Rector**: If there are issues, you can run:

    ```
    make qa-fix
    ```

### Project Structure

[](#project-structure)

- `bin/`: The CLI entry point.
- `src/Command/`: Symfony Console command implementation.
- `src/Service/`: Logic for fetching, parsing, filtering, and rendering PHP info.
- `tests/`: PHPUnit tests.

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file (if present) or `composer.json` for details.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance97

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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

Unknown

Total

1

Last Release

16d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/117803c0597726db044b29864f1943dcb8b63f286eb26ff36bd5b4f132b4a6ef?d=identicon)[develop-algoritma](/maintainers/develop-algoritma)

---

Top Contributors

[![raffaelecarelle](https://avatars.githubusercontent.com/u/15015792?v=4)](https://github.com/raffaelecarelle "raffaelecarelle (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/algoritma-phpinfo/health.svg)

```
[![Health](https://phpackages.com/badges/algoritma-phpinfo/health.svg)](https://phpackages.com/packages/algoritma-phpinfo)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

12943.4M4.3k](/packages/illuminate-console)[typo3/tailor

A CLI tool to make TYPO3 extension handling easier

32109.0k47](/packages/typo3-tailor)

PHPackages © 2026

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