PHPackages                             belamov/postgres-range - 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. belamov/postgres-range

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

belamov/postgres-range
======================

Postgres range types support for laravel

1.3.0(1y ago)38224.9k↑31.3%5[1 PRs](https://github.com/belamov/postgres-range/pulls)1MITPHPPHP ^8.0|^7.4CI passing

Since Apr 10Pushed 1y ago4 watchersCompare

[ Source](https://github.com/belamov/postgres-range)[ Packagist](https://packagist.org/packages/belamov/postgres-range)[ Docs](https://github.com/belamov/postgres-range)[ RSS](/packages/belamov-postgres-range/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (18)Used By (1)

[![postgres-range](https://camo.githubusercontent.com/d1976f0036abeac437c1e9943661f69816ac6a1639a39ffaf161235e4bd5e020/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f706f7374677265732d72616e67652e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d62656c616d6f76253246706f7374677265732d72616e6765267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d4c61726176656c2b7061636b6167652b666f722b506f737467726553514c2b72616e67652b74797065732b737570706f7274266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/d1976f0036abeac437c1e9943661f69816ac6a1639a39ffaf161235e4bd5e020/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f706f7374677265732d72616e67652e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d62656c616d6f76253246706f7374677265732d72616e6765267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d4c61726176656c2b7061636b6167652b666f722b506f737467726553514c2b72616e67652b74797065732b737570706f7274266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)[![Latest Version on Packagist](https://camo.githubusercontent.com/270ba86938683a95ce6c5aa13aafede00884320aa9d498cdafcb4468de4c5967/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62656c616d6f762f706f7374677265732d72616e67652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/belamov/postgres-range)[![PHP from Packagist](https://camo.githubusercontent.com/5ac2cbadcd4f8eafa0d45a9cfa731ebae8bc27b75ae0a51a28569678648967af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f62656c616d6f762f706f7374677265732d72616e6765)](https://camo.githubusercontent.com/5ac2cbadcd4f8eafa0d45a9cfa731ebae8bc27b75ae0a51a28569678648967af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f62656c616d6f762f706f7374677265732d72616e6765)[![Laravel](https://camo.githubusercontent.com/f6cf2956c405880b01e0476a995d97f79a3050cb118cd665534fd63f897edfaa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d3725323025374325323038253230253743253230392532302537432532303130253230253743253230313125323025374325323031322d677265656e)](https://laravel.com/)[![tests](https://github.com/belamov/postgres-range/actions/workflows/main.yml/badge.svg)](https://github.com/belamov/postgres-range/actions/workflows/main.yml)[![codecov](https://camo.githubusercontent.com/2903bc6eb882c05d9d62951c06436941a044f27df698972303cb6edd7e911235/68747470733a2f2f636f6465636f762e696f2f67682f62656c616d6f762f706f7374677265732d72616e67652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/belamov/postgres-range)[![StyleCI](https://camo.githubusercontent.com/0388aaae4df6ac069a6d69517b856ad8a93f89f8f6a76484d1e56b6f2bc42c56/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3235333332363233302f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/253326230)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f3844702e5b946339bfa406845e915d11c325a03e8cea0cef7ff80deb312051e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62656c616d6f762f706f7374677265732d72616e67652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/belamov/postgres-range/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/ac21b9d07085aff66e65573befed6bf823b5662303a5b5ea6b61859b73ab805f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62656c616d6f762f706f7374677265732d72616e67652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/belamov/postgres-range)

This package provides support for PostgreSQL's range types for Laravel 7+.

Please check the [documentation](https://belamov.github.io/postgres-range)

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information about what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [belamov](https://belamov.com)
- [Date Ranges in Laravel](https://medium.com/@palypster/ranges-in-laravel-7-using-postgresql-c4bc69b91758) by [Pavol Perdík](https://github.com/palypster)
- [How to extend or overwrite Query Grammar in Laravel 5](https://medium.com/@daniilromazanov/how-to-extend-query-grammar-in-laravel-fb3d2d6de6d4) by Daniil Romazanov
-  - great tutorial for developing packages for laravel
- [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance46

Moderate activity, may be stable

Popularity46

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 90.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 ~113 days

Recently: every ~28 days

Total

17

Last Release

414d ago

PHP version history (2 changes)1.0.0PHP ^7.4

1.1.1PHP ^8.0|^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/5219f1e7e231d2d1cca9936355d0d2a3c70907a23174e82c06bd3d95b319e69e?d=identicon)[belamov](/maintainers/belamov)

---

Top Contributors

[![belamov](https://avatars.githubusercontent.com/u/13860486?v=4)](https://github.com/belamov "belamov (74 commits)")[![vatsake](https://avatars.githubusercontent.com/u/36108180?v=4)](https://github.com/vatsake "vatsake (3 commits)")[![Arthur-Sk](https://avatars.githubusercontent.com/u/32418088?v=4)](https://github.com/Arthur-Sk "Arthur-Sk (1 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")[![resohead](https://avatars.githubusercontent.com/u/13508056?v=4)](https://github.com/resohead "resohead (1 commits)")[![isalcedo](https://avatars.githubusercontent.com/u/2588745?v=4)](https://github.com/isalcedo "isalcedo (1 commits)")[![fuwasegu](https://avatars.githubusercontent.com/u/52437973?v=4)](https://github.com/fuwasegu "fuwasegu (1 commits)")

---

Tags

daterangeint4rangeint8rangelaravelnumrangepackagepackagistpostgres-rangepostgresqlrangestimerangetsrangelaravelpackagepostgresdaterangetimerangepostgres-rangetsrangenumrangeint4rangeint8range

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/belamov-postgres-range/health.svg)

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

###  Alternatives

[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[orptech/laravel-migration-partition

Laravel extensions that extends Illuminate to enable partitioned table creation within Laravel migrations.

3426.7k](/packages/orptech-laravel-migration-partition)[onramplab/laravel-custom-fields

An laravel package that enables custom field support for any Laravel models

103.9k](/packages/onramplab-laravel-custom-fields)

PHPackages © 2026

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