PHPackages                             glw/api-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. [API Development](/categories/api)
4. /
5. glw/api-client

ActiveLibrary[API Development](/categories/api)

glw/api-client
==============

A Composer library for handling API requests using cURL.

115PHP

Since Aug 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Gumillar88/api-client)[ Packagist](https://packagist.org/packages/glw/api-client)[ RSS](/packages/glw-api-client/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

glw/api-client
==============

[](#glwapi-client)

a PHP library for handling API requests using cURL. It supports GET, POST, PUT, DELETE, and UPDATE operations.

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

[](#installation)

You can install the library via Composer:

```
composer require glw/api-client
```

Configuration Copy the .env.example to .env and set your API\_URL and API\_TOKEN:

```
API_URL=https://api.example.com
API_TOKEN=your_api_token_here
```

Example usage in PHP Native:

```
require 'vendor/autoload.php';

use Glw\ApiClient\ApiClient;

$client = new ApiClient();

// GET request
$response = $client->get('/endpoint');

// POST request
$response = $client->post('/endpoint', ['key' => 'value']);

// PUT request
$response = $client->put('/endpoint', ['key' => 'value']);

// DELETE request
$response = $client->delete('/endpoint');

// UPDATE request
$response = $client->update('/endpoint', ['key' => 'value']);

echo json_encode($response);
```

Example usage in Laravel:

```
namespace App\Http\Controllers;

use Glw\ApiClient\ApiClient;

class ApiController extends Controller
{
    public function index()
    {
        $client = new ApiClient();

        $response = $client->get('/track');
        return response()->json($response);
    }
}
```

Example usage in CodeIgneter:

```
use Glw\ApiClient\ApiClient;

class ApiController extends CI_Controller
{
    public function index()
    {
        $client = new ApiClient();

        $response = $client->get('/track');
        echo json_encode($response);
    }
}
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 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://avatars.githubusercontent.com/u/49674038?v=4)[gumilar88](/maintainers/gumilar88)[@Gumilar88](https://github.com/Gumilar88)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/glw-api-client/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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