adgoal/cleaner-bundle
Symfony bundle integrating lamoda/cleaner. Configure DB and custom storage cleaners via YAML, including transactional mode, parameters, and multi-query setups. Provides a console command to run all cleaners or a selected one (cleaner:clear).
Adopt if:
Look elsewhere if:
spatie/laravel-schedule).For Executives: "This bundle automates the cleanup of stale data—like old logs, abandoned carts, or expired sessions—saving storage costs and reducing compliance risks. For example, it could cut our database size by 30% with zero manual effort. It’s a low-risk, high-reward way to optimize infrastructure without hiring additional engineers."
For Engineering: *"Leverage this to replace ad-hoc SQL scripts or cron jobs with a configurable, transaction-safe cleanup system. Key benefits:
DELETE FROM orders WHERE status = 'cancelled' AND created_at < NOW() - INTERVAL '90 days').For Developers:
*"Drop this into composer.json, configure YAML rules, and run php bin/console lamoda:cleaner:run. No PHP code needed—just define:
lamoda_cleaner:
db:
queue:
query: DELETE FROM failed_jobs WHERE created_at < NOW() - INTERVAL '14 days'
Works for PostgreSQL/MySQL. Want to add S3 cleanup? Extend the bundle or pair with league/flysystem."*
How can I help you explore Laravel packages today?