PHPackages                             fangx/sqlite-driver - 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. fangx/sqlite-driver

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

fangx/sqlite-driver
===================

hyperf sqlite driver

v3.2.0(4y ago)04.5k2MITPHPPHP &gt;=7.2CI failing

Since May 27Pushed 4y agoCompare

[ Source](https://github.com/fangx-packages/hyperf-sqlite-driver)[ Packagist](https://packagist.org/packages/fangx/sqlite-driver)[ RSS](/packages/fangx-sqlite-driver/feed)WikiDiscussions master Synced 1w ago

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

hyperf-sqlite-driver
====================

[](#hyperf-sqlite-driver)

在 hyperf 中使用 sqlite 作为数据驱动.

**SQLite 不支持协程, 请不要在生产中使用, 本扩展的初衷是使用 SQLite 作为驱动来进行单元测试.**

安装
==

[](#安装)

```
composer require fangx/sqlite-driver --dev
```

使用
==

[](#使用)

> 使用前需配置好相关数据回滚迁移等配置, 推荐使用 [`fangx/testing`](https://github.com/nfangxu/hyperf-testing)

### 修改 `phpunit.xml` 中的数据库配置

[](#修改-phpunitxml-中的数据库配置)

```

            ./test

            ./app

```

### 运行测试

[](#运行测试)

```
composer test
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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.

###  Release Activity

Cadence

Every ~59 days

Recently: every ~98 days

Total

8

Last Release

1765d ago

Major Versions

v1.0 → v2.0.02020-06-22

v2.0.1 → v3.0.02020-12-28

2.x-dev → v3.1.02021-01-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/48e745eaab94e5e8f347aadc5b74046bb174895188f0507b1d46c0fa6cee6555?d=identicon)[nfangxu](/maintainers/nfangxu)

---

Top Contributors

[![nfangxu](https://avatars.githubusercontent.com/u/33243730?v=4)](https://github.com/nfangxu "nfangxu (15 commits)")[![Zzzzz-t](https://avatars.githubusercontent.com/u/29647392?v=4)](https://github.com/Zzzzz-t "Zzzzz-t (1 commits)")

---

Tags

phpsqlitehyperf

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/fangx-sqlite-driver/health.svg)

```
[![Health](https://phpackages.com/badges/fangx-sqlite-driver/health.svg)](https://phpackages.com/packages/fangx-sqlite-driver)
```

###  Alternatives

[hyperf/database-pgsql

A pgsql handler for hyperf/database.

12282.0k13](/packages/hyperf-database-pgsql)[jonas-elias/hyperf-oracle

A oracle handler for hyperf/database.

102.0k](/packages/jonas-elias-hyperf-oracle)

PHPackages © 2026

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