PHPackages                             dwgebler/doclite - 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. dwgebler/doclite

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

dwgebler/doclite
================

A powerful NoSQL data store built on top of SQLite

2.0.0(1mo ago)904626[5 PRs](https://github.com/dwgebler/doclite/pulls)MITPHPPHP ^8.1CI passing

Since Mar 5Pushed 3w ago5 watchersCompare

[ Source](https://github.com/dwgebler/doclite)[ Packagist](https://packagist.org/packages/dwgebler/doclite)[ RSS](/packages/dwgebler-doclite/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (21)Versions (25)Used By (0)

DocLite
=======

[](#doclite)

A powerful PHP NoSQL document store built on top of SQLite.

[![CI](https://github.com/dwgebler/doclite/actions/workflows/ci.yml/badge.svg)](https://github.com/dwgebler/doclite/actions/workflows/ci.yml)

About
-----

[](#about)

DocLite is a NoSQL document store for PHP built on SQLite. It uses the PHP PDO SQLite library to automatically manage documents organised into named collections, stored as JSON. DocLite takes advantage of the SQLite JSON1 extension to store, parse, index, and query JSON documents — giving you the power of a fully transactional, ACID-compliant NoSQL solution contained entirely within the local filesystem.

DocLite lends itself to a variety of use cases: rapid prototyping, small-to-medium websites and applications, a fast local cache for remote API data, a robust replacement for flat-file stores, and a database for microservices or local web apps. Broadly, it suits the [same use cases as SQLite itself](https://www.sqlite.org/whentouse.html), but where a NoSQL document model is preferred.

Install
-------

[](#install)

```
composer require dwgebler/doclite
```

Requires PHP 8.1+ and the `pdo_sqlite` extension.

Upgrading from 1.x? See [UPGRADE-2.0.md](UPGRADE-2.0.md).

Quick start
-----------

[](#quick-start)

```
use Gebler\Doclite\FileDatabase;

$db = new FileDatabase('./data');
$users = $db->collection('users');

$alice = $users->get();
$alice->setValue('name', 'Alice');
$alice->setValue('email', 'alice@example.com');
$alice->save();

$found = $users->findOneBy(['email' => 'alice@example.com']);
echo $found->getValue('name'); // Alice
```

Documentation
-------------

[](#documentation)

- [Getting started](docs/getting-started.md) — installation, requirements, your first database
- [Collections &amp; documents](docs/collections.md) — CRUD, transactions, schemas, custom class mapping
- [Queries](docs/queries.md) — query builder, joins, pagination, aggregation, indexing
- [Full-text search](docs/full-text-search.md) — FTS5-powered search
- [Advanced](docs/advanced.md) — import/export, journal modes, JSONB, PSR-16 cache adapter, logging
- [Symfony integration](docs/symfony.md) — wiring DocLite into a Symfony app

License
-------

[](#license)

MIT. See [LICENSE](LICENSE).

Reporting bugs
--------------

[](#reporting-bugs)

Please raise an issue on [GitHub](https://github.com/dwgebler/doclite/issues).

Reporting vulnerabilities
-------------------------

[](#reporting-vulnerabilities)

See [SECURITY.md](SECURITY.md).

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance94

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 97.5% 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 ~136 days

Recently: every ~326 days

Total

15

Last Release

37d ago

Major Versions

1.1.9 → 2.0.02026-05-28

PHP version history (2 changes)1.0.2PHP &gt;=7.4

2.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/646585?v=4)[dwgebler](/maintainers/dwgebler)[@dwgebler](https://github.com/dwgebler)

---

Top Contributors

[![dwgebler](https://avatars.githubusercontent.com/u/646585?v=4)](https://github.com/dwgebler "dwgebler (77 commits)")[![Awilum](https://avatars.githubusercontent.com/u/477114?v=4)](https://github.com/Awilum "Awilum (1 commits)")[![iGusev](https://avatars.githubusercontent.com/u/1555767?v=4)](https://github.com/iGusev "iGusev (1 commits)")

---

Tags

databasenosqlphpphp7php8sqlitesqlite3jsondatabasesqlitefilenosqlstoredocument

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dwgebler-doclite/health.svg)

```
[![Health](https://phpackages.com/badges/dwgebler-doclite/health.svg)](https://phpackages.com/packages/dwgebler-doclite)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

12310.5M135](/packages/web-auth-webauthn-lib)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)

PHPackages © 2026

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