Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 786 Bytes

File metadata and controls

30 lines (20 loc) · 786 Bytes

marko/codeindexer

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