---
title: "In Search of the Missing PDO Interface"
url: https://daily.dev/posts/in-search-of-the-missing-pdo-interface-v3mbsz7lc
source_url: https://maximegosselin.com/posts/in-search-of-the-missing-pdo-interface/
type: article
source: "Maxime Gosselin"
published: 2026-03-22T11:39:32.011Z
updated: 2026-03-22T11:39:54.902Z
tags: ["architecture", "php", "design-patterns"]
reading_time: 10
upvotes: 0
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.

# In Search of the Missing PDO Interface

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

## Summary

PHP's PDO extension has lacked a formal interface for nearly 20 years, forcing the ecosystem into fragmented workarounds: inheritance-based lazy loaders, abandoned packages, and incompatible abstractions across libraries like Aura.Sql and Doctrine DBAL. The post proposes a minimal PdoInterface that mirrors PDO's existing public API, demonstrates a clean lazy-loading proxy implementation using composition, and outlines a non-breaking migration path via PHP union types. Two standardization routes are explored: a PHP-FIG PSR (analogous to PSR-3 for loggers or PSR-7 for HTTP messages) and a native language-level interface (similar to DateTimeInterface), which are not mutually exclusive.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://maximegosselin.com/posts/in-search-of-the-missing-pdo-interface/>

## Similar posts on daily.dev

- [Proposing a PSR for PDO Providers](https://daily.dev/posts/proposing-a-psr-for-pdo-providers-i5qczabet) · Maxime Gosselin · 5 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#php](https://daily.dev/tags/php), [#design-patterns](https://daily.dev/tags/design-patterns)

[View this post on daily.dev](https://daily.dev/posts/in-search-of-the-missing-pdo-interface-v3mbsz7lc)
