Skip to content

marko-php/marko-codeindexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

[READ-ONLY] Shared static-analysis library for Marko AI tooling. Issues and PRs at https://github.com/marko-php/marko

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages