PHPackages                             moxio/sqlite-extended-api - 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. [Database &amp; ORM](/categories/database)
4. /
5. moxio/sqlite-extended-api

ActiveLibrary[Database &amp; ORM](/categories/database)

moxio/sqlite-extended-api
=========================

Exposes SQLite APIs that are otherwise not available in PHP

v0.4.0(3y ago)188.1k5[1 issues](https://github.com/Moxio/sqlite-extended-api/issues)MITPHPPHP ^7.4 || ^8.0CI failing

Since May 13Pushed 3y ago12 watchersCompare

[ Source](https://github.com/Moxio/sqlite-extended-api)[ Packagist](https://packagist.org/packages/moxio/sqlite-extended-api)[ RSS](/packages/moxio-sqlite-extended-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/5994a37a6a196a24ed5dfbfa6a27df704642c2e982967a16b7f6b4e578be3cc6/68747470733a2f2f706f7365722e707567782e6f72672f6d6f78696f2f73716c6974652d657874656e6465642d6170692f762f737461626c65)](https://packagist.org/packages/moxio/sqlite-extended-api)[![Buy us a tree](https://camo.githubusercontent.com/130148911f548b001b2ac68a32c0a06559977ca60ada3bf480c72ae4ea093175/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e)](https://plant.treeware.earth/Moxio/sqlite-extended-api)

moxio/sqlite-extended-api
=========================

[](#moxiosqlite-extended-api)

Exposes SQLite APIs that are otherwise not available in PHP. You can connect to an SQLite database as you normally would using PHP's `PDO` extension, then use this library to call SQLite API methods that `PDO` does not offer (e.g. loading extensions).

**Warning**: under the hood, this library makes use of [Z-Engine](https://github.com/lisachenko/z-engine), which proclaims itself not ready for production until version 1.0.0. Use it at your own risk.

Requirements
------------

[](#requirements)

This library requires PHP version 7.4 or higher with the FFI extension enabled. It only works with x64 non-thread-safe builds of PHP.

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

[](#installation)

Install as a dependency using composer:

```
$ composer require moxio/sqlite-extended-api

```

Usage
-----

[](#usage)

If you have an existing `PDO` connection to an SQLite database, you can use the `wrapPDO()` static method on the `Facade` class to obtain access to extra SQLite APIs:

```
