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(2mo ago)120MITPHPPHP &gt;=8.4CI passing

Since Mar 6Pushed 2mo agoCompare

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

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

40

—

FairBetter than 88% of packages

Maintenance87

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

65d 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.

12944.1M5.1k](/packages/illuminate-console)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

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