tourze/symfony-temp-file-bundle
Symfony bundle for managing temporary files: create, track, and automatically clean up temp files through a simple service. Integrates with Symfony's DI container and Filesystem component, giving scratch data a predictable location and lifecycle instead of scattered tempnam() calls.
tempnam() wrapper plus a cron cleanup command.symfony-temp-file-bundle), not a Laravel package. For a Laravel product this is a mismatch decision in itself: either pull in only the underlying library, or find a Laravel-native equivalent. Don't let "it's PHP, it'll work" substitute for a real integration decision.Consider it when:
Look elsewhere when:
For executives (one paragraph): This is a small, low-cost utility dependency that standardizes how the application creates and cleans up temporary files. It is not strategic, not customer-facing, and not a roadmap item — it's plumbing that reduces the chance of a disk-space or data-retention incident. The 1.1.0 release is a minor version bump with no documented breaking changes. Recommendation: approve as a utility, pin the version, and treat it as replaceable — a day of engineering work if maintenance lapses.
For engineering (the actual ask): Adopt behind an internal interface, not called directly. The package handles local temp-file lifecycle in a Symfony DI context; our product is Laravel, so the realistic path is either (a) use it only if we have Symfony components in play, or (b) take the equivalent Laravel-native approach and borrow the pattern. Before upgrading 1.0.0 → 1.1.0, read the diff — the release notes contain no changelog. Watch three things specifically: cleanup scope (what it will and won't delete), symlink/path handling, and behavior under concurrent workers. If those check out, this is a low-risk win; if they don't, the fallback is ~50 lines of our own code and we've lost nothing.
How can I help you explore Laravel packages today?