Download the PHP package thedava/dod-lite without Composer
On this page you can find all versions of the php package thedava/dod-lite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thedava/dod-lite
More information about thedava/dod-lite
Files in thedava/dod-lite
Package dod-lite
Short Description A simple file based pseudo database
License GPL-3.0-or-later
Informations about the package dod-lite
Document-oriented Database Lite
A simple file based document-oriented pseudo database.
This library is still in alpha phase! Use at own risk!
The main goal was to have a library that kind of combines the functionality of SQLite and a document-oriented database like MongoDB: Store data simply in a file without the need of a separate running database.
Installation
via Composer
Usage
The core component of DodLite is the DocumentManager. It is used to manage collections and provides some utility functionality like moving Documents between collections. The full documentation of the DocumentManager and an explanation of the basic concepts of DodLite can be found here.
For an easy start, you can use the DocumentManagerFactory
to create a new DocumentManager instance (without deep diving into the adapters). The Factory provides multiple
methods to create a DocumentManager instance for different use cases. See the Adapters documentation for more information.
Writing data
Updating data
Reading data
Check if data exists
Deleting data
Adapters
DodLite uses adapters for storing data. Adapters are responsible for reading and writing data. They also provide additional functionality that is built on top of other adapters. For a full list of adapters see the Adapters documentation.
Error Handling
Every error that is thrown in DodLite is either a \DodLite\DodException
or a derivative of it.
For a full explanation of all exceptions see the Exceptions documentation.
Extensions
- dod-lite-flysystem - Flysystem adapter for DodLite
Docs
- Concepts
- Adapters
- Exceptions
- Utilities