dev-master
9999999-devThe Distance Object
MIT
The Requires
- php >=5.3
The Development Requires
by Joshua Stoutenburg
v1.0.0
1.0.0.0The Distance Object
MIT
The Requires
- php >=5.3
The Development Requires
by Joshua Stoutenburg
The Distance Object
The Distance Object., (*1)
composer require reusables/distance
<?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)
This library is available under a MIT license., (*4)
The Distance Object
MIT
The Distance Object
MIT