PHP code example of particle-academy / fancy-conformance
1. Go to this page and download the library: Download particle-academy/fancy-conformance library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
particle-academy / fancy-conformance example snippets
use ParticleAcademy\Conformance\Conformance;
$summary = Conformance::runTable(
'shared/satisfies-range',
fn (array $c) => NodeManifest::satisfiesRange($c['input']['version'], $c['input']['range']),
);
echo Conformance::formatSummary($summary), "\n";
exit($summary['ok'] ? 0 : 1);