PHPackages                             romulodl/bollinger-bands - 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. romulodl/bollinger-bands

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

romulodl/bollinger-bands
========================

calculate Bollinger Bands without the PECL trader extension

v1.0.0(5y ago)51461[1 PRs](https://github.com/romulodl/bollinger-bands/pulls)1Apache-2.0PHPCI passing

Since Jun 10Pushed 3w ago2 watchersCompare

[ Source](https://github.com/romulodl/bollinger-bands)[ Packagist](https://packagist.org/packages/romulodl/bollinger-bands)[ RSS](/packages/romulodl-bollinger-bands/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (4)Used By (1)

Bollinger Bands
===============

[](#bollinger-bands)

Calculate the values of the Bollinger Bands from giving values.

[![Bollinger-bands](https://github.com/romulodl/bollinger-bands/workflows/BollingerBands/badge.svg)](https://github.com/romulodl/bollinger-bands/workflows/BollingerBands/badge.svg)

Instalation
-----------

[](#instalation)

```
composer require romulodl/bollinger-bands

```

or add `romulodl/bollinger-bands` to your `composer.json`. Please check the latest version in releases.

Usage
-----

[](#usage)

```
$atr = new Romulodl\BollingerBands();
$atr->calculate(array $values);
//returns an array [middle band, upper band, lower band]
```

Example of use:

```
$atr = new Romulodl\BollingerBands();
$atr->calculate([
  9807.49,
  9550.67,
  8719.53,
  8561.09,
  8808.71,
  9305.91,
  9786.80,
  9310.73,
  9374.99,
  9678.57,
  9731.10,
  9773.64,
  9508.11,
  9060.00,
  9166.40,
  9176.41,
  8711.37,
  8895.65,
  8837.05,
  9197.32,
]);
```

Why did you do this?
--------------------

[](#why-did-you-do-this)

The PECL Trading extension is crap and not everyone wants to install it. I am building a trading bot which will need the Bollinger Bands value as part of the calculation.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance62

Regular maintenance activity

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2160d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/727de2473b3f8e612546e83f5831779cd5928b4af8ed6ca3f91a533b522b7a0a?d=identicon)[romulodl](/maintainers/romulodl)

---

Top Contributors

[![romulodl](https://avatars.githubusercontent.com/u/922624?v=4)](https://github.com/romulodl "romulodl (1 commits)")

---

Tags

bollinger-bandscalculationtradetrading

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/romulodl-bollinger-bands/health.svg)

```
[![Health](https://phpackages.com/badges/romulodl-bollinger-bands/health.svg)](https://phpackages.com/packages/romulodl-bollinger-bands)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[breadlesscode/neos-nodetypes-folder

Folder nodetype for Neos CMS

1088.5k1](/packages/breadlesscode-neos-nodetypes-folder)

PHPackages © 2026

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