Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Include Interceptor Laravel Package

nikic/include-interceptor

PHP extension and library to intercept and virtualize include/require. Lets you provide custom file contents, rewrite paths, or instrument included code without touching the filesystem—useful for loaders, build tools, testing, and sandboxing.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables building custom debugging, monitoring, or security tooling without modifying application source code
  • Supports "buy vs build" decisions for low-level file-loading logic (avoids reinventing core interception mechanics)
  • Critical for use cases requiring runtime path modification (e.g., dynamic asset loading, sandboxed environments)
  • Ideal for test coverage analysis where tracking included files is essential for accurate metrics

When to Consider This Package

  • ✅ When you need fine-grained control over include/require behavior for tooling or security
  • ✅ When existing debuggers (e.g., Xdebug) don’t provide the required interception capabilities
  • ✅ For projects where minimal overhead and focused functionality are priorities
  • ❌ When the application uses modern autoloading (e.g., Composer) without direct include calls
  • ❌ If the package lacks recent maintenance (last release 2021) and your team requires active support
  • ❌ For simple projects where standard debugging tools suffice

How to Pitch It (Stakeholders)

Executives: "This lightweight package provides real-time visibility into file inclusions across our application with near-zero performance impact. It enables proactive security controls and debugging capabilities without code changes, reducing risk and development time for critical observability features."

Engineering: "It’s a simple, low-overhead utility that hooks into PHP’s include mechanisms to inspect, modify, or block file loads dynamically. Perfect for building custom tooling like coverage analyzers or sandboxing rules—no need to reinvent the wheel for core interception logic."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation