2017 © Pedro Peláez
 

library distance

The Distance Object

image

reusables/distance

The Distance Object

  • Thursday, April 2, 2015
  • by jehoshua02
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Distance

The Distance Object., (*1)

Build Status Coverage Status, (*2)

Install

composer require reusables/distance

Usage

<?php

use \Reusables\Unit\Distance;

// instantiate
$distance = new Distance(36, Distance::INCHES);

// convert
$feet = $distance->to(Distance::FEET)->value(); // 3 (FEET)

// add
$inches = $distance->add(new Distance(1, Distance::FEET))->value(); // 48 (INCHES)

See docblocks for more details., (*3)

License

This library is available under a MIT license., (*4)

The Versions

02/04 2015

dev-master

9999999-dev

The Distance Object

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Joshua Stoutenburg

02/04 2015

v1.0.0

1.0.0.0

The Distance Object

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Joshua Stoutenburg