PHP code example of ineersa / ai-index

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

    

ineersa / ai-index example snippets




declare(strict_types=1);

return [
    'srcDir' => 'src',
    'projectNamespacePrefix' => 'App\\',

    'callGraph' => [
        'outputPath' => 'callgraph.json',
        'phpstanBin' => 'vendor/bin/phpstan',
        'configPath' => 'vendor/ineersa/call-graph/callgraph.neon',

        // false by default: only App<->App edges
        // true:        'debug' => false,
        'spec' => 'agent-core.di-wiring/v1',
    ],

    'index' => [
        'spec' => [
            'file' => 'agent-core.file-index/v1',
            'namespace' => 'agent-core.ai-docs/v1',
        ],
    ],
];