Download the PHP package tourze/symfony-temp-file-bundle without Composer
On this page you can find all versions of the php package tourze/symfony-temp-file-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package symfony-temp-file-bundle
symfony-temp-file-bundle
Introduction
symfony-temp-file-bundle
is a Symfony bundle for centralized management and automatic cleanup of temporary files. It ensures that temporary files generated during HTTP requests or console commands are automatically deleted at the end of the process, reducing the risk of leftover temp files.
Features
- Unified management of temporary file creation and deletion
- Automatic cleanup at the end of HTTP requests and console commands
- Simple and easy-to-use API
- Seamless integration, minimal configuration required
Installation
Requirements
- PHP >= 8.1
- Symfony >= 6.4
Composer
Manual Registration (Symfony Flex will register automatically in most cases)
Add to config/bundles.php
:
Quick Start
Generate a Temporary File
Register an Existing Temp File for Auto-Cleanup
Documentation
- All generated or registered temp files are automatically cleaned up at the end of HTTP requests or console commands.
- Listens to multiple events:
KernelEvents::TERMINATE
,KernelEvents::EXCEPTION
,ConsoleEvents::TERMINATE
,ConsoleEvents::ERROR
. - No manual cleanup required, greatly reduces resource leakage risk.
Contributing
- Issues and PRs are welcome
- Follow PSR-12 coding style
- Please ensure all PHPUnit tests pass before submitting
License
MIT License © tourze
Changelog
See [CHANGELOG.md] or Git commit history for details.
All versions of symfony-temp-file-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
symfony/config Version ^6.4
symfony/console Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/event-dispatcher Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/http-foundation Version ^6.4
symfony/http-kernel Version ^6.4
symfony/service-contracts Version ^3.5
symfony/yaml Version ^6.4 || ^7.1
symfony/config Version ^6.4
symfony/console Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/event-dispatcher Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/http-foundation Version ^6.4
symfony/http-kernel Version ^6.4
symfony/service-contracts Version ^3.5
symfony/yaml Version ^6.4 || ^7.1
The package tourze/symfony-temp-file-bundle contains the following files
Loading the files please wait ....