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 2w 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 31% 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

3186d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9474052?v=4)[Bryan](/maintainers/arikin)[@arikin](https://github.com/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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M946](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k36](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1933.1k4](/packages/aimeos-prisma)

PHPackages © 2026

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