PHPackages                             isikiyski/fgc\_client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. isikiyski/fgc\_client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

isikiyski/fgc\_client
=====================

file\_get\_contents curlable wrapper

021PHP

Since Jan 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Sosomqk/fgc_client)[ Packagist](https://packagist.org/packages/isikiyski/fgc_client)[ RSS](/packages/isikiyski-fgc-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

fgc\_client
===========

[](#fgc_client)

Wrapper HTTP Client utilising file\_get\_contents in PHP

Requirements
============

[](#requirements)

- PHP &gt;= 8.0

Installation
============

[](#installation)

`composer require isikiyski/fgc_client`

Usage
=====

[](#usage)

```
$o = new \Isikiyski\Client\FGCClient('https://some-url');

$o->setHeaders([
    'Authorization' => 'Basic w231313331',
    'x-api-key' => 'rand',
    'Content-Type' => 'application/json',
]);

$payload = ["message" => "test"];

$o->setTimeout(60);

$o->post('', $payload);

if ($ec = $o->getErrorCode()) {
    echo $ec . PHP_EOL;
}
if ($em = $o->getErrorMessage()) {
    echo $em . PHP_EOL;
}

echo $o->getResponseHeaders() . PHP_EOL;
echo $o->getHttpStatusCode() . PHP_EOL;
echo $o->getRawResponse() . PHP_EOL;
//
// ....
//

```

Notes
=====

[](#notes)

Using this client instead of regular curl will be faster IF you destroy the curl handle on each request. However, reusing the curl handle resource will yield better results.

**Strongly suggest using this client in Swoole's coroutines - it yields 92% better performance than regular curl WITH reusing the curl handle resource.**

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 94.1% 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/2dfb8d9761082e6e9e29d17f681765042f646b41c0e61c26bbb216f2b562f64f?d=identicon)[Sosomqk](/maintainers/Sosomqk)

---

Top Contributors

[![Sosomqk](https://avatars.githubusercontent.com/u/16527814?v=4)](https://github.com/Sosomqk "Sosomqk (16 commits)")[![Misikiyski](https://avatars.githubusercontent.com/u/120389665?v=4)](https://github.com/Misikiyski "Misikiyski (1 commits)")

### Embed Badge

![Health badge](/badges/isikiyski-fgc-client/health.svg)

```
[![Health](https://phpackages.com/badges/isikiyski-fgc-client/health.svg)](https://phpackages.com/packages/isikiyski-fgc-client)
```

###  Alternatives

[codingfreaks/cf-cookiemanager

Manage cookies, scripts, and GDPR compliance on your Typo3 website with CodingFreaks Typo3 Cookie Manager. Customize cookie banners, streamline workflow, and enhance user experience. Ensure GDPR compliance and take control of cookie management with our Typo3 cookie management extension. Visit the official Typo3 Documentation page to learn more.

1625.8k](/packages/codingfreaks-cf-cookiemanager)

PHPackages © 2026

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