PHP code example of auroro / composer
1. Go to this page and download the library: Download auroro/composer 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/ */
auroro / composer example snippets
use Auroro\Composer\ScriptResolver;
$resolver = new ScriptResolver(
scripts: [
'test' => 'vendor/bin/pest',
'check' => ['@test', '@php vendor/bin/phpstan analyse'],
],
bin: ['bin/lens'],
);
$resolver->resolve('@test'); // "vendor/bin/pest"
$resolver->resolve('@check'); // "vendor/bin/pest && php vendor/bin/phpstan analyse"
$resolver->resolve('@lens audit'); // "bin/lens audit"
$resolver->resolve('@putenv APP_ENV=ci'); // "export APP_ENV=ci"