PHP code example of acadea / fixer

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

    

acadea / fixer example snippets


return [
    'binary' => 'path/to/bin',
    'rules' => [
        // php cs fixer rules, see the docs for more info
    ]   
];

use Acadea\Fixer\Facade\Fixer;

// ..

$fixed = Fixer::format($code);

bash
php artisan vendor:publish --provider="Acadea\Fixer\FixerServiceProvider" --tag="config"