1. Go to this page and download the library: Download matchory/coding-style 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/ */
matchory / coding-style example snippets
declare(strict_types=1);
use Matchory\CodingStyle\Rector\Preset;
use Rector\Config\RectorConfig;
return Preset::laravel(RectorConfig::configure())
->withPaths([__DIR__ . '/app', __DIR__ . '/tests'])
->withCache(cacheDirectory: __DIR__ . '/.cache/rector/run')
->withSkip([
// File-specific skips stay here; they do not generalise.
SomeRector::class => [__DIR__ . '/app/Legacy'],
]);
bash
php php/bin/generate-pint-presets.php --check # pint/relaxed.json is derived from base.json
cd js && node scripts/generate.mjs --check # generated/*.json are derived from src/
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.