marko/codeindexer

Shared static-analysis library for Marko AI tooling

Maintainers

Package info

github.com/marko-php/marko-codeindexer

Type:marko-module

pkg:composer/marko/codeindexer

Statistics

Installs: 0

Dependents: 2

Suggesters: 0

Stars: 0

0.8.0 2026-05-29 13:11 UTC

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