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

2m read timeFrom maximegosselin.com
Post cover image
Table of contents
The real problem #The solution: PdoProviderInterface #The pre-draft PSR #Feedback #

Sort: