infection/include-interceptor
PHP stream wrapper that intercepts the file:// protocol to override the content of any included or autoloaded file at runtime. Register a mapping from original file to replacement, enable the interceptor, and includes/file_get_contents load the replacement instead.
include/require calls (e.g., test runners, static analyzers), especially where stream wrapper hooks align with existing infrastructure.include/require variants, and avoids reinventing the wheel. The recent fix to the lock constant ensures stability for production use—ideal for tools like Infection or custom analyzers."How can I help you explore Laravel packages today?