PHPackages                             fcsapi/rest - 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. fcsapi/rest

ActiveLibrary[API Development](/categories/api)

fcsapi/rest
===========

PHP REST API client for Forex, Cryptocurrency, and Stock market data from FCS API

4.0.0(4mo ago)611MITPHPPHP &gt;=7.4

Since Dec 25Pushed 4mo ago1 watchersCompare

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

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

FCSAPI - PHP REST Client
========================

[](#fcsapi---php-rest-client)

**PHP** REST API client library for **Forex**, **Cryptocurrency**, and **Stock** market data from [FCS API](https://fcsapi.com).

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![PHP Version](https://camo.githubusercontent.com/6eff5053a32c9e0bcc0982c4f118ef689cad7831a3d982767aae3901bf67313c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344372e342d626c75652e737667)](https://php.net)[![Packagist](https://camo.githubusercontent.com/b6cbfb8893114edad0478b57db3f88f72d0ae5b57ddd80c7b843a1fa963b94c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6663736170692f726573742e737667)](https://packagist.org/packages/fcsapi/rest)

Features
--------

[](#features)

- **Forex API** - 4000+ currency pairs, real-time rates, commodities, historical data, technical analysis
- **Crypto API** - 50,000+ coins from major exchanges (Binance, Coinbase, etc.), market cap, rank, coin data
- **Stock API** - 125,000+ global stocks, indices, earnings, financials, dividends
- **Easy to Use** - Simple method calls for all API endpoints
- **Multiple Auth Methods** - API key, IP whitelist, or secure token-based authentication
- **PSR-4 Autoloading** - Composer compatible

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

[](#installation)

### Composer (Recommended)

[](#composer-recommended)

```
composer require fcsapi/rest
```

### Manual Installation

[](#manual-installation)

1. Download or clone this repository
2. Include the autoloader or require files manually

```
require_once 'path/to/rest-api-php/src/FcsApi.php';
require_once 'path/to/rest-api-php/src/Forex.php';  // For Forex
require_once 'path/to/rest-api-php/src/Crypto.php'; // For Crypto
require_once 'path/to/rest-api-php/src/Stock.php';  // For Stock
```

Quick Start
-----------

[](#quick-start)

```
