phpro/dbal-tools
Integrates Doctrine DBAL into Laravel: a connection factory that builds DBAL connections from your existing database config, plus schema tools and commands for creating, dropping, and updating tables via DBAL's schema manager—no duplicate configuration required.
JsonbObjectAgg lets teams build key/value JSONB aggregates directly in SQL, useful for locale bundles, per-entity metadata rollups, audit snapshots, and row-level payload consolidation without custom SQL strings scattered through the codebase.Column::getType() usage lowers the cost and risk of staying current with DBAL, which matters for Laravel applications using Doctrine-backed persistence or reporting layers.Consider adoption when:
Look elsewhere when:
jsonb_object_agg have important semantics around null keys and aggregation order.For executives: This release adds a supported PostgreSQL JSONB aggregation expression and keeps the package compatible with the newer Doctrine DBAL 4.5. That means we can deliver JSON-heavy reporting and localization features with less custom SQL, lower maintenance cost, and reduced upgrade risk. It is a targeted enabler for Postgres-based features, not a broad platform change.
For engineering: JsonbObjectAgg wraps jsonb_object_agg(key, value) with optional ORDER BY, matching existing patterns like JsonbAggStrict. It handles the important Postgres semantics: repeated keys keep the last value in aggregation order, and null keys raise errors, so the key expression must be non-null. The release also supports DBAL 4.5 alongside 4.4 and removes reliance on the deprecated Column::getType() path in Table::columnType() and Table::columnTypes(). Adopt it where we already use Doctrine DBAL and need PostgreSQL JSONB aggregation; skip it for Eloquent-only or non-Postgres paths.
How can I help you explore Laravel packages today?