vowserDB allows you to use csv files as a standalone database with SQL-like commands. It is written purely in PHP without any frameworks, additional services or deamons.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
docs
src/vowserDB
tests
.gitignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
UPGRADE.md
composer.json
exampleExtension.php
logo.png

README.md

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

composer require vowserdb/vowserdb

Basic usage

<?php
use vowserDB\Table;

// Use table 'users' with sepecified columns
$table = new Table('users', ['username', 'password', 'mail']);

// Insert new user into table
$table->insert([
    'username' => 'testuser',
    'password' => '1234',
    'mail' => 'mail@example.com'
]);

// 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. It can also be viewed from docs/index.html when cloning the repository or by opening docs/Readme.md. The documentation is powered by Flatdoc.

Bugs and feature requests

Bugs and feature request are tracked on GitHub.

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.