PHPackages                             nysschens/tradeapp-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. nysschens/tradeapp-api-client

ActiveLibrary[API Development](/categories/api)

nysschens/tradeapp-api-client
=============================

PHP Guzzle API Client for Trade Platforms

11PHP

Since Dec 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/nysschens/tradeapp-api-client)[ Packagist](https://packagist.org/packages/nysschens/tradeapp-api-client)[ RSS](/packages/nysschens-tradeapp-api-client/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

TradeApp API Client
===================

[](#tradeapp-api-client)

A skeleton repo of a PHP Guzzle API Client for Laravel to consume trading platform data.

TradeApp is an independent API client using Guzzle 7, intended for consuming data from various Global Trading Platforms.

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

[](#installation)

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

```
$ composer require nysschens/tradeapp-api-client
```

Usage
-----

[](#usage)

First, you'll need to create a client object to connect to the trading platform servers with. You will need an API username and password from whatever trade platform you subscribe to. Ask your broker for that info. Then pass those credentials into the client object for logging in, like this.

```
$client = new \TradeApp\ApiClient("https://:@");
```

Assuming your credentials are valid, you are good to go!

### Get countries list

[](#get-countries-list)

```
/** @var \TradeApp\Responses\Country[] $countries */
$countries = $client->countries();
```

### Register a new customer

[](#register-a-new-customer)

```
$request = new TradeApp\Requests\Register([
    'firstName' => 'John',
    'lastName' => 'Smith',
    'email' => 'john.smith@gmail.com',
    'confirmed' => 1,
    'password' => 'qwerty',
    'phone' => '+123456789',
    'country' => 'gb',
    'locale' => 'en-GB',
    'params' => [],
    'lead' => 0,
]);

/** @var \TradeApp\Responses\Register $response */
$response = $client->register($request);
```

### Login as user

[](#login-as-user)

```
$request = new \TradeApp\Requests\Login([
    'email' => 'nysschens@gmail.com',
    'password' => 'qwerty',
]);

/** @var \TradeApp\Responses\Login $response */
$response = $client->login($request);
```

### Get user info

[](#get-user-info)

```
$request = new \TradeApp\Requests\Login([
    'email' => 'john.smith@gmail.com',
    'password' => 'qwerty',
]);

/** @var \TradeApp\Responses\UserInfo $response */
$response = $client->getUserInfo($request);
```

### Running tests

[](#running-tests)

Run unit tests via [PHPUnit](http://phpunit.de):

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

Note: Install dev dependencies for this package with

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/614422?v=4)[Desmond](/maintainers/nysschens)[@nysschens](https://github.com/nysschens)

---

Top Contributors

[![nysschens](https://avatars.githubusercontent.com/u/614422?v=4)](https://github.com/nysschens "nysschens (1 commits)")

### Embed Badge

![Health badge](/badges/nysschens-tradeapp-api-client/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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