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.1(2mo ago)39245.4k↓22.8%5[3 issues](https://github.com/belamov/postgres-range/issues)1MITPHPPHP ^8.0|^7.4CI failing

Since Apr 10Pushed 2mo 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 2d ago

READMEChangelog (10)Dependencies (8)Versions (20)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/57bdee6ac58201855ecf0517f98c94d9e235920d271452684817ed3378c79894/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d37253230253743253230382532302537432532303925323025374325323031302532302537432532303131253230253743253230313225323025374325323031332d677265656e)](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

59

—

FairBetter than 98% of packages

Maintenance83

Actively maintained with recent releases

Popularity46

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 89.5% 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 ~129 days

Recently: every ~99 days

Total

18

Last Release

77d ago

PHP version history (2 changes)1.0.0PHP ^7.4

1.1.1PHP ^8.0|^7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13860486?v=4)[belamov](/maintainers/belamov)[@belamov](https://github.com/belamov)

---

Top Contributors

[![belamov](https://avatars.githubusercontent.com/u/13860486?v=4)](https://github.com/belamov "belamov (77 commits)")[![vatsake](https://avatars.githubusercontent.com/u/36108180?v=4)](https://github.com/vatsake "vatsake (3 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 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)")[![Arthur-Sk](https://avatars.githubusercontent.com/u/32418088?v=4)](https://github.com/Arthur-Sk "Arthur-Sk (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

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M306](/packages/laravel-horizon)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M69](/packages/spatie-laravel-responsecache)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)

PHPackages © 2026

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