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.
croct/coding-standard
croct/plug-php
nqxcode/phpmorphy
boundwize/pyrameter
testo/facade
develia/commons
dmstr/symfony-system-resources-bundle
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
renatomarinho/laravel-page-speed
develia/geo-bundle
austinheap/laravel-database-encryption
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
imbo/imbo-coding-standard
visualbuilder/filament-lottie
servicioslineaonce/starter-kit
atomcoder/laravel-reorderable
irajul/filament-shadcn-theme