spatie/temporary-directory
Create, use, and automatically clean up temporary directories in PHP. Spatie TemporaryDirectory makes it easy to generate a temp folder (in your system temp path), build file paths inside it, and delete everything when you’re done.
Architecture fit: Lightweight PSR-4 compliant package that integrates seamlessly with Laravel's ecosystem without requiring architectural changes. Complements Laravel's filesystem components while adding dedicated temporary directory management.
Integration feasibility: Simple Composer installation; minimal code changes needed. Works with Laravel's dependency injection and can be used alongside existing storage systems (e.g., Flysystem).
Technical risk:
How can I help you explore Laravel packages today?