---
title: "Proposing a PSR for PDO Providers"
url: https://daily.dev/posts/proposing-a-psr-for-pdo-providers-i5qczabet
source_url: https://maximegosselin.com/posts/proposing-a-psr-for-pdo-providers/
type: article
source: "Maxime Gosselin"
published: 2026-03-22T11:39:32.034Z
updated: 2026-03-22T11:39:48.982Z
tags: ["php"]
reading_time: 2
upvotes: 5
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Proposing a PSR for PDO Providers

**[Maxime Gosselin](https://daily.dev/sources/maximegosselin)** · 2 min read · 5 upvotes · 0 comments

## Summary

A proposal for a new PHP-FIG PSR introducing a PdoProviderInterface, a single-method interface that abstracts the source of a PDO connection rather than the connection itself. Inspired by PSR-20's ClockInterface pattern, the interface exposes a getConnection() method, allowing libraries to receive a connection provider instead of a fixed PDO instance. This enables lazy connections, reconnection logic, and pooling without the consumer needing to know the details. It also enables interoperability between major DBAL libraries like Doctrine, Illuminate, and others without snapshot leaking. A pull request is open against the PHP-FIG standards repository.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://maximegosselin.com/posts/proposing-a-psr-for-pdo-providers/>

## Similar posts on daily.dev

- [PSR-20 Clocks: Testable Time in PHP](https://daily.dev/posts/psr-20-clocks-testable-time-in-php-0di7tgkjy) · FREEK.DEV · 5 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/proposing-a-psr-for-pdo-providers-i5qczabet)
