Static analysis library that indexes Marko modules — attributes, configs, templates, translations — into a cached symbol table powering marko/mcp and marko/lsp.
composer require marko/codeindexeruse 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:rebuildFull usage, API reference, and examples: marko/codeindexer