arokettu/is-resource
arokettu/is-resource provides a drop-in is_resource() replacement that recognizes both open and closed PHP resources, fixing the native function’s false result after resources are closed. Useful for debugging, validation, and legacy code that still needs reliable resource detection.
Future compatible is_resource() and get_resource_type() that can understand opaque objects
How can I help you explore Laravel packages today?