1. Go to this page and download the library: Download kha333n/laravel-code-graph 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/ */
kha333n / laravel-code-graph example snippets
return [
// Where the SQLite graph file lives.
'database' => env('CODE_GRAPH_DB', base_path('.code-graph/index.sqlite')),
// Directories to scan, relative to base_path().
'scan_paths' => [
'app',
'config',
'database',
'routes',
'resources/views',
'tests',
],
// Substrings of paths to exclude.
'exclude' => [
'vendor',
'storage',
'bootstrap/cache',
'node_modules',
'.code-graph',
],
// File extensions to index.
'extensions' => ['php'],
// Optional feedback / analytics layer. Disabled by default. When
// enabled, the report-issue-tool MCP tool becomes functional and
// appends entries to the path below. Local-only, never sent over
// the network.
'feedback' => [
'enabled' => env('CODE_GRAPH_FEEDBACK', false),
'path' => env('CODE_GRAPH_FEEDBACK_PATH', base_path('.code-graph/feedback.md')),
],
];
• [method] App\Services\Matching\ScoringService::score
app/Services/Matching/ScoringService.php:42-58
public function score(Profile $a, Profile $b): float
bash
php artisan mcp:inspector code-graph
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.