All Projects → mattbit → flat

mattbit / flat

Licence: other
A flat file database for PHP

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to flat

Kirby
Kirby's core application folder
Stars: ✭ 436 (+2806.67%)
Mutual labels:  flat-file
Batflat
Lightweight, fast and easy CMS for free. Bootstrap ready. https://batflat.org
Stars: ✭ 95 (+533.33%)
Mutual labels:  flat-file
Json Flatfile Datastore
Simple JSON flat file data store with support for typed and dynamic data.
Stars: ✭ 212 (+1313.33%)
Mutual labels:  flat-file
Sleekdb
Pure PHP NoSQL database with no dependency. Flat file, JSON based document database.
Stars: ✭ 450 (+2900%)
Mutual labels:  flat-file
Filehelpers
The FileHelpers are a free and easy to use .NET library to read/write data from fixed length or delimited records in files, strings or streams
Stars: ✭ 917 (+6013.33%)
Mutual labels:  flat-file
Typemill
TYPEMILL is a simple and lightweight Flat-File-CMS for authors and publishers.
Stars: ✭ 150 (+900%)
Mutual labels:  flat-file
Wondercms
WonderCMS - fast and small flat file CMS (5 files)
Stars: ✭ 330 (+2100%)
Mutual labels:  flat-file
beanio
BeanIO 3, a Java library for marshalling and unmarshalling bean objects from XML, CSV, delimited and fixed length stream formats.
Stars: ✭ 34 (+126.67%)
Mutual labels:  flat-file
Copilot
Kickstart your next web project
Stars: ✭ 88 (+486.67%)
Mutual labels:  flat-file
Textpress
Simple flat-file blog engine in PHP
Stars: ✭ 207 (+1280%)
Mutual labels:  flat-file
Panini
A super simple flat file generator.
Stars: ✭ 562 (+3646.67%)
Mutual labels:  flat-file
Bludit
Simple, Fast, Secure, Flat-File CMS
Stars: ✭ 824 (+5393.33%)
Mutual labels:  flat-file
Automad
A flat-file content management system and template engine
Stars: ✭ 163 (+986.67%)
Mutual labels:  flat-file
Flextype
Hybrid Content Management System with the freedom of a headless CMS and with the full functionality of a traditional CMS
Stars: ✭ 436 (+2806.67%)
Mutual labels:  flat-file
Typesetter
Open source CMS written in PHP focused on ease of use with true WYSIWYG editing and flat-file storage.
Stars: ✭ 212 (+1313.33%)
Mutual labels:  flat-file
Pico
Pico is a stupidly simple, blazing fast, flat file CMS.
Stars: ✭ 3,494 (+23193.33%)
Mutual labels:  flat-file
Cecil
Your content driven static site generator.
Stars: ✭ 137 (+813.33%)
Mutual labels:  flat-file
Vodka
simple and tiny PHP flat-file site engine
Stars: ✭ 19 (+26.67%)
Mutual labels:  flat-file
Filebase
A Simple but Powerful Flat File Database Storage.
Stars: ✭ 235 (+1466.67%)
Mutual labels:  flat-file
Grav
Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony
Stars: ✭ 13,067 (+87013.33%)
Mutual labels:  flat-file

Flat

Build Status Code Coverage Scrutinizer Code Quality

Flat is a flat-file database with a mongo-like API, written in PHP.

⚠️ Still under heavy development!

Inserting documents

$db = Flat::localDatabase("/path/to/db");

$doc = new Document([
    'title' => 'Flat',
    'description' => 'A flat NoSQL database',
]);

$db->collection('pages')->insert($doc);

Finding documents

$db->collection('pages')->find(['published' => true]);

// Something slightly more complex
$db->collection('pages')->find([
    'published' => true,
    'view_count' => [ '$gt' => 1000 ],
    'author' => ['$in' => [ 'john', 'jane', 'jack']]
]);

// Or with boolean combination
$db->collection('pages')->find([
    '$or' => [
        ['published' => false],
        ['author' => 'admin']
    ]
]);
Supported query operators

Logical: $and, $or, $not.

Comparison: $eq, $gt, $gte, $lt, $lte, $ne, $regex.

Array: $in, $nin.

Removing documents

$db->collection('pages')->remove(['published' => false]);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].