Skip to content
Pure PHP Flat File Database
Branch: master
Clone or download
Latest commit 31133cd May 24, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
Databases first commit Oct 1, 2012
Documents Update Documents/documents.php Oct 1, 2012
Functions Update Functions/Root.php Oct 3, 2012
Panel Update Oct 3, 2012
Config.php first commit Oct 1, 2012
FFStyle.css first commit Oct 1, 2012
FlatFire.php first commit Oct 1, 2012
LICENSE first commit Oct 1, 2012 Update May 24, 2017
api.php first commit Oct 1, 2012
api_demo.php first commit Oct 1, 2012
index.php first commit Oct 1, 2012
install.php Update install.php Sep 30, 2012
panel.php Update panel.php Oct 3, 2012

Flat Fire

PHP Flat File Database Engine
Version: 01.0.0 [2012]


  1. Upload files to your host and address to FFDB root (index.php). It redirects you to installation:
  2. (Install FF) Set a root username and password.
  3. FF is ready to use. Include "FlatFire.php" to your script, everywhere you need FF functionality.


Rest Api

You are able to access databases from other servers using a POST request to FFDB/api.php. for more information look at project Documentation or Git Repo Wiki.

Control Panel

Flat Fire is pure php and totaly function oriented so you can manipulate your databases, right from your script. In adition to this, FF has also powerful user-interface which prefer controls for Databases and configurations. You can access to this control panel using root username and password and from index.php.

Multiple Databases

Multiple users

  • setup privileges for multiple users (similar to mysql).
  • control members using core functions.
  • manage users and privileges from control panel.

Free, Structured or Mixed databases

Flat Fire supports three database types:

    Regular (table, row, column) format.
	/	\
	TX	TableY
		|ROW_0 Colum_0 Colum_1 Colum_2|
		|ROW_1 Colum_0 Colum_1 Colum_2|
  1. FREE More creative data storing.
    You can store data in any structure you want for each (free) element, its similar to storing an array with a unique "Id".
	/	\
	EX	ElementY (ID)
		|Field_0 Value_0 |
		|Field_1 Value_1 |
		|Field_2 Value_2 |
	recall [ID]: get_free("ElementY") --> array([Field_0]=>Value_0,[Field_1]=>Value_1...
  1. MIXD (Mixed)
    Mixed databases can store both free elements and tables.If you add a table to a free db or a free element to a structured db, flat fire will automatically convert FREE or SRCT to MIXD database.
	/	\

Detailed error reporting

FF can trigger (short or detailed) error messages on almost every error. - Note: You can disable error reporting from control panel.

Plugin engine


Stable against code injection

Easy to search and read physical files

Opensource and free

Server Requirements

  1. A little storage
  2. PHP 5.3+
    --> if you want to use FFDB on php5 under 5.3 this is what you need: remove namespace FFDB; and FFDB\ from all php files, don't lose anyone. if you remove namespace, you can call functions without FFDB\, but you should not use these variables in your script: $Root, $indb. more information about namespace, have a look at php official manual. --> you can also use namespaceless (git) branch.


M. H. Golkar

Deprecation Warning
No new development will happen in this repository.

You can’t perform that action at this time.