PHPackages                             marko/codeindexer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. marko/codeindexer

ActiveMarko-module[Utility &amp; Helpers](/categories/utility)

marko/codeindexer
=================

Shared static-analysis library for Marko AI tooling

0.8.4(1mo ago)0132MITPHPPHP ^8.5

Since May 29Pushed 1mo agoCompare

[ Source](https://github.com/marko-php/marko-codeindexer)[ Packagist](https://packagist.org/packages/marko/codeindexer)[ RSS](/packages/marko-codeindexer/feed)WikiDiscussions develop Synced 1w ago

READMEChangelogDependencies (6)Versions (7)Used By (2)

marko/codeindexer
=================

[](#markocodeindexer)

Static analysis library that indexes Marko modules — attributes, configs, templates, translations — into a cached symbol table powering `marko/mcp` and `marko/lsp`.

Installation
------------

[](#installation)

```
composer require marko/codeindexer
```

Quick Example
-------------

[](#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
-------------

[](#documentation)

Full usage, API reference, and examples: [marko/codeindexer](https://marko.build/docs/packages/codeindexer/)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance94

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

5

Last Release

30d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/437029?v=4)[Mark Shust](/maintainers/markshust)[@markshust](https://github.com/markshust)

---

Top Contributors

[![markshust](https://avatars.githubusercontent.com/u/437029?v=4)](https://github.com/markshust "markshust (4 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/marko-codeindexer/health.svg)

```
[![Health](https://phpackages.com/badges/marko-codeindexer/health.svg)](https://phpackages.com/packages/marko-codeindexer)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

6003.7M149](/packages/roave-backward-compatibility-check)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k16](/packages/tempest-framework)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4814.0M27](/packages/coenjacobs-mozart)[v.chetkov/php-clean-architecture

PHP Clean Architecture

14661.3k](/packages/vchetkov-php-clean-architecture)[brianhenryie/strauss

Prefixes dependencies namespaces so they are unique to your plugin

192438.1k39](/packages/brianhenryie-strauss)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
