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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-install-doctor

PHP Install Doctor

Tests Latest Version on Packagist Last updated

CLI diagnostic tool that checks PHP extensions, permissions, and configuration.

Requirements

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:

Star the repo

🐛 Report issues

💡 Suggest features

❤️ Sponsor development

🌐 All Open Source Projects

💻 GitHub Profile

🔗 LinkedIn Profile

License

MIT


All versions of php-install-doctor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package philiprehberger/php-install-doctor contains the following files

Loading the files please wait ...