Is it possible to write a PDO driver in pure PHP?

This page summarizes the projects mentioned and recommended in the original post on /r/PHP

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • postgres

    Async Postgres client for PHP based on Amp. (by amphp)

  • As for writing SQL database adapters with an efficient API, look at https://github.com/amphp/postgres/tree/f52cc35ef02ee4ad709083e0432c2288d4df7de0 - it doesn't implement the PDO API, but it shows that performance can be achieved in userland, when the architectural paradigm is the right one for the job.

  • pdo-via-oci8

    PHP PDO_OCI functions via OCI8 extension

  • Yes. See https://github.com/yajra/pdo-via-oci8 for example.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • mysql

    An async MySQL client for PHP, optimizing database interactions with efficient non-blocking capabilities. Perfect for responsive, high-performance applications. (by amphp)

  • Here's an example of a PHP-only driver that talks to MySQL: https://github.com/amphp/mysql/tree/master/src

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts