prinsfrank/measurement-unit
最新稳定版本:v1.5.0
Composer 安装命令:
composer require prinsfrank/measurement-unit
包简介
A collection of measurement units for easy conversion
README 文档
README
Measurement-unit
Setup
Note Make sure you are running PHP 8.1 or higher to use this package
To use this package in your project, run the following command:
composer require prinsfrank/measurement-unit
Provided units
| Type | Available unit |
|---|---|
| Length | Centimeter, Fathom, Foot, Furlong, HorseLength, Inch, Kilometer, Meter, Millimeter, NauticalMile, StatuteMile, SurveyMile, Thou, Yard |
| Pressure | Bar, Hectopascal, Kilopascal, Millibar, MillimetreOfMercury, Pascal, PoundPerSquareInch, StandardAtmosphere, Torr |
| Speed | KilometerPerHour, Knot, MeterPerSecond, MilesPerHour |
| Temperature | Celsius, Fahrenheit, Kelvin, Rankine |
| Time | Day, Hour, Minute, Second |
| Torque | NewtonMeter |
| Volume | CubicInch, CubicMeter, CubicYard, FluidDram, FluidOunce, Liter, Pint, Quart, TableSpoon |
| Weight | Kilogram, MetricTon, Pound |
All the units of a type can be converted to each other with corresponding methods.
统计信息
- 总下载量: 9.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-22