PHP code example of sophireak / laracheck

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

    

sophireak / laracheck example snippets


'mode'               => 'soft',        // soft | strict
'protected_branches' => ['main', 'master'],
'anthropic_api_key'  => env('ANTHROPIC_API_KEY'),
bash
# Run manually
php artisan laracheck

# Run without auto-fix
php artisan laracheck --no-fix

# Run without AI explanations (faster, offline)
php artisan laracheck --no-ai

# Block push if issues remain
php artisan laracheck --strict

# One-time setup
php artisan laracheck:install

# Emergency bypass
git push --no-verify
bash
php artisan vendor:publish --tag=laracheck-config