PHPackages                             ienaga/simple-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. ienaga/simple-api-client

ActiveLibrary[API Development](/categories/api)

ienaga/simple-api-client
========================

simple api library.

1.0.0(8y ago)06.1k↓88.9%1MITPHP

Since Aug 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ienaga/SimpleApiClient)[ Packagist](https://packagist.org/packages/ienaga/simple-api-client)[ Docs](https://github.com/ienaga/SimpleApiClient)[ RSS](/packages/ienaga-simple-api-client/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (1)

SimpleApiClient
===============

[](#simpleapiclient)

simple api library.

[![UnitTest](https://github.com/ienaga/SimpleApiClient/actions/workflows/integration.yml/badge.svg)](https://github.com/ienaga/SimpleApiClient/actions/workflows/integration.yml)[![PHPMD](https://github.com/ienaga/SimpleApiClient/actions/workflows/phpmd.yml/badge.svg)](https://github.com/ienaga/SimpleApiClient/actions/workflows/phpmd.yml)[![Latest Stable Version](https://camo.githubusercontent.com/79eeac379ec181be90d0f6108e010365fd110fd67ee33d1ca3f50b9633f5367c/68747470733a2f2f706f7365722e707567782e6f72672f69656e6167612f73696d706c652d6170692d636c69656e742f762f737461626c65)](https://packagist.org/packages/ienaga/simple-api-client) [![Total Downloads](https://camo.githubusercontent.com/93e4e18b624d2c8eb80ba782b22c522ceb6bf2944890709c49e1e98f75214b6b/68747470733a2f2f706f7365722e707567782e6f72672f69656e6167612f73696d706c652d6170692d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/ienaga/simple-api-client) [![Latest Unstable Version](https://camo.githubusercontent.com/f4569cb45f0db211f66ec76a20298e00af20be2f05dae0b4f67172da3a2485aa/68747470733a2f2f706f7365722e707567782e6f72672f69656e6167612f73696d706c652d6170692d636c69656e742f762f756e737461626c65)](https://packagist.org/packages/ienaga/simple-api-client) [![License](https://camo.githubusercontent.com/432b3f961d29c57b62a4a4781dcdbcc6b4202cfabcaf8a6b71e250b3e1fbba09/68747470733a2f2f706f7365722e707567782e6f72672f69656e6167612f73696d706c652d6170692d636c69656e742f6c6963656e7365)](https://packagist.org/packages/ienaga/simple-api-client)

Composer
========

[](#composer)

```
{
    "require": {
       "ienaga/simple-api-client": "*"
    }
}
```

Usage
=====

[](#usage)

GET (AWS ElasticSearch)
-----------------------

[](#get-aws-elasticsearch)

```
$client = new \SimpleApi\Client();
$json = $client
    ->setEndPoint("https://search-****.ap-northeast-1.es.amazonaws.com")
    ->setPath("/index_name/type_name/_search?q=user:kimchy")
    ->send();
```

POST (Google FireBase)
----------------------

[](#post-google-firebase)

```
$client = new \SimpleApi\Client();
$json = $client
    ->addHeader("Authorization", "key=XXXXXXX")
    ->setEndPoint("https://fcm.googleapis.com/fcm/send")
    ->setMethod("POST")
    ->add("to", "INSTANCE_ID")
    ->add("priority", "high")
    ->add("content_available", true)
    ->add("notification", [
        "title" => "title",
        "body"  => "body",
        "badge" => 1
    ])
    ->send();
```

PUT (AWS ElasticSearch)
-----------------------

[](#put-aws-elasticsearch)

```
$client = new \SimpleApi\Client();
$json = $client
    ->setEndPoint("https://search-****.ap-northeast-1.es.amazonaws.com")
    ->setPath("/index_name/type_name")
    ->setMethod("PUT")
    ->add("status", 2)
    ->send();
```

DELETE (AWS ElasticSearch)
--------------------------

[](#delete-aws-elasticsearch)

```
$client = new \SimpleApi\Client();
$json = $client
    ->setEndPoint("https://search-****.ap-northeast-1.es.amazonaws.com")
    ->setPath("/index_name")
    ->setMethod("DELETE")
    ->send();
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 83.6% 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

3235d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4123454?v=4)[Toshiyuki Ienaga](/maintainers/ienaga)[@ienaga](https://github.com/ienaga)

---

Top Contributors

[![thomas-sonicmoov](https://avatars.githubusercontent.com/u/84434672?v=4)](https://github.com/thomas-sonicmoov "thomas-sonicmoov (61 commits)")[![ienaga](https://avatars.githubusercontent.com/u/4123454?v=4)](https://github.com/ienaga "ienaga (11 commits)")[![Yukio-Chinone](https://avatars.githubusercontent.com/u/27767364?v=4)](https://github.com/Yukio-Chinone "Yukio-Chinone (1 commits)")

---

Tags

api-clientphpapiawselasticsearchfirebase

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.5k](/packages/m165437-laravel-blueprint-docs)[okamos/php-ses

An Amazon SES api for PHP. Support signature version 4

2122.9k](/packages/okamos-php-ses)[mikemadisonweb/yii2-elasticsearch

Yii2 extension for integration with Elasticsearch version 5.0 and above.

164.1k](/packages/mikemadisonweb-yii2-elasticsearch)

PHPackages © 2026

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