PHPackages                             latitude/latitude - 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. latitude/latitude

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

latitude/latitude
=================

A SQL query builder with zero dependencies

4.4.1(6mo ago)636322.5k—4.9%52[6 issues](https://github.com/shadowhand/latitude/issues)[4 PRs](https://github.com/shadowhand/latitude/pulls)7MITPHPPHP ^7.4 || ^8.0CI passing

Since Jan 27Pushed 1w ago20 watchersCompare

[ Source](https://github.com/shadowhand/latitude)[ Packagist](https://packagist.org/packages/latitude/latitude)[ RSS](/packages/latitude-latitude/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (6)Versions (51)Used By (7)

Latitude Query Builder
======================

[](#latitude-query-builder)

[![Become a Supporter](https://camo.githubusercontent.com/28a4011c597c1f2866c7419fcefd80ec11a8591e34f94612242c09e86e8a30dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617472656f6e2d73706f6e736f722532306d652d6536343631612e737667)](https://www.patreon.com/shadowhand)[![Latest Stable Version](https://camo.githubusercontent.com/36528823dddd3d53b98a3583226f285cdac32e42b2ffa1efda550979e5c36e7d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c617469747564652f6c617469747564652e737667)](https://packagist.org/packages/latitude/latitude)[![License](https://camo.githubusercontent.com/b245e94de6f26ab131c6716df243a61d4a3f63640f40d187ca0d3577e6ea18a5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c617469747564652f6c617469747564652e737667)](https://github.com/shadowhand/latitude/blob/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/e89cae6f523f21ee28fff677a47c5b886c2e7df4c6190805c4381a44a8eb188b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736861646f7768616e642f6c617469747564652f74657374732e79616d6c3f6272616e63683d6d61696e)](https://github.com/shadowhand/latitude)

A SQL query builder with zero dependencies. Attempts to be [PSR-1](http://www.php-fig.org/psr/psr-1/), [PSR-2](http://www.php-fig.org/psr/psr-2/), and [PSR-4](http://www.php-fig.org/psr/psr-4/) compliant.

Install
-------

[](#install)

```
composer require latitude/latitude

```

Documentation
-------------

[](#documentation)

The latest stable documentation is [available online](https://latitude.shadowhand.com/)and can be found in the [docs/](docs/) directory.

License
-------

[](#license)

Latitude is licensed under [MIT](LICENSE.md) and can be used for any personal or commercial project. If you really like it, feel free to buy me a beer sometime!

###  Health Score

67

—

FairBetter than 99% of packages

Maintenance83

Actively maintained with recent releases

Popularity57

Moderate usage in the ecosystem

Community35

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 71.9% 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 ~70 days

Recently: every ~498 days

Total

47

Last Release

207d ago

Major Versions

0.6.0 → 2.2.02017-09-19

0.6.1 → 2.3.02017-10-03

0.7.0 → 2.3.12017-12-13

2.3.1 → 3.0.02018-04-18

3.3.1 → 4.0.02019-08-10

PHP version history (5 changes)1.0.0PHP &gt;=7.0

0.1.0PHP &gt;=5.6

3.0.0PHP &gt;=7.1

4.0.0PHP &gt;=7.2

4.3.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38203?v=4)[Woody Gilk](/maintainers/shadowhand)[@shadowhand](https://github.com/shadowhand)

---

Top Contributors

[![shadowhand](https://avatars.githubusercontent.com/u/38203?v=4)](https://github.com/shadowhand "shadowhand (264 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (52 commits)")[![UniForceMusic](https://avatars.githubusercontent.com/u/51342446?v=4)](https://github.com/UniForceMusic "UniForceMusic (18 commits)")[![roomcays](https://avatars.githubusercontent.com/u/826010?v=4)](https://github.com/roomcays "roomcays (7 commits)")[![kfreiman](https://avatars.githubusercontent.com/u/2056294?v=4)](https://github.com/kfreiman "kfreiman (4 commits)")[![muglug](https://avatars.githubusercontent.com/u/2292638?v=4)](https://github.com/muglug "muglug (4 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (3 commits)")[![bpolaszek](https://avatars.githubusercontent.com/u/5569077?v=4)](https://github.com/bpolaszek "bpolaszek (2 commits)")[![gnoddep](https://avatars.githubusercontent.com/u/2128434?v=4)](https://github.com/gnoddep "gnoddep (2 commits)")[![donatj](https://avatars.githubusercontent.com/u/133747?v=4)](https://github.com/donatj "donatj (2 commits)")[![MelleB](https://avatars.githubusercontent.com/u/265437?v=4)](https://github.com/MelleB "MelleB (2 commits)")[![Vansers](https://avatars.githubusercontent.com/u/2859602?v=4)](https://github.com/Vansers "Vansers (1 commits)")[![andreybolonin](https://avatars.githubusercontent.com/u/2576509?v=4)](https://github.com/andreybolonin "andreybolonin (1 commits)")[![luketlancaster](https://avatars.githubusercontent.com/u/8376505?v=4)](https://github.com/luketlancaster "luketlancaster (1 commits)")[![pavarnos](https://avatars.githubusercontent.com/u/589595?v=4)](https://github.com/pavarnos "pavarnos (1 commits)")[![SamelVhatargh](https://avatars.githubusercontent.com/u/9526042?v=4)](https://github.com/SamelVhatargh "SamelVhatargh (1 commits)")[![ssnepenthe](https://avatars.githubusercontent.com/u/10903810?v=4)](https://github.com/ssnepenthe "ssnepenthe (1 commits)")[![akovalyov](https://avatars.githubusercontent.com/u/2339101?v=4)](https://github.com/akovalyov "akovalyov (1 commits)")

---

Tags

phpphp7query-buildersql

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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