
PHP Checkup
Framework agnostic application health and requirement checks.
Easy and quick
Adding and configuring checks is easy-peasy.
Flexible
Use built-in checks or create your own.
Standalone
Framework-agnostic; use it with any framework, or as a standalone package.
# Quick start
use \Gerardojbaez\PhpCheckup\Checks\Php\ExtensionIsLoaded;
use \Gerardojbaez\PhpCheckup\Manager;
use \Gerardojbaez\PhpCheckup\Runner;
$manager = new Manager;
// Register checks
$manager->add(
(new Check('Required PHP extension "mbstring" is installed', new ExtensionIsLoaded('mbstring')))
->group('requirements')
->passing('The extension is installed')
->failing('The extension is not installed. Please install or enable it before proceeding.')
->critical()
);
// Run checks
$runner = new Runner();
$runner->run($manager)->isPassing();