Skip to content
πŸ—„ vowserDB allows you to use CSV or JSON files as a database in PHP
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
docs
src/vowserDB
tests
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
UPGRADE.md
composer.json
exampleExtension.php
logo.png

README.md

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

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/Home.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.

You can’t perform that action at this time.