Skip to content

PHP and system requirement definitions for Bolt

License

Notifications You must be signed in to change notification settings

bolt/requirements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bolt Requirements

PHP and system requirement definitions for Bolt.

Using

<?php

use Bolt\Requirement\BoltRequirements;
use Symfony\Requirements\Requirement;

$requires = new BoltRequirements('/path/to/bolt');

/** @var Requirement $require */
foreach ($requires->getFailedRequirements() as $require) {
    echo $require->getTestMessage(), PHP_EOL;
    echo $require->getHelpText(), PHP_EOL;
}

/** @var Requirement $require */
foreach ($requires->getFailedRecommendations() as $require) {
    echo $require->getTestMessage(), PHP_EOL;
    echo $require->getHelpText(), PHP_EOL;
}