Download the PHP package timirey/trader-php without Composer
On this page you can find all versions of the php package timirey/trader-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download timirey/trader-php
More information about timirey/trader-php
Files in timirey/trader-php
Package trader-php
Short Description PHP wrapper for the trader extension, providing access to technical analysis indicators.
License MIT
Informations about the package trader-php
Trader PHP
Trader PHP is a PHP library that serves as a user-friendly wrapper for the Trader Extension. It provides developers with easy access to a wide range of technical analysis indicators and functions, enabling seamless integration of financial analytics into trading and finance applications.
With support for commonly used indicators like Moving Averages (SMA, EMA), Relative Strength Index (RSI), MACD, and more, this library simplifies the process of building financial tools, algorithmic trading systems, and real-time data analysis platforms.
Table of Contents
- Features
- Installation
- Basic Usage
- Simple Moving Average (SMA)
- Relative Strength Index (RSI)
- Available Indicators
- Error Handling
- License
- Reference
Features
- Easy-to-use wrapper around PHP’s Trader Extension.
- Support for over 30 technical analysis indicators such as SMA, EMA, RSI, MACD, and more.
- Real-time trading workflows with built-in error handling.
- Ideal for building financial applications, trading bots, and analytics tools.
Installation
You can easily install the library using Composer:
Make sure that the PHP Trader Extension is installed and enabled on your PHP setup.
Basic Usage
Once installed, you can quickly start using the indicators in your PHP application.
Example 1: Simple Moving Average (SMA)
Example 2: Relative Strength Index (RSI)
Available Indicators
The library provides access to a wide variety of technical analysis functions supported by the PHP Trader extension. Some of the most commonly used indicators include:
- SMA - Simple Moving Average
- EMA - Exponential Moving Average
- RSI - Relative Strength Index
- MACD - Moving Average Convergence Divergence
- ADX - Average Directional Index
- ATR - Average True Range
- Bollinger Bands
- CCI - Commodity Channel Index
- MFI - Money Flow Index
- OBV - On-Balance Volume
- Stochastic Oscillator
For a full list of available functions, refer to the official PHP Trader documentation.
Error Handling
To handle errors, you can catch BadFunctionCallException
exceptions that occur when invalid data is passed to any indicator.
License
This library is licensed under the MIT License. See the LICENSE file for more information.
Reference
For more detailed documentation, please refer to official PHP Trader documentation.
All versions of trader-php with dependencies
ext-trader Version *