PHP code example of jaydeep / laravel-xray

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

    

jaydeep / laravel-xray example snippets


Jaydeep\Xray\LaravelXrayServiceProvider::class,

'paths' => [
    'controllers'  => base_path('src/Http/Controllers'),
    'models'       => base_path('src/Domain/Models'),
    'services'     => base_path('src/Domain/Services'),
    // ...
],

'ignore' => ['Controller.php', 'BaseService.php', 'BaseRepository.php'],

// app/Console/Kernel.php
$schedule->command('xray:report --format=all')->weekly();
bash
php artisan xray:scan
php artisan xray:scan --save                    # also write JSON + Markdown
php artisan xray:architecture --mermaid --save
php artisan xray:deadcode --json
php artisan xray:report --format=all
php artisan xray:scan --path=/var/www/other-project