PHPackages                             promptphp/intercept - 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. [Security](/categories/security)
4. /
5. promptphp/intercept

ActiveLibrary[Security](/categories/security)

promptphp/intercept
===================

A modular, drop-in middleware kit for Laravel AI agents. Protect, observe, and govern your AI agents with granular, install-what-you-need middleware packages.

v0.1.2(today)01↑2900%MITPHPPHP ^8.4.0CI passing

Since Jun 19Pushed todayCompare

[ Source](https://github.com/promptphp/intercept)[ Packagist](https://packagist.org/packages/promptphp/intercept)[ Docs](https://intercept.promptphp.com)[ Fund](https://www.paypal.com/paypalme/veeqtoh)[ GitHub Sponsors](https://github.com/veeqtoh)[ RSS](/packages/promptphp-intercept/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (9)Versions (3)Used By (0)

 [![Intercept by PromptPHP](docs/public/intercept-banner-dark.jpg)](docs/public/intercept-banner-dark.jpg)

 [![License](https://camo.githubusercontent.com/0c500ee4639ce032badc2a1a1c8789ffbd1b8da89695f9cdb1fc9549415993a5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70726f6d70747068702f696e74657263657074)](https://github.com/promptphp/intercept/blob/main/LICENSE)

Introduction
------------

[](#introduction)

Intercept is a modular, drop-in collection of reusable AI agent middlewares for the [Laravel AI SDK](https://github.com/laravel/ai).

Requirements
------------

[](#requirements)

> Requires PHP 8.4+ and `laravel/ai`.

Available Middlewares
---------------------

[](#available-middlewares)

Browse the full catalog of middlewares on the [documentation site](https://intercept.promptphp.com).

Documentation
-------------

[](#documentation)

Full documentation can be found at  or the [docs](docs/) directory on GitHub.

Contributing
------------

[](#contributing)

Thank you for considering contributing to Intercept by PromptPHP. The contribution guide can be found in [CONTRIBUTING.md](CONTRIBUTING.md).

Code of Conduct
---------------

[](#code-of-conduct)

We follow the Laravel [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). We expect you to abide by these guidelines as well.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within Intercept by PromptPHP, please email Victor Ukam at [victorjohnukam@gmail.com](victorjohnukam@gmail.com). All security vulnerabilities will be addressed promptly.

License
-------

[](#license)

Intercept by PromptPHP is open-sourced software licensed under the [MIT license](LICENSE).

Support
-------

[](#support)

This library is created by [Victor Ukam](https://victorukam.com) with contributions from the [Open Source Community](https://github.com/promptphp/Intercept/graphs/contributors). If you've found this package useful, please consider [sponsoring this project](https://github.com/sponsors/veeqtoh). It will go a long way to help with maintenance.

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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 ~0 days

Total

2

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19429315?v=4)[Victor Ukam](/maintainers/veeqtoh)[@veeqtoh](https://github.com/veeqtoh)

---

Top Contributors

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

---

Tags

ailaravelmiddlewareobservabilitypii-redactionprompt-injectionsecuritysecurity-toolsmiddlewarelaravelsecurityperformanceaiAgentrate limitingobservabilitygovernanceprompt-injectionpromptphppii-redactionsemantic-caching

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/promptphp-intercept/health.svg)

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

PHPackages © 2026

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