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

Doctrine Dbal Timestamp Type Laravel Package

marktopper/doctrine-dbal-timestamp-type

A Doctrine DBAL custom type that maps SQL TIMESTAMP columns to PHP DateTime objects, making timestamp columns work correctly with Laravel's Doctrine integration. Simple to register and use in your entity mappings.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Legacy schema modernization: Unblocks Laravel migrations and schema operations that use Doctrine/DBAL against databases containing MySQL TIMESTAMP columns. This is especially relevant when modifying columns in older Laravel apps or third-party packages that still depend on Doctrine/DBAL.
  • Build vs. buy: Provides a small, MIT-licensed compatibility shim instead of requiring the team to write and maintain a custom Doctrine/DBAL type. The code footprint is likely small, but maintenance ownership still matters.
  • Roadmap sequencing: Can be used as a tactical bridge to ship schema changes now while planning a longer-term migration to native Laravel schema handling, normalized column types, or removal of Doctrine/DBAL from the stack.
  • Use cases: Legacy MySQL applications with TIMESTAMP columns; Laravel modules using Doctrine-backed schema introspection; migrations that fail with unknown timestamp type errors; multi-system integrations where column type fidelity matters.
  • Product scope clarification: This is not an Eloquent timestamp feature. It is schema-tooling compatibility. Do not position it as improving created_at/updated_at behavior or application-level date handling.

When to Consider This Package

  • Consider adoption when: Doctrine/DBAL is already present in the Laravel/PHP stack, the schema contains TIMESTAMP columns, and migrations or schema introspection fail because DBAL does not recognize the type.
  • Consider adoption when: The team needs a narrow, reversible fix with a small blast radius and can pin the package version, add integration tests, and vendor/fork if needed.
  • Evaluate carefully when: The app is greenfield, does not use Doctrine/DBAL, already runs a DBAL version with adequate timestamp support, or relies solely on Eloquent schema handling.
  • Look elsewhere when: You need active vendor support, security SLAs, frequent releases, broad community adoption, or complex timezone semantics. This package has modest maturity signals: 49 stars, last release in February 2023, and a single-purpose scope.
  • Adoption criteria: Confirm PHP/DBAL/Laravel compatibility, reproduce the failing migration in CI, verify round-trip schema changes, and document a fallback plan such as a maintained fork or custom type registration.

How to Pitch It (Stakeholders)

  • Executive summary: This is a low-cost compatibility shim that can unblock legacy database schema work in Laravel apps using Doctrine/DBAL. It is tactical, not strategic: adopt only where a concrete TIMESTAMP schema issue exists, validate it in CI, and avoid treating it as a long-term platform dependency.
  • Engineering summary: Register the package’s Doctrine/DBAL timestamp type, add a migration/schema-introspection test against a real TIMESTAMP column, pin the version, and document exit criteria. If the package becomes stale or incompatible, replace it with a small internal DBAL type or remove Doctrine/DBAL from the affected path.
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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console