PHPackages                             tusharkhan/file-database - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. tusharkhan/file-database

ActiveLibrary[Database &amp; ORM](/categories/database)

tusharkhan/file-database
========================

A simple file based database for PHP

1.2.0(2y ago)13MITPHPPHP &gt;=8.0

Since Jan 21Pushed 2y agoCompare

[ Source](https://github.com/Soft-Valley/File-database)[ Packagist](https://packagist.org/packages/tusharkhan/file-database)[ Docs](https://github.com/Soft-Valley/File-database)[ RSS](/packages/tusharkhan-file-database/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

[![](img2.jpg)](img2.jpg)

File Database
=============

[](#file-database)

Description
-----------

[](#description)

This is a file database that allows you to store data in a file as json data and retrieve it later like a database. It is a simple and easy to use database that can be used for small projects. It is not recommended to use this database for large projects. You can store data as json. You can also store data in a file.

Features
--------

[](#features)

- Create a table
- Drop tables
- Update a table
- Create a model
- Create a model with migration
- Create a migration
- Run migrations
- Run fresh migrations
- Relationships between models

Little knowledge before start
-----------------------------

[](#little-knowledge-before-start)

If you are familiar with the laravel framework then you can easily use this package. This package uses the laravel filesystem to store the data in a file. Under the hood it uses the [Laravel Collection](https://laravel.com/docs/10.x/collections) class to manipulate the data. So you can use all the methods of the Collection class to work with data. Although some methods are already implemented in the package with every Model you create.

Tip

Just like database you can create a table and store data in it. You can also create a model and use it to store data in a table. Main key concept is, you can think of a table as a file and a row as a json data.

So that you can easily understand the concept of this package. You can also define some relationships between the models.

For more information visit the [documentation](https://github.com/Soft-Valley/File-database/wiki)
-------------------------------------------------------------------------------------------------

[](#for-more-information-visit-the-documentation)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Total

2

Last Release

882d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28561999?v=4)[Tushar Khan](/maintainers/tusharkhan)[@tusharkhan](https://github.com/tusharkhan)

---

Top Contributors

[![tusharkhan](https://avatars.githubusercontent.com/u/28561999?v=4)](https://github.com/tusharkhan "tusharkhan (69 commits)")

---

Tags

jsonjson-databaselaravel-json-databasephp-json-databasephpdatabasefiletusharkhanfile-database

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tusharkhan-file-database/health.svg)

```
[![Health](https://phpackages.com/badges/tusharkhan-file-database/health.svg)](https://phpackages.com/packages/tusharkhan-file-database)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

592456.3k2](/packages/spiritix-lada-cache)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[vectorial1024/laravel-cache-evict

Efficiently remove expired Laravel file/database cache data

5917.4k](/packages/vectorial1024-laravel-cache-evict)[itpathsolutions/dbstan

Database Standardization and Analysis Tool for Laravel

492.9k](/packages/itpathsolutions-dbstan)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
