Download the PHP package algoritma/phpinfo without Composer
On this page you can find all versions of the php package algoritma/phpinfo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download algoritma/phpinfo
More information about algoritma/phpinfo
Files in algoritma/phpinfo
Package phpinfo
Short Description 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.
License MIT
Informations about the package phpinfo
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
- 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
- PHP 8.4 or higher.
- PHP cURL extension.
- Write access to the public directory of your web application.
Installation
Via Composer
You can install this tool as a dependency in your project:
Or install it globally:
Utilization
The tool provides a single command: php:info.
Basic Usage
You must provide the base URL of your application. The tool will automatically attempt to guess your project's public directory.
Configuration via Environment Variables
You can set default values in a .env file in your current directory:
Advanced Options
-
Specific Public Directory: If the tool cannot guess it correctly.
-
Filter by Section: Show only specific extensions or sections.
-
Search for a Key: Find a specific configuration directive.
-
Show Important Settings: Display a curated list of the most relevant production settings.
- Skip SSL Verification: Useful for local development with self-signed certificates.
Contributing
Contributions are welcome! To contribute, follow these steps:
- Fork the repository.
-
Install dependencies:
-
Run Quality Assurance: Before submitting a PR, ensure all tests and quality checks pass:
This command runs:
- PHPUnit: Unit and integration tests.
- PHPStan: Static analysis.
- Rector: Code upgrades and refactoring checks.
- PHP-CS-Fixer: Coding style checks.
- Fix Coding Style / Rector: If there are issues, you can run:
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
This project is licensed under the MIT License. See the LICENSE file (if present) or composer.json for details.
All versions of phpinfo with dependencies
symfony/dotenv Version ^6.4|^7.4|^8.0
symfony/console Version ^6.4|^7.4|^8.0