PHPackages                             kenshodigital/chart - 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. kenshodigital/chart

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

kenshodigital/chart
===================

Calculates technical indicators for technical analysis.

2.2.0(2mo ago)446↓50%MITPHPPHP ^8.2

Since Jul 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/kenshodigital/chart)[ Packagist](https://packagist.org/packages/kenshodigital/chart)[ RSS](/packages/kenshodigital-chart/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (9)Used By (0)

kenshō chart
============

[](#kenshō-chart)

[![Tests](https://github.com/kenshodigital/chart/actions/workflows/tests.yml/badge.svg)](https://github.com/kenshodigital/chart/actions/workflows/tests.yml)

Calculates [technical indicators](https://en.wikipedia.org/wiki/Technical_indicator) in PHP.

General
-------

[](#general)

- [PHP 8.2](https://www.php.net/releases/8.2/en.php), [PHP 8.3](https://www.php.net/releases/8.3/en.php), [PHP 8.4](https://www.php.net/releases/8.4/en.php), [PHP 8.5](https://www.php.net/releases/8.4/en.php)
- Minimal dependencies.
- Uses [brick/math](https://github.com/brick/math) for arbitrary precision numbers.
- Avoids redundant calculations and keeps the overall complexity low.
- Unit- and integration tested against [other libraries](https://github.com/bennycode/trading-signals) and [real-world data](https://www.alphavantage.co).

### Audience

[](#audience)

The library assumes a basic understanding of [technical analysis](https://en.wikipedia.org/wiki/Technical_analysis) and how to use these technical indicators.

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

[](#installation)

```
composer require kenshodigital/chart ^2.2
```

Usage
-----

[](#usage)

- [Prepare chart](#prepare-chart)
- [Calculate individual indicators](#calculate-individual-indicators)
- [Calculate all indicators](#calculate-all-indicators)

### Prepare chart

[](#prepare-chart)

```
