Registry / utility / php-units-of-measure-php-units-of-measure

php-units-of-measure-php-units-of-measure

JSON →
library2.2.0phppackagistunverified

A PHP library for converting between standard units of measure.

composer require php-units-of-measure/php-units-of-measure
INSTALL
IMPORT
SIG · PHP-UNITS-OF-MEASU
P
php-units-of-measure-php-units-of-measure
utilityphpv2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Length
use PhpUnitsOfMeasure\PhysicalQuantity\Length;

Convert 10 meters to feet.

use PhpUnitsOfMeasure\PhysicalQuantity\Length; $length = new Length(10, 'meters'); echo $length->toUnit('feet');
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
php-units-of-measure-php-units-of-measure — pip install php-units-of-measure-php-units-of-measure · libregistry