PHPackages                             segpacto/yii2-httpfull - 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. segpacto/yii2-httpfull

ActiveYii2-extension[HTTP &amp; Networking](/categories/http)

segpacto/yii2-httpfull
======================

Extension conversion of 'Httpful' to yii2 extension

116.1kPHP

Since Aug 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/segpacto/yii2-httpfull)[ Packagist](https://packagist.org/packages/segpacto/yii2-httpfull)[ RSS](/packages/segpacto-yii2-httpfull/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

HttpFull
========

[](#httpfull)

Extension conversion of 'Httpful' to yii2 extension

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Since it is not published on packages.org needs to be installed manually using composer add to your composer.json

```
"repositories":[
    {
        "type": "git",
        "url": "https://path.to/your/repo"
    }
]

since the file is local the 'url' should be "url" : "file:///path_to_your_file"
```

Either run

```
php composer.phar require --prefer-dist segpacto/yii2-httpfull "*"

```

or add

```
"segpacto/yii2-httpfull": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
// Make a request to the GitHub API with a custom
// header of "X-Trvial-Header: Just as a demo".
$url = "https://api.github.com/users/nategood";
$response = \HttpFull\Request::get($url)
    ->expectsJson()
    ->withXTrivialHeader('Just as a demo')
    ->send();

echo "{$response->body->name} joined GitHub on " .
                        date('M jS', strtotime($response->body->created_at)) ."\n";
```

Ex 1: Send off a GET request. Get automatically parsed JSON response. The library notices the JSON Content-Type in the response and automatically parses the response into a native PHP object.

```
$uri = "https://www.googleapis.com/freebase/v1/mqlread?query=%7B%22type%22:%22/music/artist%22%2C%22name%22:%22The%20Dead%20Weather%22%2C%22album%22:%5B%5D%7D";
$response = \HttpFull\Request::get($uri)->send();

echo 'The Dead Weather has ' . count($response->body->result->album) . " albums.\n";
```

Ex 2:

```
$uri = 'https://example.net/person.xml';
$response = \HttpFull\Request::get($uri)
    ->expectsXml()
    ->send();

echo "Name: $response->body->name";
```

Note : This is based on the [package](https://github.com/nategood/httpful)shared by [nategood](https://github.com/nategood). This is only a conversion to use as Yii2 extension. For further explanation and documentation of the package go directly their [documentation](http://phphttpclient.com/).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

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

---

Top Contributors

[![segpacto](https://avatars.githubusercontent.com/u/7210110?v=4)](https://github.com/segpacto "segpacto (9 commits)")

### Embed Badge

![Health badge](/badges/segpacto-yii2-httpfull/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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