lamoda/cleaner-bundle
A lightweight Symfony bundle from Lamoda that provides reusable cleaner services for sanitizing and normalizing application data. Configure cleaning rules, integrate them into PHP workflows, and keep input and domain data consistent with minimal boilerplate.
lamoda/cleaner concept — declarative "cleaners" (what is stale) paired with "purgers" (how it is removed), executed in batches — is directly applicable to retention work: purging expired sessions, old audit/log rows, abandoned carts, soft-deleted records, and PII past its legal window. This feeds decisions about how long we keep data and how we enforce it.Consider it only as reference material, not as an install. Signals against adoption are strong and unambiguous:
Criteria that would flip the decision: an actively maintained fork; verified compatibility with our PHP and framework versions; test coverage on the deletion logic; a documented dry-run/rollback story; and a security review of destructive operations.
Look elsewhere / build in-house when you are on Laravel — the framework already provides Prunable/MassPrunable models, chunked deletes, the scheduler, and queues. If you want off-the-shelf, evaluate maintained Laravel-native cleanup packages. Also look elsewhere if you need audit trails, referential-integrity safeguards, multi-database support, or any vendor SLA.
Recommendation: do not adopt as a dependency. Adopt the pattern.
We evaluated lamoda/cleaner-bundle for automated data retention. The design is sound — declarative rules, batched purging, framework integration — but the package itself is a poor fit: it is a Symfony bundle (we are on Laravel), it has been archived since 2021, and it has zero dependent projects. Shipping archived, unmaintained code that performs irreversible deletes on production data is an unacceptable operational risk, and the maintenance burden would fall entirely on us.
Proposed alternative: implement the same pattern natively in ~3–5 engineering days using Laravel's built-in Prunable models, queued chunked deletes, and scheduled commands. This gives us the compliance and storage-cost benefits with no third-party dependency, full auditability, and a dry-run mode we control.
Business value: reduced database growth and storage spend, plus a defensible, automated answer to retention requirements — delivered at low cost and low risk. Ask: approve the small build item and a defined retention policy per entity; do not approve a dependency on this package.
How can I help you explore Laravel packages today?