frost/distance

A distance conversion library

1.0.1 2014-06-21 19:33 UTC

README

68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d66726f73743530332f44697374616e63652e706e673f6272616e63683d6d6173746572

This distance conversion library provides the functionality to convert a provided distance from one distance unit to another. Common US and metric distance measurements are supported (mi, ft, in, km, m, cm, and mm). Convert from US to metric, metric to US, US to US or metric to metric.

Usage:

    <?php
    use Frost\Distance;

    $distance = new Distance();
    $distance->setUnit('km')
        ->setDistance(10);
        ->convertTo('mi');