Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vantezzen/vowserdb

🗄 vowserDB allows you to use CSV or JSON files as a database in PHP
https://github.com/vantezzen/vowserdb

csv database php

Last synced: 2 months ago
JSON representation

🗄 vowserDB allows you to use CSV or JSON files as a database in PHP

Awesome Lists containing this project

README

        




Build status


Stable version


Unstable version


License

# vowserDB
vowserDB allows you to use csv files as a standalone database for PHP with SQL-like commands.

It is written purely in PHP without any dependencies.

# Installation
vowserDB can be installed via composer by running
```php
composer require vowserdb/vowserdb
```

# Basic usage
```php
insert([
'username' => 'testuser',
'password' => '1234',
'mail' => '[email protected]'
]);

// Save changes to table file
$table->save();

// Select row from the table and update the password of the selected rows
$table
->select(['username' => 'testuser'])
->update(['password' => '5678'])
->save();

// Get selected rows
$rows = $table->selected();
```

# Documentation
The documentation can be found at [https://vantezzen.github.io/vowserdb](https://vantezzen.github.io/vowserdb). It can also be viewed from `docs/index.html` when cloning the repository or by opening `docs/Home.md`.
The documentation is powered by [Flatdoc](http://ricostacruz.com/flatdoc).

# Bugs and feature requests
Bugs and feature request are tracked on [GitHub](https://github.com/vantezzen/vowserdb/issues).

# Licence
vowserDB is licensed under the MIT License - see the `LICENSE` file for details.

# Acknowledgements
This library is heavily inspired by Laravels Eloquent syntax.

# Unit Test
Unit tests can be executed via `composer test`.