PHP code example of realodix / relax

1. Go to this page and download the library: Download realodix/relax 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/ */

    

realodix / relax example snippets




use Realodix\Relax\Config;
use Vendor\Package\MyRuleSet;

return Config::create(new MyRuleSet);

$localRules = [
    // ...
];

Config::create()
    ->setRules($localRules);

Config::create('laravel')
sh
./vendor/bin/php-cs-fixer fix