typo3/phar-stream-wrapper
A PHP stream wrapper that hardens phar:// file operations by intercepting metadata deserialization, helping prevent object-injection attacks when handling untrusted archives. Useful for legacy and modern PHP security hardening.
phar:// stream-wrapper abuse.file_exists, stat, is_file, archive preview/extraction, upload processing, plugin loading, or similar file operations.Consider adoption when:
phar:// metadata deserialization remains a credible risk.phar:// handling.Look elsewhere or defer when:
phar:// deserialization risk.Executives: This is a low-cost, MIT-licensed security hardening dependency for legacy PHP risk. It does not add a customer-facing feature or revenue path; it reduces exposure to a known class of file-operation attacks and supports compliance/audit readiness. Engineering time is mainly integration and regression testing, with a clear exit once PHP/framework upgrades land.
Engineering: The package intercepts PHP’s native phar:// stream handling to reduce the risk of Phar metadata deserialization being triggered through ordinary filesystem checks. Register it early, test all file/path handling, keep it updated, and verify package provenance before adoption. Treat it as defense-in-depth, not a substitute for input validation or runtime upgrades.
How can I help you explore Laravel packages today?