PHPackages                             phenixphp/sqlite - 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. [API Development](/categories/api)
4. /
5. phenixphp/sqlite

ActiveLibrary[API Development](/categories/api)

phenixphp/sqlite
================

Asynchronous SQLite 3 client for PHP based on Amp.

0.1.2(2mo ago)363↓50%1MITPHPPHP ^8.2CI passing

Since Feb 1Pushed 2mo agoCompare

[ Source](https://github.com/phenixphp/sqlite)[ Packagist](https://packagist.org/packages/phenixphp/sqlite)[ Docs](https://github.com/phenixphp/sqlite)[ RSS](/packages/phenixphp-sqlite/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (28)Versions (4)Used By (1)

phenixphp/sqlite
================

[](#phenixphpsqlite)

Asynchronous SQLite 3 client for PHP based on [Amp](https://amphp.org/).

[![Tests](https://github.com/phenixphp/sqlite/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/phenixphp/sqlite/actions/workflows/run-tests.yml)[![Latest Version on Packagist](https://camo.githubusercontent.com/371b3faee8acbb6c5d7a89cefdf73a515e593e48d2a4ad1f543e641caeb88044/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068656e69787068702f73716c6974652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phenixphp/sqlite)[![Total Downloads](https://camo.githubusercontent.com/da02dd3b9ea47b0ad5b4bb121cb63c9bd48b57d7c56dc9c4517164c30d4a5859/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068656e69787068702f73716c6974652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phenixphp/sqlite)[![PHP Version](https://camo.githubusercontent.com/9e630adf550a305101b6be6873f14279d704b8ead5170e09122f0bfe8f86eaa3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7068656e69787068702f73716c6974653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phenixphp/sqlite)[![License](https://camo.githubusercontent.com/cc1c45c1f9368d998710d166348eea4b3d7293a2f08bc91b5e756c50613b3f99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7068656e69787068702f73716c6974653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phenixphp/sqlite)

---

**phenixphp/sqlite** is part of the **Phenix PHP** framework ecosystem. Phenix is a web framework built on pure PHP, without external extensions, based on the [Amphp](https://amphp.org/) ecosystem, which provides non-blocking operations, asynchronism and parallel code execution natively. It runs in the PHP SAPI CLI and on its own server — it is simply powerful.

---

Table of Contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
    - [Establishing a Connection](#establishing-a-connection)
    - [Executing Queries](#executing-queries)
    - [Prepared Statements](#prepared-statements)
    - [Transactions](#transactions)
- [License](#license)

---

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

[](#requirements)

RequirementVersionPHP`^8.2`ext-sqlite3`*`---

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

[](#installation)

Install the package via [Composer](https://getcomposer.org/):

```
composer require phenixphp/sqlite
```

---

Configuration
-------------

[](#configuration)

The `SqliteConfig` class is the entry point for configuring the SQLite connection. It allows you to define the database path and connection parameters aligned with the Amphp SQL ecosystem.

```
