PHPackages                             ambielecki/dive-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. ambielecki/dive-calculator

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

ambielecki/dive-calculator
==========================

A Laravel Package to Calculate Dive Stats from the PADI RDP

v1.0.6(6y ago)048MITPHPPHP &gt;=5.5.9CI failing

Since Aug 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ambielecki/dive-calculator)[ Packagist](https://packagist.org/packages/ambielecki/dive-calculator)[ RSS](/packages/ambielecki-dive-calculator/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

DiveCalculator
==============

[](#divecalculator)

A PHP Package to Calculate Dive Stats from the PADI RDP
-------------------------------------------------------

[](#a-php--package-to-calculate-dive-stats-from-the-padi-rdp)

**This package is for informational use only, the author accepts no liability for calculations made using this package!**

**All divers should perform and check their own calculations with approved charts or devices.**

### Installation

[](#installation)

The easiest way to install is through composer

```
composer require ambielecki/divecalculator

```

Or in your require section add:

```
"require": {
    "ambielecki/dive-calculator": "1.*"
}

```

Run

```
composer update

```

And you should be good to go.

### Simple Usage

[](#simple-usage)

Pardon the formating, markdown and all.

All times should be in minutes, all depths in feet. I'm in the US, so only Imperial for now.

```
use Ambielecki\DiveCalculator\DiveCalculator;

$depth = 50;
$time = 45;
$diveCalculator = new DiveCalculator();
$pressuregroup = $diveCalculator->getPressureGroup($depth, $time);
```

### Available Methods

[](#available-methods)

getPressureGroup($depth, $time, $residual\_time = null)

getNewPressureGroup($starting\_group, $surface\_interval)

getResidualNitrogenTime($pressure\_group, $depth)

getMaxBottomTime($depth, $rnt = 0)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~231 days

Total

9

Last Release

2318d ago

Major Versions

v0.2 → 1.0.02017-08-12

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/129671889?v=4)[Andrew Bielecki](/maintainers/missitnoonan)[@missitnoonan](https://github.com/missitnoonan)

---

Top Contributors

[![ambielecki](https://avatars.githubusercontent.com/u/12431009?v=4)](https://github.com/ambielecki "ambielecki (19 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ambielecki-dive-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/ambielecki-dive-calculator/health.svg)](https://phpackages.com/packages/ambielecki-dive-calculator)
```

###  Alternatives

[jenner/simple_fork

simple multi process manager based on pcntl

227328.3k15](/packages/jenner-simple-fork)[bakame/laravel-domain-parser

Laravel package to integrate PHP Domain parser.

26575.5k4](/packages/bakame-laravel-domain-parser)

PHPackages © 2026

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