PHPackages                             pipirima/trend-line-calculator - 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. pipirima/trend-line-calculator

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

pipirima/trend-line-calculator
==============================

Calculation of trend line parameters for a given set of chart points

0.3.2(3y ago)09PHPPHP &gt;=7.4

Since Aug 16Pushed 3y agoCompare

[ Source](https://github.com/pipirima/trend-line-calculator)[ Packagist](https://packagist.org/packages/pipirima/trend-line-calculator)[ RSS](/packages/pipirima-trend-line-calculator/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (13)Used By (0)

trend-line-calculator
=====================

[](#trend-line-calculator)

Calculation of trend line parameters for a given set of chart points.

Usage
-----

[](#usage)

```
use Pipirima\TrendLine\Calculator;

// ...

        // create points
        $points = [
            [1, 2],
            [2, 3],
            [3, 6],
            [4, 8],
            [5, 10],
            [6, 12],
        ];

        // calculate trend line
        $calculator = new Calculator();
        $line = $calculator->calculateLine($points);

        // check its coefficients
        $this->assertLessThan(0.0001, abs(2.0857 - $line[0]));
        $this->assertLessThan(0.0001, abs(-0.46667 - $line[1]));
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Every ~89 days

Recently: every ~128 days

Total

11

Last Release

1205d ago

PHP version history (2 changes)0.1PHP &gt;=7.2

0.2PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![wpeisert](https://avatars.githubusercontent.com/u/15231891?v=4)](https://github.com/wpeisert "wpeisert (27 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pipirima-trend-line-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/pipirima-trend-line-calculator/health.svg)](https://phpackages.com/packages/pipirima-trend-line-calculator)
```

###  Alternatives

[symfony/service-contracts

Generic abstractions related to writing services

2.6k860.1M360](/packages/symfony-service-contracts)[symfony/polyfill-intl-normalizer

Symfony polyfill for intl's Normalizer class and related functions

2.1k830.2M36](/packages/symfony-polyfill-intl-normalizer)[friendsofphp/proxy-manager-lts

Adding support for a wider range of PHP versions to ocramius/proxy-manager

1.2k139.1M104](/packages/friendsofphp-proxy-manager-lts)[php-stubs/wordpress-stubs

WordPress function and class declaration stubs for static analysis.

19013.0M263](/packages/php-stubs-wordpress-stubs)[infection/extension-installer

Infection Extension Installer

2624.2M16](/packages/infection-extension-installer)

PHPackages © 2026

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