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.
vowserDB can be installed via composer by running
composer require vowserdb/vowserdb
<?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' => 'email@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();
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
The documentation is powered by Flatdoc.
Bugs and feature requests
Bugs and feature request are tracked on GitHub.
vowserDB is licensed under the MIT License - see the
LICENSE file for details.
This library is heavily inspired by Laravels Eloquent syntax.
Unit tests can be executed via