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

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

fgsl/http
=========

Fgsl Http Requester

1.4.3(2w ago)02283AGPL-3.0-onlyPHPPHP &gt;=8.1

Since May 3Pushed 2w ago1 watchersCompare

[ Source](https://github.com/fgsl/http)[ Packagist](https://packagist.org/packages/fgsl/http)[ Docs](https://github.com/fgsl/http)[ RSS](/packages/fgsl-http/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (2)Versions (24)Used By (3)

Installation in a PHP project
=============================

[](#installation-in-a-php-project)

```
composer require fgsl/http
```

Run command:

```
composer install
```

For getting Composer:

Run unit tests
==============

[](#run-unit-tests)

```
phpunit --bootstrap tests/bootstrap.php tests/Fgsl/Test/TestSuite.php
```

How to use
==========

[](#how-to-use)

See below a sample of method `request`.

```
use Fgsl\Http\Http;

$ctx = Http::getContext('GET', null);
@$response = Http::request("http://www.horalegalbrasil.mct.on.br/SincronismoPublico.html", $ctx);

$this->assertStringContainsString('Sincronismo', $response);
```

The variable `$ctx` receives a HTTP context, that is a resource with elements of HTTP protocol.

The variable `$response` receives HTTP response text, according context defined by `$ctx`.

Sometimes method `request` may not work. Then you can use method `curl`.

See [ApiTest](./tests/Fgsl/Test/APITest.php) class for more examples.

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance97

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 95.7% 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 ~208 days

Recently: every ~287 days

Total

15

Last Release

16d ago

PHP version history (3 changes)1.0.0PHP &gt;=5.6

1.2.4PHP &gt;=7.4

1.3.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cb6d4497d6c4358a5c7e7e31d34412f5d6e9617aafa487b125bcc870171cd1e?d=identicon)[fgsl](/maintainers/fgsl)

---

Top Contributors

[![fgsl](https://avatars.githubusercontent.com/u/128915?v=4)](https://github.com/fgsl "fgsl (22 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

httprequestrest

### Embed Badge

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

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

###  Alternatives

[aplus/http

Aplus Framework HTTP Library

2311.6M10](/packages/aplus-http)[emartech/escher

Library for HTTP request signing (PHP implementation)

20293.8k8](/packages/emartech-escher)[elementaryframework/water-pipe

URL routing framework and requests/responses handler for PHP

254.6k4](/packages/elementaryframework-water-pipe)

PHPackages © 2026

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