PHPackages                             resnext/solaris-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. resnext/solaris-api-client

ActiveLibrary[API Development](/categories/api)

resnext/solaris-api-client
==========================

PHP Client for Solaris platform

v0.1.6(9y ago)1595MITPHPPHP &gt;=5.5CI failing

Since Jul 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/resnext/solaris-api-client)[ Packagist](https://packagist.org/packages/resnext/solaris-api-client)[ RSS](/packages/resnext-solaris-api-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (5)Versions (7)Used By (0)

Solaris API Client.
===================

[](#solaris-api-client)

API Client for binary options platform Solaris.

Installation
------------

[](#installation)

Install using Composer, doubtless.

```
$ composer require resnext/solaris-api-client
```

General API Client usage.
-------------------------

[](#general-api-client-usage)

Your can configure used HTTP client using $options param of ApiClient constructor.

### Error handling

[](#error-handling)

Each method of \\Solaris\\ApiClient can return response object (instance of \\Solaris\\Response) or throws two kind of exceptions.

1. \\Solaris\\ServerException Server-side exception assigned with invalid data received of impossible operation is requested.
2. \\Solaris\\ClientException Client-side exception means API Client cannot connect to Solaris servers or receive valid response with any reasons.

### Configuration and customization

[](#configuration-and-customization)

Example:

```
$httpClient = new GuzzleHttp\Client([
   GuzzleHttp\RequestOptions::CONNECT_TIMEOUT => 2,
]);

$apiClient = new \Solaris\ApiClient(, , , [
    'httpClient' => $httpClient,
]);
```

Get available countries list
----------------------------

[](#get-available-countries-list)

For customer adding you need specify countryISO 3166-1 code (ex.: en, us, gb). You can get available for registration countries list as bellow:

```
/** @var \Solaris\Responses\GetCountriesResponse $response */
$response = $apiClient->getCountries();
/** @var \Solaris\Entities\Country[] $countries */
$countries = $response->getCountries();
```

Add customer
------------

[](#add-customer)

Customer's adding is main method of any trade platform...

```
$request = new \Solaris\Requests\AddCustomerRequest([
    'firstName' => 'John',
    'lastName' => 'Smith',
    'email' => 'john.smith@domain.com',
    'phone' => '123456789',
    'country' => 'cz',
    'currency' => 'USD',
    'password' => 'qwerty',
]);

/** @var \Solaris\Responses\AddCustomerResponse $response */
$response = $apiClient->addCustomer($request);
```

Get customer auto-login URL and auth key.
-----------------------------------------

[](#get-customer-auto-login-url-and-auth-key)

It is really easy:

```
$request = new \Solaris\Requests\GetCustomerAuthKeyRequest(['email' => 'john.smith@domain.com']);

/**
 * @var \Solaris\Responses\GetCustomerAuthKeyResponse $response
 */
$response = $apiClient->getCustomerAuthKey($request);

echo $response->getAuthUrl();
```

Deposits retrieving
-------------------

[](#deposits-retrieving)

```
/** @var \Solaris\Responses\GetDepositsResponse $response */
$response = $apiClient->getDeposits();
/** @var \Solaris\Entities\Deposit[] $deposits */
$deposits = $response->getDeposits();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% 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 ~17 days

Total

6

Last Release

3510d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3701798abcce2c6ebf807c4ffe38d9c45c767aabe464b6bc24a58674aeb771d3?d=identicon)[AlexanderEmelyanov](/maintainers/AlexanderEmelyanov)

---

Top Contributors

[![alexander-emelyanov](https://avatars.githubusercontent.com/u/1540608?v=4)](https://github.com/alexander-emelyanov "alexander-emelyanov (18 commits)")[![lasayter](https://avatars.githubusercontent.com/u/16683031?v=4)](https://github.com/lasayter "lasayter (1 commits)")

---

Tags

apiBinary Optionssolaris

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[bushlanov-dev/max-bot-api-client-php

Max Bot API Client library

281.6k](/packages/bushlanov-dev-max-bot-api-client-php)

PHPackages © 2026

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