PHPackages                             ramsey/http-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. [HTTP &amp; Networking](/categories/http)
4. /
5. ramsey/http-range

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ramsey/http-range
=================

A PHP library for parsing and handling HTTP range requests.

2.0.0(1y ago)33226.6k↑24.2%7[2 PRs](https://github.com/ramsey/http-range/pulls)3MITPHPPHP ^8.2CI passing

Since May 8Pushed 8mo ago5 watchersCompare

[ Source](https://github.com/ramsey/http-range)[ Packagist](https://packagist.org/packages/ramsey/http-range)[ RSS](/packages/ramsey-http-range/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (17)Versions (9)Used By (3)

ramsey/http-range
=================

[](#ramseyhttp-range)

 **A PHP library for parsing and handling HTTP range requests.**

 [![Source Code](https://camo.githubusercontent.com/546c17d0dac3a87e3600ecfdbaad60580d041bda75cd78d282df62cb38d529c6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d72616d7365792f687474702d2d72616e67652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/ramsey/http-range) [![Download Package](https://camo.githubusercontent.com/2d8f1276a5075316a926a27db27f2d03991f31ebf57a88764eeb6ecdd499cc03/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72616d7365792f687474702d72616e67652e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://packagist.org/packages/ramsey/http-range) [![PHP Programming Language](https://camo.githubusercontent.com/b5a5141d7cf44fb658bd93e5b8c98db6aefb381c136f49188f63d4408f844838/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72616d7365792f687474702d72616e67652e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d253233383839324246)](https://php.net) [![Read License](https://camo.githubusercontent.com/b5959174c59a3cf95fa1158b05dffa5b4be6ce9c481dd671c198b7470f9f33cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72616d7365792f687474702d72616e67652e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d6461726b6379616e)](https://github.com/ramsey/http-range/blob/main/LICENSE) [![Build Status](https://camo.githubusercontent.com/6b19827b03c1c00bdcfcb7e46085f817ada77792a1460581070cb3839f488267/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f72616d7365792f687474702d72616e67652f636f6e74696e756f75732d696e746567726174696f6e2e796d6c3f6272616e63683d6d61696e266c6f676f3d676974687562267374796c653d666c61742d737175617265)](https://github.com/ramsey/http-range/actions/workflows/continuous-integration.yml) [![Codecov Code Coverage](https://camo.githubusercontent.com/0ffc979f52b2cada8c49f46f5426162404286904fbceb882f8946fc2eb3ec925/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f72616d7365792f687474702d72616e67653f6c6162656c3d636f6465636f76266c6f676f3d636f6465636f76267374796c653d666c61742d737175617265)](https://codecov.io/gh/ramsey/http-range)

About
-----

[](#about)

ramsey/http-range is a PHP library for parsing and handling [HTTP range requests](https://www.rfc-editor.org/rfc/rfc9110.html#section-14).

This project adheres to a [code of conduct](CODE_OF_CONDUCT.md). By participating in this project and its community, you are expected to uphold this code.

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

[](#installation)

Install this package as a dependency using [Composer](https://getcomposer.org).

```
composer require ramsey/http-range
```

Usage
-----

[](#usage)

Examples of how to use this library may be found in the [Wiki pages](https://github.com/ramsey/http-range/wiki/Examples).

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

[](#contributing)

Contributions are welcome! To contribute, please familiarize yourself with [CONTRIBUTING.md](CONTRIBUTING.md).

Coordinated Disclosure
----------------------

[](#coordinated-disclosure)

Keeping user information safe and secure is a top priority, and we welcome the contribution of external security researchers. If you believe you've found a security issue in software that is maintained in this repository, please read [SECURITY.md](SECURITY.md) for instructions on submitting a vulnerability report.

Copyright and License
---------------------

[](#copyright-and-license)

The ramsey/http-range library is copyright © [Ben Ramsey](https://benramsey.com/)and licensed for use under the MIT License (MIT). Please see [LICENSE](LICENSE)for more information.

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance52

Moderate activity, may be stable

Popularity46

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 88.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 ~415 days

Recently: every ~325 days

Total

7

Last Release

443d ago

Major Versions

0.1.0-alpha → 1.0.02018-12-31

1.x-dev → 2.0.02025-03-02

PHP version history (4 changes)0.1.0-alphaPHP ^5.6|^7.0

1.0.0PHP ^7.2

1.1.0PHP ^7.4 || ^8.0

2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/f514481fa9cfdfd5dbcaccb3e5b480f18ea05ebf331cddf9b1c5a2a96a78fef5?d=identicon)[ramsey](/maintainers/ramsey)

---

Top Contributors

[![ramsey](https://avatars.githubusercontent.com/u/42941?v=4)](https://github.com/ramsey "ramsey (46 commits)")[![mdeboer](https://avatars.githubusercontent.com/u/1171956?v=4)](https://github.com/mdeboer "mdeboer (2 commits)")[![orkhanahmadov](https://avatars.githubusercontent.com/u/7041590?v=4)](https://github.com/orkhanahmadov "orkhanahmadov (2 commits)")[![aedart](https://avatars.githubusercontent.com/u/1523223?v=4)](https://github.com/aedart "aedart (1 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (1 commits)")

---

Tags

httpphppsr-7rangerequestshttprangerequests

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ramsey-http-range/health.svg)

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.0B3.2k](/packages/guzzlehttp-psr7)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

536204.9M23](/packages/league-uri-interfaces)[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.2M267](/packages/nategood-httpful)[swlib/saber

Swoole coroutine HTTP client

985145.0k27](/packages/swlib-saber)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)[chuyskywalker/rolling-curl

Rolling-Curl: A non-blocking, non-dos multi-curl library for PHP

207446.6k6](/packages/chuyskywalker-rolling-curl)

PHPackages © 2026

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