Download the PHP package level51/silverstripe-data-documents without Composer
On this page you can find all versions of the php package level51/silverstripe-data-documents. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download level51/silverstripe-data-documents
More information about level51/silverstripe-data-documents
Files in level51/silverstripe-data-documents
Package silverstripe-data-documents
Short Description A CQRS-style approach for managing data redundancy "the good way"
License BSD-3-Clause
Informations about the package silverstripe-data-documents
Data Documents
Low-effort approach for syncing your DataObject with document-based payload stores such Firestore, Pocketbase, Elasticsearch, Redis, ...
Inspired by the CQRS pattern, you can think of this module as a headless approach without any public API exposed by your Silverstripe app.
Installation
Make sure to require the base module...
...and the payload store adapter of your choice.
- Firestore:
composer require level51/silverstripe-data-documents-firestore
- Pocketbase:
composer require level51/silverstripe-data-documents-pocketbase
- (adapter library in the making)
It is faily easy to create your own adapter. Just create a class and make it
implement the DataDocumentStore
interface.
Recipe
- Install or create a document store adapter
- Make your DataObject implement the
DataDocument
interface - Start manipulating your DataObject and check your document store
What is CQRS?
CQRS is an architectural pattern that separates the concerns of reading (query) and writing (command) operations in your application. This separation provides several benefits, including improved performance, code organization, and maintainability.