PHPackages                             someline/rest-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. [HTTP &amp; Networking](/categories/http)
4. /
5. someline/rest-api-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

someline/rest-api-client
========================

An elegant and smart Rest API Client with OAuth2 authentication support. Build for Laravel and Someline Starter.

v1.2.4(7y ago)813.4k73MITPHPPHP &gt;=5.5.9

Since Jul 22Pushed 7y ago2 watchersCompare

[ Source](https://github.com/someline/rest-api-client)[ Packagist](https://packagist.org/packages/someline/rest-api-client)[ Docs](https://github.com/someline/rest-api-client)[ RSS](/packages/someline-rest-api-client/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (3)Versions (14)Used By (3)

Someline Rest API Client
========================

[](#someline-rest-api-client)

[![Latest Version](https://camo.githubusercontent.com/10ff7fbc530298ed33593b101652bdaf90ec19ae8bd603b6a3510065c75d8dae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736f6d656c696e652f726573742d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/someline/rest-api-client/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/da8c13aa7de5aec9f1da3f6a54596c38c26c13561721f60e4052121e4eed650b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f6d656c696e652f726573742d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/someline/rest-api-client)

Someline Starter API Client is an elegant and smart Rest API Client with OAuth2 authentication support.

Build for Laravel and [Someline Starter](https://starter.someline.com).

It can be used for accessing APIs created using [Someline Starter](https://starter.someline.com) framework.

Install
-------

[](#install)

### Via Composer

[](#via-composer)

Install composer package to your laravel project

```
composer require someline/rest-api-client
```

Add Service Provider to `config/app.php`

```
    'providers' => [
        ...
        Someline\Rest\RestClientServiceProvider::class,
        ...
    ],
```

Publishing config file.

```
php artisan vendor:publish
```

After published, config file for Rest Client is `config/rest-client.php`, you will need to config it to use Rest Client.

Usage
-----

[](#usage)

```
$restClient = new \Someline\Rest\RestClient('someline-starter');

$restClient->setOAuthUserCredentials([
    'username' => 'libern@someline.com',
    'password' => 'Abc12345',
]);
$restClient->withOAuthTokenTypeUser();

$response = $restClient->get("users")->getResponse();
if (!$restClient->isResponseStatusCode(200)) {
    $restClient->printResponseOriginContent();
    $responseMessage = $restClient->getResponseMessage();
    print_r($responseMessage);
} else {
    $responseData = $restClient->getResponseData();
    print_r($responseData);
}
```

Testing
-------

[](#testing)

```
phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/someline/rest-api-client/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Someline](https://github.com/libern)
- [All Contributors](https://github.com/someline/rest-api-client/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 98.2% 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 ~93 days

Recently: every ~232 days

Total

13

Last Release

2560d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v1.2.4PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/420da8717b27611ef8f553e2d143c4757e6e210fa56cc31fd6976b178956379b?d=identicon)[libern](/maintainers/libern)

---

Top Contributors

[![libern](https://avatars.githubusercontent.com/u/1830640?v=4)](https://github.com/libern "libern (56 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

apiclientlaravelrestoauth2someline-starter

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.9k3.8M1.1k](/packages/statamic-cms)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.8M228](/packages/backpack-crud)[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[lomkit/laravel-rest-api

A package to build quick and robust rest api for the Laravel framework.

60067.0k](/packages/lomkit-laravel-rest-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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