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
v0.1.2
  • Handle exception during unwrapped operation.
v0.1.1
  • Fix handling on Windows paths when FileFilter is used.
v0.1.0

Initial release. Relative to https://github.com/icewind1991/interceptor 0.3.0, the following changes have been made:

  • Remove support for PHP < 7.1. Add type annotations.
  • Fix notice that is thrown every time a non-absolute path is used outside include. (Main motivation for this fork...)
  • Don't call interception hook if the included file does not exist.
  • Perform pseudo-realpath resolution for phar:// paths to make filtering work.
  • Change the interceptor API to remove the FileFilter dependency. There now is only a single hook that both decides whether it wants to intercept and performs the interception. FileFilter is still provided as an optional convenience.
  • Add support for white/blacklisting single files in FileFilter.
  • Don't filter extensions by default in FileFilter.
  • Allow overriding overridden stream protocols in Interceptor constructor.
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
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
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