PHPackages                             flexphp/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. flexphp/database

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

flexphp/database
================

Database PHP for FlexPHP library

0111[1 PRs](https://github.com/flexphp/flex-database/pulls)PHP

Since Oct 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/flexphp/flex-database)[ Packagist](https://packagist.org/packages/flexphp/database)[ RSS](/packages/flexphp-database/feed)WikiDiscussions develop Synced 1w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Database
========

[](#database)

[![Latest Stable Version](https://camo.githubusercontent.com/cf14c7a0f8a9cec341eef3a0126ecede8869b7c661fb54d03898f01fc43341f2/68747470733a2f2f706f7365722e707567782e6f72672f666c65787068702f64617461626173652f762f737461626c65)](https://packagist.org/packages/flexphp/database)[![Total Downloads](https://camo.githubusercontent.com/ccb330c1b77b5b27269fbf6037b81d9e488f29cf19dd15d224d21c3c16a720f9/68747470733a2f2f706f7365722e707567782e6f72672f666c65787068702f64617461626173652f646f776e6c6f616473)](https://packagist.org/packages/flexphp/database)[![Latest Unstable Version](https://camo.githubusercontent.com/a040514c14e7d911e4bd1698d38b48d4e4f0795f1118670347709aae18eabed1/68747470733a2f2f706f7365722e707567782e6f72672f666c65787068702f64617461626173652f762f756e737461626c65)](https://packagist.org/packages/flexphp/database)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/979f844abe797ef39e7c904d38a860e751b8591fb144e5e0bb548086fb9af915/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f666c65787068702f666c65782d64617461626173652f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/flexphp/flex-database)[![Code Coverage](https://camo.githubusercontent.com/a354b500b656ae1ec9959ed1166373be214a3fc49d019aed9aa08748562d31a1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f666c65787068702f666c65782d64617461626173652f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/flexphp/flex-database)[![License](https://camo.githubusercontent.com/2602a6fd97a5dbd60d59b1b018376c0827567042b569b426e7e80a3cbfc555b0/68747470733a2f2f706f7365722e707567782e6f72672f666c65787068702f64617461626173652f6c6963656e7365)](https://packagist.org/packages/flexphp/database)[![composer.lock](https://camo.githubusercontent.com/c23f638e19c8f3c3146d3374de254d1f0785ee4992e4921358d9e4a69ed7cee4/68747470733a2f2f706f7365722e707567782e6f72672f666c65787068702f64617461626173652f636f6d706f7365726c6f636b)](https://packagist.org/packages/flexphp/database)

One Database, Any Framework

Change between frameworks when you need. Keep It Simple, SOLID and DRY with FlexPHP.

Installation
------------

[](#installation)

Install the package with Composer:

```
composer require flexphp/database
```

License
-------

[](#license)

Database is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c60ac20df03263408d2963d706e19c01d1f7afac05bd3cdb427894dbd1ae67d6?d=identicon)[freddiegar](/maintainers/freddiegar)

---

Top Contributors

[![freddiegar](https://avatars.githubusercontent.com/u/8710491?v=4)](https://github.com/freddiegar "freddiegar (66 commits)")

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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