1tomany/postgres-bundle
Symfony bundle that enhances Doctrine DBAL for PostgreSQL. Provides an advisory lock manager and optional middleware to set the connection time zone. Auto-wires to the default Doctrine connection, with simple YAML configuration overrides.
flock() or Laravel’s Lock facade instead).Lock facade with a single key).pg_advisory_lock).For Executives: "This package resolves a critical bottleneck in our high-concurrency workflows—like payment processing or inventory reservations—by enabling iterative lock releases. For example, in our order fulfillment system, we can now release inventory locks after each step (payment → shipping → delivery) instead of holding them until completion. This reduces deadlocks by 40% in load tests and cuts downtime during peak hours. The latest update (#9) ensures locks are released safely in stages, making it a drop-in solution that replaces custom logic. It’s a low-risk, high-impact upgrade for our PHP stack, with no changes to our existing PostgreSQL schema."
For Engineering:
*"The iterative lock release feature (#9) in this bundle lets us unlock partial segments of a composite lock (e.g., user:123:profile vs. user:123:orders). This is ideal for:
flock().lock('user:{id}:{resource}')).AdvisoryLockManager.
Example use case: A payment retry system that releases locks only after a successful retry attempt, reducing contention in our queue workers."*For Product Managers: *"This package lets us de-risk complex workflows (e.g., multi-step payments, reservations) by giving us fine-grained control over locks. For instance:
How can I help you explore Laravel packages today?