PHPackages                             michaeltintiuc/percentilerank-example - 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. michaeltintiuc/percentilerank-example

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

michaeltintiuc/percentilerank-example
=====================================

Percentile Rank Calculator Example.

v0.0.5(9y ago)1161MITPHPPHP &gt;=5.3.0

Since Jan 22Pushed 8y agoCompare

[ Source](https://github.com/michaeltintiuc/percentilerank-example)[ Packagist](https://packagist.org/packages/michaeltintiuc/percentilerank-example)[ Docs](https://github.com/michaeltintiuc/percentilerank-example)[ RSS](/packages/michaeltintiuc-percentilerank-example/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (6)Used By (0)

Percentile Rank
===============

[](#percentile-rank)

An example application for calculating percentile ranks

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

[](#installation)

Create a folder for your project and enter it

```
mkdir percentilerank-example && cd "$_"
```

Pull the project files

```
composer create-project michaeltintiuc/percentilerank-example .
```

Usage
-----

[](#usage)

When running application via Web Server set the Document Root to `public/`

Run application via `CLI`

```
php public/index.php
```

Create the application with a parser (csv or json)

```
/**
 * @param string type of parser
 */
$app = new MichaelT\App('csv');
```

Load file to be read by the parser

```
/**
 * @param string path to file
 */
$app->parser()->loadFile(__DIR__.'/../input.csv');
```

Calculate percentile rank from file data

```
/**
 * @param string|int index/key of score of interest
 * @param string|int index/key to hold percentile rank
 */
$data = $app->calculateRank(2, 'rank');
```

Save result to file via created parser

```
/**
 * @param string path to file
 * @param array data to save
 * @param string|int|array key/index of array to skip
 */
$app->parser()->exportFile(__DIR__.'/../output.csv', $data, 0);
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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 ~1 days

Total

5

Last Release

3443d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1321256?v=4)[Michael Tintiuc](/maintainers/michaeltintiuc)[@michaeltintiuc](https://github.com/michaeltintiuc)

---

Top Contributors

[![michaeltintiuc](https://avatars.githubusercontent.com/u/1321256?v=4)](https://github.com/michaeltintiuc "michaeltintiuc (16 commits)")

---

Tags

calculating-percentile-rankscalculationparsepercentilephprankstatisticsstatisticspercentilerank

### Embed Badge

![Health badge](/badges/michaeltintiuc-percentilerank-example/health.svg)

```
[![Health](https://phpackages.com/badges/michaeltintiuc-percentilerank-example/health.svg)](https://phpackages.com/packages/michaeltintiuc-percentilerank-example)
```

###  Alternatives

[markrogoyski/math-php

Math Library for PHP. Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra

2.4k7.4M48](/packages/markrogoyski-math-php)[wnx/laravel-stats

Get insights about your Laravel Project

1.7k1.8M7](/packages/wnx-laravel-stats)[rubix/tensor

A library and extension that provides objects for scientific computing in PHP.

2791.5M5](/packages/rubix-tensor)[hi-folks/statistics

PHP package that provides functions for calculating mathematical statistics of numeric data.

402113.2k](/packages/hi-folks-statistics)[mcordingley/regression

Regression Package for PHP

88132.3k1](/packages/mcordingley-regression)[oefenweb/statistics

Statistics library for PHP

32402.3k1](/packages/oefenweb-statistics)

PHPackages © 2026

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