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

ActiveLibrary[API Development](/categories/api)

resnext/spotoption-api-client
=============================

PHP Client for SpotOption platform

v0.1.1(9y ago)2323MITPHPPHP &gt;=5.6

Since Oct 23Pushed 9y ago1 watchersCompare

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

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

SpotOption API Client.
======================

[](#spotoption-api-client)

API Client for binary options platform SpotOption.

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

[](#installation)

Install using Composer, doubtless.

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

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

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

```
$apiClient = new SpotOption\ApiClient(, , );
```

### Error handling

[](#error-handling)

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

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

### Configuration and customization

[](#configuration-and-customization)

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

Example:

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

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

Countries retrieving
--------------------

[](#countries-retrieving)

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

Campaigns retrieving
--------------------

[](#campaigns-retrieving)

This example retrieves all campaign with type CPA.

```
/** @var \SpotOption\Responses\GetCampaigns $response */
$response = $this->apiClient->getCampaigns(\SpotOption\Entities\Campaign::TYPE_CPA);
/** @var \SpotOption\Entities\Campaign[] $countries */
$countries = $response->getData();
```

Customer validation
-------------------

[](#customer-validation)

```
/** @var \SpotOption\Responses\ValidateCustomerResponse
$response = $apiClient->validateCustomer('email@domain.com', 'password');
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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 ~132 days

Total

2

Last Release

3404d ago

### Community

Maintainers

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

---

Top Contributors

[![lasayter](https://avatars.githubusercontent.com/u/16683031?v=4)](https://github.com/lasayter "lasayter (24 commits)")

---

Tags

campaignforexforex-tradingapiBinary OptionsSpotOption

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[theodo-group/llphant

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

1.7k371.6k6](/packages/theodo-group-llphant)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69734.4M145](/packages/algolia-algoliasearch-client-php)[avalara/avataxclient

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

528.3M7](/packages/avalara-avataxclient)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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