PHPackages                             polyfills/pdo-sqlite-subclass - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. polyfills/pdo-sqlite-subclass

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

polyfills/pdo-sqlite-subclass
=============================

User-land PHP polyfill for PDO Sqlite driver subclass.

01PHP

Since Jan 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/PHP-Polyfills/PDO-Sqlite-Subclass)[ Packagist](https://packagist.org/packages/polyfills/pdo-sqlite-subclass)[ RSS](/packages/polyfills-pdo-sqlite-subclass/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PDO Sqlite Subclass Polyfill
============================

[](#pdo-sqlite-subclass-polyfill)

[![Latest Stable Version](https://camo.githubusercontent.com/43c480824ba15f408de1d87a23b20e392119d7e4f2f9839f3b18be5587b1faa6/68747470733a2f2f706f7365722e707567782e6f72672f706f6c7966696c6c732f70646f2d73716c6974652d737562636c6173732f76)](https://packagist.org/packages/polyfills/pdo-sqlite-subclass) [![License](https://camo.githubusercontent.com/c32466e57d615a4246765df65eb2cbb58adb362f6c589ce90a250f9ce35f5250/68747470733a2f2f706f7365722e707567782e6f72672f706f6c7966696c6c732f70646f2d73716c6974652d737562636c6173732f6c6963656e7365)](https://packagist.org/packages/polyfills/pdo-sqlite-subclass) [![PHP Version Require](https://camo.githubusercontent.com/5a4e4c354f8a14b41133a1c608e2f37f0379b25c874207e0f8906e195f2eb9e6/68747470733a2f2f706f7365722e707567782e6f72672f706f6c7966696c6c732f70646f2d73716c6974652d737562636c6173732f726571756972652f706870)](https://packagist.org/packages/polyfills/pdo-sqlite-subclass) [![CI](https://github.com/PHP-Polyfills/PDO-MySQL-Subclass/actions/workflows/ci.yml/badge.svg)](https://github.com/PHP-Polyfills/PDO-MySQL-Subclass/actions/workflows/ci.yml/badge.svg)

Provides user-land PHP polyfills for the Sqlite subclass provided by PHP 8.4.

Supports PHP 8.1, 8.2, and 8.3. On PHP 8.4 and later, this polyfill is not necessary. Requires `pdo_sqlite` extension.

It is possible and safe to require this polyfill on PHP 8.4 and later. This polyfill class is autoloadable; on PHP 8.4 and later, PHP will *not* autoload this polyfill because it's declared natively.

For more information, see [`PdoSqlite`](https://php.watch/versions/8.4/pdo-driver-subclasses#PdoSqlite) on [`PHP 8.4: PDO Driver-specific sub-classes: Sqlite`](https://php.watch/versions/8.4/pdo-driver-subclasses)

Installation
------------

[](#installation)

```
composer require polyfills/pdo-sqlite-subclass
```

Usage
-----

[](#usage)

Use the provided `PdoMysql` class to replace `PDO` MySQL connections.

```
$sqliteConnection = new PdoMysql(
    'sqlite:host=localhost;dbname=phpwatch;charset=utf8mb4;port=33066',
    '',
    '',
);
```

```
$sqliteConnection = PdoMysql::connect(
    'sqlite:host=localhost;dbname=phpwatch;charset=utf8mb4;port=33066',
    '',
    '',
);
```

This polyfill adds class-constants to `PdoSqlite` class to match all of the `PDO::MYSQL_` constants. For example, `PDO::MYSQL_ATTR_SSL_CERT` is identical to `PdoMysql::ATTR_SSL_CERT`.

### Features not implemented

[](#features-not-implemented)

- `PDO::connect`: This method cannot be polyfilled because it's an existing PHP class that user-land PHP classes cannot modify.

Contributions
-------------

[](#contributions)

Contributions are welcome either as a GitHub issue or a PR to this repo.

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1703f88c1f225e3fadff28458e81328f86668d9631a8c489f45ea1aaebe12df2?d=identicon)[Ayesh](/maintainers/Ayesh)

---

Top Contributors

[![Ayesh](https://avatars.githubusercontent.com/u/811553?v=4)](https://github.com/Ayesh "Ayesh (3 commits)")

### Embed Badge

![Health badge](/badges/polyfills-pdo-sqlite-subclass/health.svg)

```
[![Health](https://phpackages.com/badges/polyfills-pdo-sqlite-subclass/health.svg)](https://phpackages.com/packages/polyfills-pdo-sqlite-subclass)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
