PHPackages                             gonon/core - 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. gonon/core

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

gonon/core
==========

Gonon Core Foundation

1.0.0(1mo ago)1130↓83.3%4MITPHPPHP ^8.2.0CI passing

Since Jul 9Pushed 1mo agoCompare

[ Source](https://github.com/GononLabs/core)[ Packagist](https://packagist.org/packages/gonon/core)[ Docs](https://github.com/GononLabs/core)[ RSS](/packages/gonon-core/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (2)Used By (4)

Gonon Core
==========

[](#gonon-core)

[![Build](https://camo.githubusercontent.com/48a320df423397638689fade391ecb959ea5c630014544184291ad202e9cb667/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f476f6e6f6e4c6162732f636f72652f63692e796d6c3f6272616e63683d6d61696e)](https://github.com/GononLabs/core/actions)[![Coverage](https://camo.githubusercontent.com/15f9821b8ccff496eedcb06d1477254391d1efc79714b8d31aa5269be49a1893/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f476f6e6f6e4c6162732f636f7265)](https://codecov.io/gh/GononLabs/core)[![PHP Version](https://camo.githubusercontent.com/c3318fb1993b0f3b763c0fe3ae62918b6321ce1c0481e9ee530fcfe937a4a07e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f676f6e6f6e2f636f7265)](https://packagist.org/packages/gonon/core)[![License](https://camo.githubusercontent.com/bf8560b419acc5984b98566b850f6ab2aeb78e07a6c898e03e348e19fa9856fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f676f6e6f6e2f636f7265)](https://packagist.org/packages/gonon/core)[![Latest Version](https://camo.githubusercontent.com/1774ae19c2b72880ca24f33b4d6a35ccaab1dd52051c65451e513528e0f7a3a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676f6e6f6e2f636f7265)](https://packagist.org/packages/gonon/core)[![Downloads](https://camo.githubusercontent.com/745f84ccdd9b32d76353b814532807390af1087f4f00c5e16ca525000e47f114/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676f6e6f6e2f636f7265)](https://packagist.org/packages/gonon/core)

Introduction
------------

[](#introduction)

Gonon Core is the foundation package for the entire Gonon ecosystem. It provides reusable, vendor-agnostic, and framework-agnostic infrastructure shared by every Gonon SDK.

Features
--------

[](#features)

- HTTP Abstraction via PSR interfaces
- Configuration management
- Unified Exception hierarchy
- Retry mechanisms (Exponential Backoff, Fixed Delay)
- Collections and DTO foundations
- Authentication contracts
- Testing utilities

Requirements
------------

[](#requirements)

- PHP 8.2 or higher

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

[](#installation)

You can install the package via composer:

```
composer require gonon/core
```

Configuration
-------------

[](#configuration)

Gonon Core uses immutable configuration objects.

```
use Gonon\Core\Configuration\Config;
use Gonon\Core\Configuration\Environment;

$config = new Config(
    environment: Environment::Production,
    timeout: 30,
);
```

Quick Start
-----------

[](#quick-start)

Core is primarily used by SDKs to build robust HTTP integrations.

```
// 1. Choose your transport adapter (e.g. from gonon/http-symfony)
$adapter = new \Gonon\Http\Symfony\SymfonyHttpClient();

// 2. (Optional) Configure a retry strategy
$retry = new \Gonon\Core\Retry\ExponentialBackoffStrategy(maxAttempts: 3, baseDelayMs: 500);

// 3. Initialize the Orchestrator
$client = new \Gonon\Core\Http\Client(
    adapter: $adapter,
    retryStrategy: $retry,
    defaultHeaders: ['User-Agent' => 'Gonon-SDK/1.0']
);

// 4. Send Request (Middlewares, Retries, and Logging run automatically!)
$response = $client->sendRequest($request);
```

Examples
--------

[](#examples)

Check the `examples/` directory for full usage examples.

API Reference
-------------

[](#api-reference)

The full API reference is available within the source code via PHPDoc annotations.

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance90

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

47d ago

### Community

Maintainers

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

---

Top Contributors

[![nurfaizfy](https://avatars.githubusercontent.com/u/36664080?v=4)](https://github.com/nurfaizfy "nurfaizfy (1 commits)")

---

Tags

api-clientgononhttp-clientphpsdkhttpapisdkcoregonon

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gonon-core/health.svg)

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

###  Alternatives

[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k886.6M9.8k](/packages/symfony-http-kernel)[symfony/http-client

Provides powerful methods to fetch HTTP resources synchronously or asynchronously

2.0k347.8M5.7k](/packages/symfony-http-client)[zircote/swagger-php

Generate interactive documentation for your RESTful API using PHP attributes (preferred) or PHPDoc annotations

5.3k148.6M674](/packages/zircote-swagger-php)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.5M254](/packages/api-platform-metadata)[mimmi20/browser-detector

Library to detect Browsers and Devices

49158.4k5](/packages/mimmi20-browser-detector)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

10250.3k6](/packages/bitrix24-b24phpsdk)

PHPackages © 2026

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