assoconnect/doctrine-types-bundle
Symfony bundle integrating Symfony Validator with Doctrine custom DBAL types to avoid duplicate validation/mapping code. Includes common value-object types (money/amount, IBAN/BIC, email, phone, country/currency, locale/timezone, IDs) with nullable and non-nullable support.
SpanishNif, BelgianEnterpriseNumber) instead of maintaining custom Doctrine types, saving ~30–50% development time per locale.Adopt When:
NIF, SIRET, IBAN validation) and you want to avoid custom implementations.Look Elsewhere If:
NIE for Spanish foreigners, or domain-specific formats like US SSN).laravel-doctrine or manual bridges).Validator (requires custom adapters).For Executives:
*"This bundle eliminates custom validation work for Spanish tax IDs (NIF), Belgian enterprise numbers, and other EU-specific formats—critical for our expansion into Spain and Belgium. By adopting it, we:
For Engineers: *"Key wins in v2.16.0:
SpanishNifType: Validates Spanish tax IDs out of the box—no more reinventing NIF rules.For Architects:
*"This bundle strengthens our EU compliance toolkit with SpanishNifType and BelgianEnterpriseNumber, while the PHP 8.4+ requirement aligns with our Laravel 10+ roadmap. Trade-offs:
For PMs: *"This solves three critical pain points:
How can I help you explore Laravel packages today?