Trader PHP extension

PHP Trader

Trader PHP extension

The Trader extension is a free open source stock library, based on TA-Lib. It’s dedicated to trading software developers requiring to perform technical analysis of financial market data. Alongside many indicators like ADX, MACD, RSI, Stochastic, TRIX the candlestick pattern recognition and several vector arithmetic, and algebraic functions are present.

Required packages: php-pear (PECL), php5-dev, (php library).

To install PECL extensions:

sudo yum install php-pear, php5-dev


sudo apt-get install php-pear, php5-dev

Now, install Trader PHP extension:

sudo  pecl install trader


Add in the php.ini file the line:

if you can’t find php.ini file, try the following command to find its location:

php -i | grep ini

To check the extension try:

php -m | grep trader


You can find a list of Trader extension functions here:

Also a full documentation of Trader PHP extension exist here:

About This Author

I'm a software engineer with many years of experience, open source enthusiast, now I'm creating and contributing to awesome PHP web projects. I love coding as much as learning, and I enjoy trying new languages and patterns. My passion revolves around (but is not limited to) back-end development.

You are not signed in. Sign in to post comments.