Intercept

Intercept stats

Downloads
4
Stars
23
Open Issues
0
Forks
0

View on GitHub →

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.

Intercept by PromptPHP

Build Status Latest Version on Packagist License

Introduction

Intercept is a modular, drop-in collection of reusable AI agent middleware for the Laravel AI SDK offering middleware across security, observability, performance and guidance. It works by siting between your AI agent and your AI provider providing guardrails to prompts before they reach the provider, just like a typical HTTP middleware that sits between the route and your app's business logic.

Requirements

[!Important] Requires PHP 8.4+ and laravel/ai.

AI Agent Middleware collection

Documentation on the full suite of middleware is available on the documentation site. The roadmap provides an overview of planned features, upcoming middleware, and the project's future direction, while the changelog documents notable changes between releases.

Official Documentation

Official documentation can be found at https://intercept.promptphp.com/ or the docs directory on GitHub.

Code of Conduct

We follow the Laravel Code of Conduct. We expect you to abide by these guidelines as well.

License

Intercept by PromptPHP is open-sourced software licensed under the MIT license.

Support

This library is created by Victor Ukam with contributions from the Open Source Community. If you've found this package useful, please consider sponsoring this project. It will go a long way to help with maintenance.

promptphp photo

Building OSS tools, packages and experiments for safer, cleaner AI-native PHP development and workflows.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Promptphp Intercept Related Articles

Intercept: Middleware Guardrails for Laravel AI Agents image

Intercept: Middleware Guardrails for Laravel AI Agents

Read article
A Laravel Package to Protect Routes With a PIN Code image

A Laravel Package to Protect Routes With a PIN Code

Read article
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Curotec logo

Curotec

World class Laravel experts with GenAI dev skills. LATAM-based, embedded engineers that ship fast, communicate clearly, and elevate your product. No bloat, no BS.

Curotec
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
The Certification of Competence for Laravel logo

The Certification of Competence for Laravel

A community-driven, proctored assessment across 4 levels designed to validate real-world Laravel knowledge, from Junior to mastery-level Artisan. Official Vue.js, Official Nuxt, Angular, React, JS certifications also available.

The Certification of Competence for Laravel
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing