Download the PHP package ineersa/ai-index without Composer
On this page you can find all versions of the php package ineersa/ai-index. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ineersa/ai-index
More information about ineersa/ai-index
Files in ineersa/ai-index
Package ai-index
Short Description AI index for Symfony projects with map, callgraph and wiring information.
License MIT
Informations about the package ai-index
ineersa/ai-index
Standalone AI index tooling for Symfony projects.
It provides a CLI binary (vendor/bin/ai-index) to:
- install agent templates and AGENTS section (
setup) - export Symfony DI wiring metadata (
wiring:export) - generate per-class and namespace AI index files (
generate)
Status
Current status: usable / beta.
Implemented:
- setup recipe (idempotent)
- DI wiring export from compiled Symfony container
- class docs index generation (
src/**/docs/*.toon) - namespace index regeneration (
src/**/ai-index.toon) - mandatory callgraph generation via PHPStan +
ineersa/call-graph
Still recommended before first stable release:
- add unit + integration test suites
- run consumer parity checks in more projects
Installation
From Packagist (normal)
This package now installs and uses phpstan/phpstan + ineersa/call-graph as runtime dependencies.
Local path dependency (development)
In consumer composer.json:
Then:
Quick start
From the Symfony project root:
generate auto-runs wiring export first (parity with the original flow).
For full regeneration:
Commands
setup
Install templates and upsert AGENTS section.
Behavior:
- copies templates:
.agents/skills/ai-index/SKILL.md.agents/index-maintainer.md
- upserts
AGENTS.mdsection between markers:<!-- ai-index:begin --><!-- ai-index:end -->
- idempotent by default
wiring:export
Export DI wiring map as Toon.
Default output: var/reports/di-wiring.toon.
generate
Generate class docs + namespace indexes.
By default this command:
- generates callgraph via PHPStan call-graph config,
- exports DI wiring map,
- regenerates class docs indexes,
- regenerates namespace indexes (unless
--skip-namespace).
Outputs:
var/reports/di-wiring.toonsrc/**/docs/*.toonsrc/**/ai-index.toon
Configuration (.ai-index.php)
Create this file in the consumer project root to override defaults.
Notes / troubleshooting
- Callgraph is mandatory for
generate. If callgraph config/binary is missing or PHPStan callgraph run fails,generateaborts with error. callGraph.includeVendorEdgesisfalseby default.generateandwiring:exportneed a bootable Symfony kernel in the target project unless--skip-wiringis used.vendor/bin/ai-indexis a Composer-generated proxy. The../ineersa/ai-index/bin/ai-indexpath inside that file is expected.
Development (this package)
All versions of ai-index with dependencies
symfony/console Version ^8.0
helgesverre/toon Version ^1.0 || ^3.1
nikic/php-parser Version ^5.7
phpstan/phpstan Version ^2.1
ineersa/call-graph Version ^0.1.5
symfony/dependency-injection Version ^8.0
symfony/http-kernel Version ^8.0