PHPackages                             realtydev/statamic-database - 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. realtydev/statamic-database

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

realtydev/statamic-database
===========================

Allows you to store all Statamic data in a database..

v1.5.2(4y ago)044PHP

Since Jun 1Pushed 4y agoCompare

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

READMEChangelog (1)Dependencies (3)Versions (30)Used By (0)

Statamic Database Driver
------------------------

[](#statamic-database-driver)

An eloquent driver for Statamic V3 which supports:

- Asset Containers
- Blueprints
- Collections
- Entries
- Fieldsets
- Forms / Form Submissions
- Global Sets
- Navigation
- Taxonomies/Terms
- Trees

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

[](#installation)

From a standard Statamic V3 site, you can run: `composer require realtydev/statamic-database`

Run migrations: `php please migrate`

Then in the register function of your AppServiceProvider, add:

```
public function register()
{
    $this->app->singleton(
        'Statamic\Fields\BlueprintRepository',
        'Realtydev\StatamicDatabase\Blueprints\BlueprintRepository'
    );

    $this->app->singleton(
        'Statamic\Fields\FieldsetRepository',
        'Realtydev\StatamicDatabase\Fieldsets\FieldsetRepository'
    );
}

```

And that should be it!

Issues/Things to work on
------------------------

[](#issuesthings-to-work-on)

- No tests.
- Still needs user roles/groups adding.
- No real world testing done yet, so probably some more to be added.

Credits
-------

[](#credits)

Thanks to [@statamic](https://statamic.dev/) for creating the entries part of this in [statamic/eloquent-driver](https://github.com/statamic/eloquent-driver), which a lot of this was based off.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 95.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 ~8 days

Recently: every ~41 days

Total

26

Last Release

1662d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad6519dc923802aba893ec289fff4edc09dc495fc22dcac5d4c28931d884d107?d=identicon)[realty-dev](/maintainers/realty-dev)

---

Top Contributors

[![Daynnnnn](https://avatars.githubusercontent.com/u/25618897?v=4)](https://github.com/Daynnnnn "Daynnnnn (63 commits)")[![realtydev](https://avatars.githubusercontent.com/u/35852411?v=4)](https://github.com/realtydev "realtydev (3 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/realtydev-statamic-database/health.svg)

```
[![Health](https://phpackages.com/badges/realtydev-statamic-database/health.svg)](https://phpackages.com/packages/realtydev-statamic-database)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4585.8M4](/packages/martin-georgiev-postgresql-for-doctrine)[rias/statamic-redirect

29335.6k](/packages/rias-statamic-redirect)[flow-php/doctrine-dbal-bulk

Bulk inserts and updates for Doctrine DBAL

14385.8k4](/packages/flow-php-doctrine-dbal-bulk)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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