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 1mo ago

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

Maintenance28

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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://www.gravatar.com/avatar/5d1722634021360252129c90883fb05b7958fe59e392887741f40936c6af5e90?d=identicon)[gumilar88](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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