Weave Code
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 types to seamlessly persist and hydrate Carbon\Carbon and Carbon\CarbonImmutable instances. Adds custom date/time types for Carbon, improving timezone/precision handling and integration with Doctrine entities and migrations.

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport