PHPackages                             alexander-emelyanov/anyoption-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. alexander-emelyanov/anyoption-api-client

ActiveLibrary[API Development](/categories/api)

alexander-emelyanov/anyoption-api-client
========================================

PHP Client for AnyOption platform

v0.1.5(10y ago)01.9k[1 issues](https://github.com/alexander-emelyanov/anyoption-api-client/issues)MITPHPPHP &gt;=5.5

Since Jan 27Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (9)Used By (0)

AnyOption API Client
====================

[](#anyoption-api-client)

[![Build Status](https://camo.githubusercontent.com/df30297c0b871a0b27c6cc9095f3a8314d74057a9367f5c8b2b1ca910c1641aa/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f616c6578616e6465722d656d656c79616e6f762f616e796f7074696f6e2d6170692d636c69656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/alexander-emelyanov/anyoption-api-client)[![StyleCI](https://camo.githubusercontent.com/907eed271e27e7144c2fc5f8016ad2f60d599cfe3bcdc64373e1df7bfdebc527/68747470733a2f2f7374796c6563692e696f2f7265706f732f34393432343531352f736869656c643f)](https://styleci.io/repos/49424515)[![Code Climate](https://camo.githubusercontent.com/5b3adf1da77345e890403c52c2f654e35bd3520daa1ab480f429bb870d0c75a5/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f616c6578616e6465722d656d656c79616e6f762f616e796f7074696f6e2d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/alexander-emelyanov/anyoption-api-client)

This repository contains PHP Client for AnyOption platform.

AnyOption is the world's first and largest trading platform for binary options, one touch options and dozens of other advanced derivatives.

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

[](#installation)

Install using [Composer](http://getcomposer.org), doubtless.

```
$ composer require alexander-emelyanov/anyoption-api-client
```

Usage
-----

[](#usage)

First, you need to create a client object to connect to the AnyOption servers. You will need to acquire an API username and API password for your app first from AnyOption, then pass the credentials to the client object for logging in.

```
$client = new \AnyOption\ApiClient([
    'apiUser' => [
        'userName' => '',
        'password' => ''
    ],
    'url' => ''
]);
```

Also your IP address must be added to whitelist of AnyOption platform. Feel free to contact me for more details.

Assuming your credentials is valid and your IP is whitelisted, you are good to go!

### Insert user command

[](#insert-user-command)

```
$command = new \AnyOption\Commands\InsertUser([
    'utcOffset' => 0,
    'locale' => 'en',
    'register' => [
        'firstName' => 'John',
        'lastName' => 'Smith',
        'email' => 'john.smith@my.com',
        'mobilePhone' => '493025922774',
        'password' => 'qwerty',
        'password2' => 'qwerty',
        'countryName' => 'DEU',
        'ip' => '127.0.0.1',
        'terms' => '',
    ],
]);

/** @var \AnyOption\Responses\InsertUser $response */
$response = $client->call($command);
```

Note: full list of allowed countries you can get using:

```
$countries = \AnyOption\Dictionaries::countries();
```

### GetFTDUsersByDate

[](#getftdusersbydate)

```
$command = new \AnyOption\Commands\GetFTDUsersByDate([
    'locale' => 'en',
    'dateRequest' => date('Y-m-d'),
]);

/** @var \AnyOption\Responses\GetFTDUsersByDate $response */
$response = $client->call($command);
```

Contribution
------------

[](#contribution)

You are welcome!

### Running tests

[](#running-tests)

You can run unit tests via [PHPUnit](http://phpunit.de):

```
$ vendor/bin/phpunit tests
```

Note: you should install dev dependencies for this package using

```
$ composer update --dev
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

6

Last Release

3757d 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 (60 commits)")

---

Tags

apiBinary OptionsAnyOption

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexander-emelyanov-anyoption-api-client/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[theodo-group/llphant

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

1.7k371.6k6](/packages/theodo-group-llphant)[files.com/files-php-sdk

Files.com PHP SDK

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

301.6M11](/packages/clicksend-clicksend-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[volcengine/volcengine-php-sdk

118.7k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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