marko / codeindexer
Shared static-analysis library for Marko AI tooling
Package info
github.com/marko-php/marko-codeindexer
Type:marko-module
pkg:composer/marko/codeindexer
0.8.0
2026-05-29 13:11 UTC
Requires
- php: ^8.5
- marko/core: 0.8.0
- nikic/php-parser: ^5.4
Requires (Dev)
- pestphp/pest: ^4.0
This package is auto-updated.
Last update: 2026-06-03 14:28:34 UTC
README
Static analysis library that indexes Marko modules — attributes, configs, templates, translations — into a cached symbol table powering marko/mcp and marko/lsp.
Installation
composer require marko/codeindexer
Quick Example
use Marko\CodeIndexer\Cache\IndexCache; $cache = $container->get(IndexCache::class); // Cache is lazy-loaded and auto-rebuilt on first read if missing or stale $observers = $cache->findObserversForEvent(UserCreated::class); $plugins = $cache->findPluginsForTarget(ProductRepository::class);
You can also rebuild the index explicitly:
marko indexer:rebuild
Documentation
Full usage, API reference, and examples: marko/codeindexer