SkillAgentSearch skills...

FlatFileDB

FlatFileDB

Install / Use

/learn @bainternet/FlatFileDB
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

FlatFileDB

FlatFileDB is a simple key value file based database wrapper.

###Usage

<?php 
//include the class
include_once('FlatFileDB.php');
//instanciate the class
$db = new FlatFileDB(array(
    'db_file' => dirname(__FILE__).'/data/test.db',
   	'db'      => 'test',
   	'cache'   =>  true
));

//set value
$db->set('name','Ohad');

//get value
echo $db->get('name');

//update value
$db->update('name','Ohad Raz');
//or $db->set('key','new value');

//get value
echo $db->get('name');       

//get all keys
print_r($db->get_keys());

//remove value
$db->delete('key');

###Download

You can download this project in either zip or tar formats

You can also clone the project with Git by running:

$ git clone git@github.com:bainternet/FlatFileDB.git

###License licensed: GPL http://www.gnu.org/licenses/gpl.html

githalytics.com alpha

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated5y ago
Forks2

Languages

PHP

Security Score

65/100

Audited on Mar 23, 2021

No findings