ffi/env
Small PHP utility for detecting the FFI runtime environment. Get FFI status (enabled/disabled/CLI-only/not available), check availability, or assert FFI is usable with clear exceptions/messages. Useful for guarding FFI-dependent code paths.
assertAvailable() with custom exceptions).embed, or phpdbg).For Executives: "This MIT-licensed package lets us safely enable FFI features only in supported environments (e.g., CLI), reducing runtime errors and CI/CD failures. It’s a 5-minute install that replaces custom checks, saving dev time and improving reliability for PHP 8.4+ projects."
For Engineering: *"A lightweight (~1KB) utility to:
Runtime::isAvailable().assertAvailable() (throws exceptions).embed, micro).
Perfect for gating FFI-heavy logic without bloating your codebase."How can I help you explore Laravel packages today?