elcweb/common-bundle
Elcweb CommonBundle is a small Symfony bundle that adds a UTCDateTimeType Doctrine DBAL type, letting you store all DateTime values as UTC through a simple config.yml entry. Install via Composer and override the datetime type. MIT licensed.
Architecture fit
Elcweb\CommonBundle), not a Laravel package. It relies on Symfony's bundle registration and config.yml conventions, so it does not fit a Laravel application's service provider / package discovery model.Elcweb\CommonBundle\DBAL\Types\UTCDateTimeType, which forces DateTime values to be persisted as UTC. That is a small, framework-agnostic class wrapped in Symfony plumbing.doctrine/dbal or Laravel Doctrine), but custom types are registered through Doctrine configuration, not through a Symfony bundle.Integration feasibility
composer require elcweb/common-bundle will resolve in a Laravel app only if its PHP/Doctrine constraints are satisfied; the package provides no Laravel service provider, facade, or config publishing.UTCDateTimeType class into application code, register it with Doctrine's Type::addType() / doctrine.dbal.types config, and drop the bundle dependency.Technical risk
travis-ci.org, which is effectively retired, so build status is unverifiable.getName() is deprecated in favor of explicit registration names) and DBAL 4 removes it outright; PHP 8.x compatibility is unconfirmed. Installing this in a modern Laravel app risks constraint conflicts or runtime Error on type registration.Key questions
php and doctrine/dbal version constraints in composer.json, and do they admit DBAL 3.x/4.x?UTCDateTimeType the entire package, or are there undisclosed helpers referenced by "common tools/libs"?convertToDatabaseValue and convertToPHPValue symmetrically, including null handling and DateTimeImmutable?Stack fit
DATETIME columns across multiple regions.Migration path
composer.json and the type class to confirm constraints and behavior.UTCDateTimeType class into app/Doctrine/Types/ (or equivalent), preserving the MIT attribution.CastsAttributes cast if the app is Eloquent-based and the goal is simply consistent UTC handling).elcweb/common-bundle from composer.json once the class is internal.Compatibility
DateTimeImmutable and nullable columns, not just mutable DateTime.Attribute mutator is a better fit than a DBAL type; the package offers nothing for that path.Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?