asika/better-units
Better Units is a PHP library for working with units of measure. Convert values between compatible units, define custom units, and format quantities consistently in any PHP or Laravel project.
Better Units gives PHP developers a type-safe way to handle physical quantities and unit conversions. Rather than passing bare numbers around and relying on comments to remember whether a value is metres or millimetres, you work with expressive measurement objects that carry their unit with them and convert, compare, and format themselves.
How can I help you explore Laravel packages today?