Notes on PHP, event sourcing, software architecture and other obsessions by Maxime Gosselin.
Proposing a PSR for PDO Providers
Last week I published In Search of the Missing PDO Interface, arguing that PDO should have an interface. The discussion on r/PHP convinced me I was solving the wrong problem. The real problem When you pass a \PDO instance to a library, you hand over a fixed connection, not access to one. The library now holds something it cannot reconnect if the connection drops, cannot swap out, and cannot wrap transparently. You have surrendered control over the connection lifecycle. ...