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

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

lion/database
=============

Package in charge of the generation and execution of processes with databases.

v12.1.0(3mo ago)14.4k↓100%1MITPHPPHP &gt;=8.5CI passing

Since Mar 2Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Lion-Packages/database)[ Packagist](https://packagist.org/packages/lion/database)[ Docs](https://dev.lion-packages.com/)[ RSS](/packages/lion-database/feed)WikiDiscussions 12.x Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (133)Used By (1)

 [ ![presentation-lion-packages](https://private-user-images.githubusercontent.com/56183278/500034456-f69cf853-0582-4718-95a4-3ed133211448.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQxODY4MTQsIm5iZiI6MTc3NDE4NjUxNCwicGF0aCI6Ii81NjE4MzI3OC81MDAwMzQ0NTYtZjY5Y2Y4NTMtMDU4Mi00NzE4LTk1YTQtM2VkMTMzMjExNDQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAzMjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMzIyVDEzMzUxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxZjRlYzMxY2E5YmRiZDEwZjFmNWEzNTg2YWMzY2Q2NzFlNjZhM2U0ODU1OWE4MTM2ZjIwMjA0YmUyZjJhZWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.An1s9cKMM-SPUJkecT2JNNQYv4NIhUDsUbcQgMTq2SE) ](https://dev.lion-packages.com/docs/library/content)

 [ ![Latest Stable Version](https://camo.githubusercontent.com/8e55172af629c3c4774f64d5d96e95bc4f141b5abdccc5a0248072dd22005863/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f64617461626173652f76) ](https://packagist.org/packages/lion/database) [ ![Total Downloads](https://camo.githubusercontent.com/26e77cd33b55ca46884583071828eac98508c262bff080ef7de297aeda4b8d6d/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f64617461626173652f646f776e6c6f616473) ](https://packagist.org/packages/lion/database) [ ![License](https://camo.githubusercontent.com/7c9ce51d2e68e472a47a53d59907a8375f7dbc27340918a5d5774595284062da/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f64617461626173652f6c6963656e7365) ](https://github.com/lion-packages/database/blob/main/LICENSE) [ ![PHP Version Require](https://camo.githubusercontent.com/2c652f15d4f869717056477071e4db0cb05e9070341960705e336315128dfcb3/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f64617461626173652f726571756972652f706870) ](https://www.php.net/)

🚀 **Lion-Database** Package responsible for generating and executing statements for databases (MySQL/PostgreSQL/SQLite).

---

📖 Features
----------

[](#-features)

✔️ Support for multiple database connections.
✔️ Native classes for database drivers: MySQL, PostgreSQL, SQLite.
✔️ Classes for creating complete schemas with MySQL drivers.

---

📦 Installation
--------------

[](#-installation)

Install the database using **Composer**:

```
composer require lion/database
```

📝 License
---------

[](#-license)

The **database** is open-sourced software licensed under the [MIT License](https://github.com/lion-packages/database/blob/main/LICENSE).

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance85

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 91.2% 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 ~11 days

Recently: every ~22 days

Total

132

Last Release

69d ago

Major Versions

v7.7.0 → v8.0.02023-05-05

v8.9.0 → v9.0.02023-12-26

v9.2.3 → v10.0.02024-06-01

v10.4.0 → v11.0.02024-12-01

11.x-dev → v12.0.02025-12-27

PHP version history (7 changes)v1.0PHP &gt;=8.0

v1.1PHP &gt;=8.0.9

v4.4PHP &gt;=8.1

v9.0.0PHP &gt;=8.2

v10.0.0PHP &gt;=8.3

v11.0.0PHP &gt;=8.4

v12.0.0PHP &gt;=8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/1419758fcb0259274d35f6d2cbfb5a60694baa74e99437d32dfec9a0d5c10d65?d=identicon)[lion-packages](/maintainers/lion-packages)

---

Top Contributors

[![Sleon4](https://avatars.githubusercontent.com/u/56183278?v=4)](https://github.com/Sleon4 "Sleon4 (515 commits)")[![GabrielPalac](https://avatars.githubusercontent.com/u/162063476?v=4)](https://github.com/GabrielPalac "GabrielPalac (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (14 commits)")[![Santiago1010](https://avatars.githubusercontent.com/u/48629173?v=4)](https://github.com/Santiago1010 "Santiago1010 (6 commits)")[![mcesmeralda](https://avatars.githubusercontent.com/u/96641807?v=4)](https://github.com/mcesmeralda "mcesmeralda (5 commits)")[![jerezjustin](https://avatars.githubusercontent.com/u/132396080?v=4)](https://github.com/jerezjustin "jerezjustin (3 commits)")[![MMarioLP](https://avatars.githubusercontent.com/u/105904645?v=4)](https://github.com/MMarioLP "MMarioLP (2 commits)")[![S-ospina27](https://avatars.githubusercontent.com/u/107444825?v=4)](https://github.com/S-ospina27 "S-ospina27 (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")[![JuanVaquiro](https://avatars.githubusercontent.com/u/64930246?v=4)](https://github.com/JuanVaquiro "JuanVaquiro (1 commits)")

---

Tags

databasemysqlphppostgresqlsqlsqlitebundlelionlion-database

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[omines/datatables-bundle

Symfony DataTables Bundle with native Doctrine ORM, Elastica and MongoDB support

2851.4M6](/packages/omines-datatables-bundle)[kreait/firebase-bundle

Symfony Bundle for the Firebase Admin SDK

1534.7M2](/packages/kreait-firebase-bundle)[data-dog/audit-bundle

Audit bundle for symfony2 and doctrine orm, logs any database change

141901.7k1](/packages/data-dog-audit-bundle)[debesha/doctrine-hydration-profiler-bundle

Information about hydration of doctrine entities at the profiler

133593.2k1](/packages/debesha-doctrine-hydration-profiler-bundle)

PHPackages © 2026

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