ambielecki / dive-calculator by missitnoonan

A Laravel Package to Calculate Dive Stats from the PADI RDP
40
0
2
Package Data
Maintainer Username: missitnoonan
Maintainer Contact: ambielecki@gmail.com (Andrew Bielecki)
Package Create Date: 2017-08-12
Package Last Update: 2020-04-24
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2025-02-07 15:06:32
Package Statistics
Total Downloads: 40
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

DiveCalculator

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

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

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

getPressureGroup($depth, $time, $residual_time = null)

getNewPressureGroup($starting_group, $surface_interval)

getResidualNitrogenTime($pressure_group, $depth)

getMaxBottomTime($depth, $rnt = 0)