PHPackages                             leafs/http - 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. [Framework](/categories/framework)
4. /
5. leafs/http

ActiveLibrary[Framework](/categories/framework)

leafs/http
==========

Http abstraction for Leaf PHP

v4.2(10mo ago)651.5k—1.6%1211MITPHP

Since Sep 20Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/leafsphp/http)[ Packagist](https://packagist.org/packages/leafs/http)[ Docs](https://leafphp.dev/modules/http/v/2/request.html)[ GitHub Sponsors](https://github.com/leafsphp)[ Fund](https://opencollective.com/leaf)[ RSS](/packages/leafs-http/feed)WikiDiscussions v4.x Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (31)Used By (11)

 [![](https://camo.githubusercontent.com/d98ee5e32c2ff016fdfdac6c42654a908f4cc34b229c7b00caacc5a717455ae8/68747470733a2f2f6c6561667068702e6465762f6c6f676f2d636972636c652e706e67)](https://camo.githubusercontent.com/d98ee5e32c2ff016fdfdac6c42654a908f4cc34b229c7b00caacc5a717455ae8/68747470733a2f2f6c6561667068702e6465762f6c6f676f2d636972636c652e706e67)

Leaf Http
=========

[](#leaf-http)

 [![Latest Stable Version](https://camo.githubusercontent.com/04de524e3c6aef8c4c8778a3f2139598365004d323a813b32736af8858477e20/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f687474702f762f737461626c65)](https://packagist.org/packages/leafs/http) [![Total Downloads](https://camo.githubusercontent.com/193ae9ca8a9ceef7d63b55ee2c4d133a0f543af1ccde571605bfa0d01234afc8/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f687474702f646f776e6c6f616473)](https://packagist.org/packages/leafs/http) [![License](https://camo.githubusercontent.com/e4d409b3379d00d9f671c559f997c80c3afbfdc5b4089cdccda8cdf2514bdc0a/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f687474702f6c6963656e7365)](https://packagist.org/packages/leafs/http)

Leaf's HTTP abstraction is a developer friendly way to interact with HTTP requests and responses. If you are using it within a Leaf app, there's no need to install anything as it comes pre-installed with Leaf. If you are using it outside of Leaf, you can install it via composer.

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

[](#installation)

You can easily install Leaf using the [Leaf CLI](https://cli.leafphp.dev)

```
leaf install http
```

[Composer](https://getcomposer.org/).

```
composer require leafs/http
```

Basic Usage
-----------

[](#basic-usage)

You can find the full documentation on how to use Leaf Http [here](https://leafphp.dev/docs/http/request).

Stay In Touch
-------------

[](#stay-in-touch)

- [Twitter](https://twitter.com/leafphp)
- [Join the forum](https://github.com/leafsphp/leaf/discussions/37)
- [Chat on discord](https://discord.com/invite/Pkrm9NJPE3)

Learning Leaf PHP
-----------------

[](#learning-leaf-php)

- Leaf has a very easy to understand [documentation](https://leafphp.dev) which contains information on all operations in Leaf.
- You can also check out our [youtube channel](https://www.youtube.com/channel/UCllE-GsYy10RkxBUK0HIffw) which has video tutorials on different topics
- You can also learn from [codelabs](https://leafphp.dev/codelabs/) and contribute as well.

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

[](#contributing)

We are glad to have you. All contributions are welcome! To get started, familiarize yourself with our [contribution guide](https://leafphp.dev/community/contributing.html) and you'll be ready to make your first pull request 🚀.

To report a security vulnerability, you can reach out to [@mychidarko](https://twitter.com/mychidarko) or [@leafphp](https://twitter.com/leafphp) on twitter. We will coordinate the fix and eventually commit the solution in this project.

Sponsoring Leaf
---------------

[](#sponsoring-leaf)

We are committed to keeping Leaf open-source and free, but maintaining and developing new features now requires significant time and resources. As the project has grown, so have the costs, which have been mostly covered by the team. To sustain and grow Leaf, we need your help to support full-time maintainers.

You can sponsor Leaf and any of our packages on [open collective](https://opencollective.com/leaf) or check the [contribution page](https://leafphp.dev/support/) for a list of ways to contribute.

And to all our [existing cash/code contributors](https://leafphp.dev#sponsors), we love you all ❤️

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance67

Regular maintenance activity

Popularity38

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 88.4% 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 ~54 days

Recently: every ~83 days

Total

30

Last Release

124d ago

Major Versions

v1.2.1 → v2.02022-05-29

v2.8 → v3.02024-11-08

v2.x-dev → v3.32024-12-23

v3.x-dev → v4.02025-02-28

### Community

Maintainers

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

---

Top Contributors

[![mychidarko](https://avatars.githubusercontent.com/u/26604242?v=4)](https://github.com/mychidarko "mychidarko (122 commits)")[![ibnsultan](https://avatars.githubusercontent.com/u/28471267?v=4)](https://github.com/ibnsultan "ibnsultan (7 commits)")[![jeis4n](https://avatars.githubusercontent.com/u/112980298?v=4)](https://github.com/jeis4n "jeis4n (1 commits)")[![joanhey](https://avatars.githubusercontent.com/u/249085?v=4)](https://github.com/joanhey "joanhey (1 commits)")[![kczx3](https://avatars.githubusercontent.com/u/15206020?v=4)](https://github.com/kczx3 "kczx3 (1 commits)")[![Laivee](https://avatars.githubusercontent.com/u/22199565?v=4)](https://github.com/Laivee "Laivee (1 commits)")[![phederal](https://avatars.githubusercontent.com/u/38112007?v=4)](https://github.com/phederal "phederal (1 commits)")[![Rasalas](https://avatars.githubusercontent.com/u/7483565?v=4)](https://github.com/Rasalas "Rasalas (1 commits)")[![Dreamer0x01](https://avatars.githubusercontent.com/u/12978365?v=4)](https://github.com/Dreamer0x01 "Dreamer0x01 (1 commits)")[![ruiwashere](https://avatars.githubusercontent.com/u/148787540?v=4)](https://github.com/ruiwashere "ruiwashere (1 commits)")[![induwara16](https://avatars.githubusercontent.com/u/122541423?v=4)](https://github.com/induwara16 "induwara16 (1 commits)")

---

Tags

httpresponserequestphpframeworkheadersleaf

### Embed Badge

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

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

###  Alternatives

[leafs/leaf

Elegant PHP for modern developers

1.3k44.3k9](/packages/leafs-leaf)

PHPackages © 2026

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