PHPackages                             lunr/gravity - 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. lunr/gravity

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

lunr/gravity
============

Lunr.Gravity is a database library that doesn't limit functionality to the least common denominator.

0.12.0(1mo ago)01.7k↑1972.2%7[1 issues](https://github.com/lunr-php/lunr.gravity/issues)MITPHPPHP &gt;=8.3CI failing

Since Sep 18Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/lunr-php/lunr.gravity)[ Packagist](https://packagist.org/packages/lunr/gravity)[ Docs](https://github.com/lunr-php/lunr.gravity)[ RSS](/packages/lunr-gravity/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (12)Versions (16)Used By (0)

Lunr.Gravity
============

[](#lunrgravity)

Lunr.Gravity is a database library aiming to abstract SQL features rather than SQL databases. It guarantees that if you use a specific SQL feature (e.g. JOIN), it will work identical for all databases that support that feature. It, however, will not guarantee that every database supports that feature. In this way the **developer** is responsible for selecting the features that would allow switching out one database with another, if that is a desired workflow. But on the flipside this also allows developers who know they'll depend on a specific database to make the most use out of it.

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

[](#installation)

- Install Lunr.Gravity with Composer or with your own installer.
- Lunr.Gravity follows the [semantic versioning](https://semver.org) standards.

Community
---------

[](#community)

- Follow us on [GitHub](https://github.com/lunr-php/lunr.gravity).

Contributing
------------

[](#contributing)

Lunr.Gravity is an Open Source, community-driven project. Join by contributing code or documentation.

If you encounter any issues when using Lunr.Gravity you can report them [on github](https://github.com/lunr-php/lunr.gravity/issues)

About Us
--------

[](#about-us)

Lunr.Gravity development is spearheaded by [Move](https://moveagency.com).

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance93

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.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 ~108 days

Recently: every ~152 days

Total

10

Last Release

33d ago

PHP version history (2 changes)0.8.0PHP &gt;=8.1

0.12.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d947cb57fe64548b6f9eda414f1add9b39e62200c6f509af20db0119bb8b245?d=identicon)[pprkut](/maintainers/pprkut)

---

Top Contributors

[![pprkut](https://avatars.githubusercontent.com/u/56635?v=4)](https://github.com/pprkut "pprkut (536 commits)")[![SMillerDev](https://avatars.githubusercontent.com/u/1484494?v=4)](https://github.com/SMillerDev "SMillerDev (58 commits)")[![brianstoop](https://avatars.githubusercontent.com/u/43063856?v=4)](https://github.com/brianstoop "brianstoop (5 commits)")[![tardypad](https://avatars.githubusercontent.com/u/6368493?v=4)](https://github.com/tardypad "tardypad (5 commits)")[![Martijnsvb](https://avatars.githubusercontent.com/u/38097336?v=4)](https://github.com/Martijnsvb "Martijnsvb (4 commits)")[![DavidCova](https://avatars.githubusercontent.com/u/17008531?v=4)](https://github.com/DavidCova "DavidCova (4 commits)")[![marcella-galambos-framna](https://avatars.githubusercontent.com/u/180182720?v=4)](https://github.com/marcella-galambos-framna "marcella-galambos-framna (2 commits)")[![m2andrea](https://avatars.githubusercontent.com/u/14904281?v=4)](https://github.com/m2andrea "m2andrea (1 commits)")

---

Tags

lunrone-flowossphpdatabasemysqlsqlitemariadbsql

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lunr-gravity/health.svg)

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

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k595.8M6.5k](/packages/doctrine-dbal)[catfan/medoo

The lightweight PHP database framework to accelerate development

4.9k1.5M203](/packages/catfan-medoo)[cycle/database

DBAL, schema introspection, migration and pagination

65746.2k48](/packages/cycle-database)[tommyknocker/pdo-database-class

Framework-agnostic PHP database library with unified API for MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, and Oracle. Query Builder, caching, sharding, window functions, CTEs, JSON, migrations, ActiveRecord, CLI tools, AI-powered analysis. Zero external dependencies.

816.0k](/packages/tommyknocker-pdo-database-class)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

111.6k](/packages/ramadan-easy-model)

PHPackages © 2026

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