PHPackages                             componenta/interceptor-app - 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. componenta/interceptor-app

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

componenta/interceptor-app
==========================

Componenta application integration for interceptor cache compilation

v1.0.0(1mo ago)081MITPHPPHP ^8.4

Since Jun 16Pushed 1mo agoCompare

[ Source](https://github.com/componenta/interceptor-app)[ Packagist](https://packagist.org/packages/componenta/interceptor-app)[ RSS](/packages/componenta-interceptor-app/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (1)

Componenta Interceptor App
==========================

[](#componenta-interceptor-app)

Application-level compile integration for `componenta/interceptor`. This package turns interceptor attributes into serializable descriptors that can be loaded by the runtime interceptor layer.

Use it during application cache builds. Runtime code that only invokes interceptors should depend on `componenta/interceptor`.

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

[](#installation)

```
composer require componenta/interceptor-app
```

The package declares `Componenta\Interceptor\App\ConfigProvider` in `extra.componenta.config-providers`. When `componenta/composer-plugin` is installed, the provider is added to the generated provider list automatically.

Related Packages
----------------

[](#related-packages)

PackageWhy it matters here`componenta/interceptor`Executes interceptor chains and consumes compiled descriptors.`componenta/class-finder`Finds classes and methods with interceptor attributes.`componenta/app`Enables the compiler only when interceptor support is installed and bound.What It Adds
------------

[](#what-it-adds)

The package provides `Componenta\Interceptor\App\Compile\InterceptorMapCompiler`.

The compiler scans discovered classes for:

- `#[Intercept]` attributes on methods
- attributes that implement interceptor contracts directly

It produces a descriptor map that can be passed to `AttributeInterceptor` from `componenta/interceptor`.

Development Mode
----------------

[](#development-mode)

In development, interceptor metadata may be discovered from source classes while the application cache is being built. This keeps method-level interception declarative without forcing runtime packages to depend on class scanning.

Production Mode
---------------

[](#production-mode)

In production, applications should load the compiled descriptor map. This avoids repeated reflection over methods and keeps interception setup deterministic.

The compiler should be enabled only when `componenta/interceptor` is installed and the attribute interceptor service is bound. Optional feature gating is handled by `componenta/app`.

Boundaries
----------

[](#boundaries)

`componenta/interceptor-app` does not execute interceptor chains. Callable contexts, chain execution, interceptor attributes, factories, and runtime dispatch belong to `componenta/interceptor`; this package owns only descriptor compilation.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance91

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

43d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20490712?v=4)[Andrey Shelamkoff](/maintainers/Shelamkoff)[@Shelamkoff](https://github.com/Shelamkoff)

---

Top Contributors

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

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/componenta-interceptor-app/health.svg)

```
[![Health](https://phpackages.com/badges/componenta-interceptor-app/health.svg)](https://phpackages.com/packages/componenta-interceptor-app)
```

###  Alternatives

[hughgrigg/php-business-time

Business time / working days extension for Carbon dates

3330.5k](/packages/hughgrigg-php-business-time)[tu6ge/voyager-excel

voyager excel export hook

215.0k](/packages/tu6ge-voyager-excel)

PHPackages © 2026

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