https://github.com/ubermanu/donnee
🍩 Tiny database abstraction based on "sed"
https://github.com/ubermanu/donnee
database key-value php sed
Last synced: 2 months ago
JSON representation
🍩 Tiny database abstraction based on "sed"
- Host: GitHub
- URL: https://github.com/ubermanu/donnee
- Owner: ubermanu
- Created: 2021-06-18T18:46:57.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-13T04:20:08.000Z (over 4 years ago)
- Last Synced: 2025-03-08T17:01:54.205Z (over 1 year ago)
- Topics: database, key-value, php, sed
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Donnée
Tiny database abstraction based on sed
## Install
```shell
composer require ubermanu/donnee
```
## Usage
```php
$db = new \Donnee\Donnee('file.txt');
$insertedId = $db->insert('some string');
// 1
echo $db->get(1);
// 'some string'
$db->update(1, 'new string');
echo $db->get(1);
// 'new string'
$db->delete(1);
var_dump($db->get(1));
// null
```
## Tests
```shell
vendor/bin/phpunit
```