PHP code example of maarheeze / codegraph-laravel

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

    

maarheeze / codegraph-laravel example snippets

bash
php artisan codegraph:init
bash
php artisan codegraph:index
bash
php vendor/bin/codegraph search <name>
php vendor/bin/codegraph callers <fqn>
php vendor/bin/codegraph callees <fqn>
php vendor/bin/codegraph blast-radius <fqn> --depth=3
php vendor/bin/codegraph search-chunks '<query>'
bash
php artisan codegraph:init --mcp
bash
php artisan codegraph:status
json
{
  "scripts": {
    "post-autoload-dump": [
      "@php artisan codegraph:init || true",
      "@php artisan codegraph:index || true"
    ]
  }
}