Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Carbon Doctrine Types Laravel Package

carbonphp/carbon-doctrine-types

Doctrine DBAL type mappings for Carbon, extracted from Carbon into a standalone package so each DBAL version can be supported cleanly. Adds date, datetime, and time types for using Carbon in Doctrine entities.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables standardization of date/time handling across the application by eliminating custom Doctrine mapping code, reducing technical debt and ensuring consistent temporal logic in domain models.
  • Accelerates feature development for time-sensitive functionality (e.g., scheduling, reporting, compliance) by allowing direct use of Carbon’s rich API in entities without manual serialization/deserialization.
  • Resolves "build vs buy" dilemmas by providing a battle-tested, open-source solution for Doctrine-Carbon integration, freeing engineering resources for core product innovation instead of reinventing low-level persistence logic.

When to Consider This Package

  • ✅ Adopt when: Using Doctrine ORM/DBAL as the persistence layer; leveraging Carbon for business logic (e.g., timezone-aware calculations, date formatting); building global applications where predictable timezone handling is critical; modernizing legacy systems with inconsistent date handling.
  • ❌ Look elsewhere when: Using Laravel’s Eloquent ORM (which natively handles dates); working with non-Doctrine persistence (e.g., raw SQL, other ORMs); or the project has minimal date-related needs where PHP’s DateTime suffices without Carbon’s complexity.

How to Pitch It (Stakeholders)

  • Executives: "This package eliminates costly date/time bugs (e.g., incorrect time zones, daylight saving errors) that erode user trust and inflate support costs. It reduces development time by 20–30% for date-sensitive features, accelerating time-to-market while ensuring global consistency—directly improving customer satisfaction and operational efficiency."
  • Engineering: "Integrates in minutes with zero runtime overhead. Leverages a mature MIT-licensed package (210+ stars, recent updates) to remove boilerplate code for Doctrine-Carbon mapping. Developers focus on business logic instead of debugging date serialization, with built-in timezone safety and seamless compatibility with existing SQL schemas."
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table