Download the PHP package philiprehberger/php-install-doctor without Composer
On this page you can find all versions of the php package philiprehberger/php-install-doctor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download philiprehberger/php-install-doctor
More information about philiprehberger/php-install-doctor
Files in philiprehberger/php-install-doctor
Download philiprehberger/php-install-doctor
More information about philiprehberger/php-install-doctor
Files in philiprehberger/php-install-doctor
Vendor philiprehberger
Package php-install-doctor
Short Description CLI diagnostic tool that checks PHP extensions, permissions, and configuration
License MIT
Homepage https://github.com/philiprehberger/php-install-doctor
Package php-install-doctor
Short Description CLI diagnostic tool that checks PHP extensions, permissions, and configuration
License MIT
Homepage https://github.com/philiprehberger/php-install-doctor
Please rate this library. Is it a good library?
Informations about the package php-install-doctor
PHP Install Doctor
CLI diagnostic tool that checks PHP extensions, permissions, and configuration.
Requirements
- PHP 8.2+
Installation
Usage
Run the built-in diagnostic command:
Example output:
The command exits with code 0 if all checks pass, or 1 if any check fails.
Programmatic Usage
Run all default checks
Run specific checks
Get results as array
Built-in Checks
| Check | Description | Default |
|---|---|---|
PhpVersionCheck |
Verifies PHP meets a minimum version | 8.2.0 |
ExtensionCheck |
Checks that required extensions are loaded | json, mbstring, openssl, pdo, tokenizer, xml, ctype, fileinfo |
MemoryLimitCheck |
Validates memory limit meets a minimum | 128 MB |
DirectoryWritableCheck |
Confirms directories exist and are writable | (none) |
Custom Checks
Implement the Check interface to create your own checks:
API
Doctor
| Method | Description |
|---|---|
Doctor::diagnose(): DiagnosticReport |
Run all default checks |
Doctor::check(Check ...$checks): DiagnosticReport |
Run specific checks |
DiagnosticReport
| Property / Method | Description |
|---|---|
$report->passed |
Array of passed CheckResult instances |
$report->warnings |
Array of warning CheckResult instances |
$report->failed |
Array of failed CheckResult instances |
$report->isHealthy(): bool |
true if no failures |
$report->toArray(): array |
All results as arrays |
$report->toConsoleOutput(): string |
Formatted console output |
CheckResult
| Method | Description |
|---|---|
CheckResult::pass(string $name, string $message): self |
Create a passing result |
CheckResult::warning(string $name, string $message): self |
Create a warning result |
CheckResult::fail(string $name, string $message): self |
Create a failing result |
$result->toArray(): array |
Result as associative array |
Status
Enum with cases: Pass, Warning, Fail.
Development
Support
If you find this project useful:
License
MIT
All versions of php-install-doctor with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
The package philiprehberger/php-install-doctor contains the following files
Loading the files please wait ...