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 1mo ago

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 22% 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

834d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1df648abd04c6c55624abc7c30e71dcc3575cfbcd2a336eca69a7f9a68b15b2e?d=identicon)[tusharkhan](/maintainers/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

[spiritix/lada-cache

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

591444.8k2](/packages/spiritix-lada-cache)[vectorial1024/laravel-cache-evict

Efficiently remove expired Laravel file/database cache data

5813.2k](/packages/vectorial1024-laravel-cache-evict)[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[webparking/laravel-db-rebuild

A laravel package that allows for quick database rebuilds with presets.

448.8k](/packages/webparking-laravel-db-rebuild)[webparking/laravel-type-safe-collection

This package provides type-safe extension of the laravel collection, forcing a single type of object.

378.2k](/packages/webparking-laravel-type-safe-collection)[larachimp/mango-repo

Simple repository package for Laravel 5.

317.2k](/packages/larachimp-mango-repo)

PHPackages © 2026

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