gertvdb/distance

Provide a standard way to store distance

Installs: 44

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:drupal-module

8.1.1 2020-10-29 11:29 UTC

This package is auto-updated.

Last update: 2024-10-29 05:53:23 UTC


README

Provide a standard way to store distance and work with it.

Usage

Initialising the classes.


use Drupal\distance\Distance;

$distance = new Distance(1.67, 'MI');
$km = $distance->toKilometers();

Release notes

1.0.0

  • Basic setup of the module.
  • Provide distance class.