realtydev / statamic-database
Allows you to store all Statamic data in a database..
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 4
pkg:composer/realtydev/statamic-database
Requires
- doctrine/dbal: ^3.1
- statamic/cms: ^3.0
Requires (Dev)
- phpstan/phpstan: ^0.12.89
This package is auto-updated.
Last update: 2025-10-15 07:18:15 UTC
README
An eloquent driver for Statamic V3 which supports:
- Asset Containers
- Blueprints
- Collections
- Entries
- Fieldsets
- Forms / Form Submissions
- Global Sets
- Navigation
- Taxonomies/Terms
- Trees
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
- No tests.
- Still needs user roles/groups adding.
- No real world testing done yet, so probably some more to be added.
Credits
Thanks to @statamic for creating the entries part of this in statamic/eloquent-driver, which a lot of this was based off.