drjele/doctrine-type
Laravel package to add custom Doctrine DBAL types and mappings, improving schema introspection and migrations for non-standard database column types. Helps register and use bespoke types cleanly across your application.
Database Schema Flexibility & Extensibility
Roadmap: Data Layer Modernization
Build vs. Buy: Avoid Custom Development
Use Cases
tenant_id as a custom type).DateTimeImmutable, Money) across microservices.Adopt if:
jsonb, MySQL’s JSON, or custom logic).json_decode($entity->data)).Look Elsewhere if:
VARCHAR, INT, DATETIME).*"This package lets us treat complex database fields (like JSON blobs or custom IDs) as first-class citizens in our PHP apps—no more hacky string parsing or manual type conversions. For example:
It’s a low-risk investment: we only pay the cost if we adopt Doctrine ORM (which we’re already evaluating for [Project X]). For [use case: e.g., multi-tenant data or analytics pipelines], this could cut dev time by 30% while improving data integrity."*
*"This fills a gap in Doctrine’s standard types by letting us:
JsonArrayType, EncryptedStringType) and reuse them across entities.WHERE json_data->>'key' = 'value' instead of raw SQL).Trade-offs:
Proposal: Pilot this for [specific entity/type] in Q3. If it reduces bug reports by 20% in that area, we’ll expand its use."*
How can I help you explore Laravel packages today?