endroid/data-sanitize-demo-bundle
A lightweight Symfony demo bundle from Endroid that illustrates data sanitization in practice. It serves as a reference for cleaning and validating incoming data before it reaches your application, helping developers explore sanitization patterns and adapt them to their own PHP projects.
endroid/data-sanitize-demo-bundle is a demo bundle — 1 star, 0 dependents, readme-only maturity, and a Symfony bundle rather than a Laravel package. Its PM value is as a reference implementation to size an internal data-cleaning/dedup capability, not as a dependency to adopt.Consider it when:
Look elsewhere when:
Validator, Eloquent casts/mutators, upsert/insertOrIgnore, queued jobs, spatie/laravel-data) or framework-agnostic libraries.endroid/data-sanitize itself; evaluate that library directly and wrap it, rather than pulling in the demo.Recommended posture: Treat as documentation. Install nothing, pin nothing, vendor no code beyond an explicit reviewed extraction. If the capability is real roadmap work, budget a first-party build or evaluate maintained alternatives with an explicit evaluation harness.
To executives: This is a demo, not a product — one star, no dependents, no release maturity, and it targets Symfony rather than our Laravel stack. We should not take a dependency on it. What it is useful for is a cheap, low-risk way to estimate the cost of solving data duplication and dirty imports, which is a recurring customer complaint. Recommendation: fund a short discovery spike using it strictly as a reference, then decide build vs. maintained-library based on the spike output — not on this package's suitability.
To engineering: Use it as a reading reference during a time-boxed spike; do not install it. It is a Symfony demo bundle, so any Laravel work is custom integration, and you should assume no tests, no semantic versioning, no upstream support, and possibly stale PHP/Symfony constraints in composer.json that conflict with Laravel 10/11 on PHP 8.1+. Extract the approach — a tagged sanitizer chain (trim, normalize email/phone, collapse whitespace, strip control characters), a dedupe pass keyed on normalized values, merge rules — and validate it against our own data using Laravel-native validation, Eloquent normalization, database unique constraints, and chunked queued jobs with dry-run and row-level audit logging. Return with an effort estimate, a preferred maintained library or build plan, and a data-quality evaluation approach (precision/recall on a labeled sample, plus a rollback plan) before we commit. Flag any copied code for security/legal review — MIT permits a fork but does not reduce ownership burden.
How can I help you explore Laravel packages today?