Need a small database for your newest project?

vowserDB allows you to use CSV table files as a standalone database in PHP
<?php 
use vowserDB\Table; 
$table = new Table('users'); 
$table->select(['username' => 'vantezzen']); 
$user = $table->selected();

Features

Quick installation using composer

Of course: installation of vowserDB is done using composer.

$ composer require vowserdb/vowserdb
Using version ^4.0 for vowserdb/vowserdb
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
	- Installing vowserdb/vowserdb(4.0.2)
Writing lock file
Generating autoload files
<?php
use vowserDB\Table; 
$table = new Table('users'); 
$user = [ 
	'username' => 'vantezzen', 
	'password' => '1234', 
	'mail' => 'mail@example.com' 
]; 
$table->insert($user)->save();
Did someone say easy?

You worked with databases before? vowserDB uses an easy sytax for database operation that will feel very familiar.

Just CSV - no magic

vowserDB uses regular CSV files for storing data in the database. If you later decide you need a bigger database, you can easily import your data into most common database software.

username ,mail              ,created
vantezzen,mail@example.com  ,1543090598
peter    ,peter@example.com ,1543054628
steve    ,steve@example.com ,1543052726
sandra   ,sandra@example.com,1543095283
$ git clone https://github.com/you/project
Cloning into 'project'...
remote: Enumerating objects: 501, done.
remote: Total 501 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (501/501), done.
Resolving deltas: 100% (292/292), done.
Ready to ship

vowserDB is made to be shipped with your software to eliminate the need to set up an external database.

Want to start using vowserDB?

Go to the documentation

Example

See how vowserDB could be used in your project

use vowserDB\Table; 

// Create and use 'users' table 
$table = new Table('users'); 

// Insert a new user into the table 
$user = [ 
	'username' => 'vantezzen', 
	'uuid' => '118ccfb4', 
	'password' => '1234', 
	'mail' => 'mail@example.com' 
]; 
$table->insert($user); 

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

// Select user 'vantezzen' 
$table->select(['username' => 'vantezzen'])->first(); 

// Get selected rows as array 
$user = $table->selected(); 

// Update password of user 'vantezzen' 
$table 
  ->select(['username' => 'vantezzen']) 
  ->update(['password' => '1234']); 
	
// Oh yes: Extensions 
use vowserDB\Extensions\relationshipExtension; 
$extension = new relationshipExtension('uuid', 'user'); 
$table->attach($extension);

Ready to start using vowserDB?

Go to the documentation