promptphp/intercept-injection-guard
A Laravel package that intercepts and blocks prompt-injection attempts before they reach your AI integrations, with configurable detection rules and middleware-style protection for safer LLM-powered applications.
composer require promptphp/intercept-injection-guard. The package is a read-only subtree split of promptphp/intercept, so the code you get here is a mirror of one directory in the monorepo.promptphp/intercept, not in this split repo. Clone the monorepo when you need to read tests or see how the guard is wired into the rest of the Intercept stack.php artisan vendor:publish --tag=intercept-injection-guard-config). If a config lands in config/, that file is your primary tuning surface — read it end to end before writing any code, since the defaults are what actually run in production.DB::statement, or an outbound prompt/LLM call. Start by guarding a single endpoint, log what it flags, and only then consider throwing.intercept-source: 73ed9bb731d9b793173dba33cf4a96cce8c8d5ea; if you file a bug, quote that hash so upstream can locate the exact code.composer.json and upgrade deliberately. Because this is a split, a patch bump here can carry changes made anywhere in the monorepo's guard directory.promptphp/intercept and will be re-split. A PR here will be closed and your work lost.php artisan config:cache. Config edits appear to do nothing in cached environments — a classic hour lost. Clear the cache after changing patterns or the strictness flag.composer update; there are no breaking changes or deprecations signalled by the version bump.How can I help you explore Laravel packages today?