dev-master
9999999-dev https://github.com/badpenguin/flatfiledbPHP Flat File DB API
LGPL 2.1
The Requires
- php >=5.2
The Development Requires
db flatfile
PHP Flat File DB API
PHP Flat File DB library with cache for CMS, (*1)
More informations are available at http://www.badpenguin.org/php-flatfiledb, (*2)
On my VPS i uses Wordpress that is a fatty slow MySQL app., (*3)
Faster websites performs better also in SEO ranking., (*4)
Don't reinvent the wheel., (*5)
Uses "dba" with "qdbm" format., (*6)
"dba" format can be accessed from Perl and from Bash., (*7)
DBA is a module so its faster then any self-made implementation., (*8)
Table Locking., (*9)
Library has a little "cache" system on top of DBA., (*10)
Can store anything: strings, arrays, objects., (*11)
[ ] Database Locking., (*12)
[ ] Disable Locking., (*13)
[ ] Implement "composer", (*14)
$cms = FlatFile::open('db/cms.qdbm');
/* Create an Object */ $post = new stdClass; $post->id=5; $post->title='my title'; $post->body='my content, (*15)
'; $post->last_modified_time = time(); $post->tags = array('featured','gallery'); $cms->set($post->id,$post); if (!$post) die('Save failed');
$post = $cms->get($post_id); if (!$post) die('Post not found');
if ($cms->is_valid('manteinance_mode')) die('Website is under manteinance');
$cms->delete('manteinance_mode');
print_r($cms->get_all());
PHP Flat File DB API
LGPL 2.1
db flatfile