PHPackages                             lupecode/php-trader-interface - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lupecode/php-trader-interface

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lupecode/php-trader-interface
=============================

An interface to the PHP Trader extension.

1.0.5(5y ago)371.8k13GPL-3.0-or-laterPHPPHP &gt;=7.0.0CI failing

Since Jul 25Pushed 4y ago5 watchersCompare

[ Source](https://github.com/LupeCode/phpTraderInterface)[ Packagist](https://packagist.org/packages/lupecode/php-trader-interface)[ RSS](/packages/lupecode-php-trader-interface/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (3)Versions (13)Used By (0)

PHP Trader Interface
====================

[](#php-trader-interface)

This is an interface to the PHP Trader Extension. The PHP Trader Extension is available from . The extension and the source for it can be downloaded there.

### Requires the PHP Trader Extension to be installed.

[](#requires-the-php-trader-extension-to-be-installed)

This project is just an interface to that extension, and does not work without it.

If you cannot install the PECL extension, try the [PHP Trader Native](https://github.com/LupeCode/phpTraderNative) project instead.

### Requires PHP 7.0.0 or newer

[](#requires-php-700-or-newer)

Variable types are set on all function parameters.

### Requires PECL Trader 0.4.1 or newer.

[](#requires-pecl-trader-041-or-newer)

If you are using version 0.4.0, see the branch `trader-0.4.0` for that.

Purpose
-------

[](#purpose)

This package is meant to help when using the Trader PECL package. This is helpful if you do not have the code stub for the Trader Extension. Loading this interface will provide your IDE with the function information and auto completing.

How to use
----------

[](#how-to-use)

Lets assume that you want to generate a correlation indicator. Instead of using `trader_correl($Open, $Close, 30)`You can now use the exact named `\LupeCode\phpTraderInterface\Trader::correl($Open, $Close, 30)`or the friendly named `\LupeCode\phpTraderInterface\Trader::pearsonCorrelationCoefficient($Open, $Close, 30)`

Metrics &amp; Coverage
----------------------

[](#metrics--coverage)

### PHP Metrics Report

[](#php-metrics-report)

To see the current report of metrics by PHP Metrics, visit [Metrics](https://projects.lupecode.com/phpTraderInterface/metrics/)

### PHP Unit Coverage

[](#php-unit-coverage)

To see the current report of coverage by PHP Unit, visit [Coverage](https://projects.lupecode.com/phpTraderInterface/logs/report/)

### PHP Unit Test Results

[](#php-unit-test-results)

- PHP 7.0 NTS [\[XML\]](https://projects.lupecode.com/phpTraderInterface/logs/logfile-7.0NTS.xml) [\[TXT\]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.0NTS.txt) [\[HTML\]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.0NTS.html)
- PHP 7.0 TS [\[XML\]](https://projects.lupecode.com/phpTraderInterface/logs/logfile-7.0TS.xml) [\[TXT\]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.0TS.txt) [\[HTML\]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.0TS.html)
- PHP 7.1 NTS [\[XML\]](https://projects.lupecode.com/phpTraderInterface/logs/logfile-7.1NTS.xml) [\[TXT\]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.1NTS.txt) [\[HTML\]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.1NTS.html)
- PHP 7.1 TS [\[XML\]](https://projects.lupecode.com/phpTraderInterface/logs/logfile-7.1TS.xml) [\[TXT\]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.1TS.txt) [\[HTML\]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.1TS.html)
- PHP 7.2 NTS [\[XML\]](https://projects.lupecode.com/phpTraderInterface/logs/logfile-7.2NTS.xml) [\[TXT\]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.2NTS.txt) [\[HTML\]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.2TS.html)
- PHP 7.2 TS [\[XML\]](https://projects.lupecode.com/phpTraderInterface/logs/logfile-7.2TS.xml) [\[TXT\]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.2TS.txt) [\[HTML\]](https://projects.lupecode.com/phpTraderInterface/logs/testdox-7.2TS.html)

License
-------

[](#license)

Copyright (C) Lupe Code, LLC.; Joshua Lopez

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see .

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 90.8% 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 ~172 days

Recently: every ~426 days

Total

11

Last Release

1862d ago

Major Versions

0.4.1 → 1.0.02016-08-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/fba80d9935d5f32af4ecba3593725ec840bbac6af1cd345260bb0937757df7b0?d=identicon)[LupeCode](/maintainers/LupeCode)

---

Top Contributors

[![jb-lopez](https://avatars.githubusercontent.com/u/8528028?v=4)](https://github.com/jb-lopez "jb-lopez (69 commits)")[![vortextangent](https://avatars.githubusercontent.com/u/1971148?v=4)](https://github.com/vortextangent "vortextangent (3 commits)")[![deepsourcebot](https://avatars.githubusercontent.com/u/60907429?v=4)](https://github.com/deepsourcebot "deepsourcebot (2 commits)")[![jackwh](https://avatars.githubusercontent.com/u/627533?v=4)](https://github.com/jackwh "jackwh (2 commits)")

---

Tags

phpphp-trader-extensionstock-analysisstock-marketta-libtrader-extensiontrader-pecl

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lupecode-php-trader-interface/health.svg)

```
[![Health](https://phpackages.com/badges/lupecode-php-trader-interface/health.svg)](https://phpackages.com/packages/lupecode-php-trader-interface)
```

###  Alternatives

[mmoreram/extractor

Extractor project for php

21132.0k8](/packages/mmoreram-extractor)[magefan/module-auto-related-product

Extend native Magento Up-Sells, Cross-Sells, and Related products

1834.7k2](/packages/magefan-module-auto-related-product)[yidas/pagination

PHP Paginator with Pager Widget (pure PHP, CI, Yii, Laravel support)

2516.4k](/packages/yidas-pagination)[f-oris/easy-bytedance-miniapp

字节跳动小程序SDK

151.8k](/packages/f-oris-easy-bytedance-miniapp)

PHPackages © 2026

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