PHP code example of manggala / cortex-ai

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

    

manggala / cortex-ai example snippets


return [
    // Target default exporter: 'gemini', 'cursor', 'claude', 'windsurf', 'copilot', 'all', 'json'
    'default_target' => 'gemini',

    // Direktori penampung file hasil ekstraksi (set '' jika ingin di root proyek)
    'output_dir' => 'context',

    // Tabel DB yang diabaikan
    'ignored_tables' => [
        'migrations', 'failed_jobs', 'personal_access_tokens', 'sessions', 'jobs', 'cache',
    ],

    // Route patterns yang diabaikan
    'ignored_routes' => [
        '_ignition/*', 'sanctum/*', 'telescope/*', 'horizon/*', 'livewire/*',
    ],
];
bash
php artisan vendor:publish --tag=cortex-ai-config