PHPackages                             arikin/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. arikin/api\_client

ActiveLibrary[API Development](/categories/api)

arikin/api\_client
==================

Basic API client

0.1.4(8y ago)019MITPHP

Since Oct 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/arikin/api_client)[ Packagist](https://packagist.org/packages/arikin/api_client)[ RSS](/packages/arikin-api-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

api\_client
===========

[](#api_client)

Simple PHP API Client using GuzzleHttp 6

### Overview

[](#overview)

A RESTful API in PHP 7 and the new GuzzleHttp 6. This is a conversion of an old project from version 4 of guzzle to the latest version 6 [guzzlehttp/guzzle](https://github.com/guzzle/guzzle/)

Returns an API object of Guzzle. Create a class that understands the API commands for the given API server. Then use this API object to execute get, post, and etc.

### Installation

[](#installation)

Require it in your project

```
php composer.phar require arikin/api_client
```

### Usage

[](#usage)

Require the class and initialize it with the API server's base URL and the credentials.

```
require_once __DIR__ . '/vendor/autoload.php';

use Arikin\ApiClient;

$client = new ApiClient(array(
    'url' => 'http://api.server.net',
    'user' => 'api_username',
    'pass' => 'secret_password'
 ));

$resp_obj = $client->api->get('/user/list');
$code = $resp_obj->getStatusCode();
$reason = $resp_obj->getReasonPhrase();

$body_string = (string) $resp_obj->getBody();
$data_array = json_decode($body_string,TRUE);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

3139d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dc50d572ad9fdedb73312c9a431a0b9158cfdad85057c97366bdd1142d1c442?d=identicon)[arikin](/maintainers/arikin)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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