spatie/unit-conversions
Lightweight PHP unit conversion library by Spatie. Currently supports weight conversion from kilograms to pounds via a fluent API: Weight::fromKilograms(100)->toLbs(). Install with Composer and extend as more units are added.
Adopt if:
Look elsewhere if:
For Executives: "This package lets us add unit conversion features (e.g., kg/lbs toggles) in hours, not weeks—reducing dev time by 80% for low-risk, high-impact UX improvements. For example, a fitness app could instantly support global users by auto-converting metrics. The MIT license and Spatie’s reputation ensure reliability, while the lightweight design avoids bloat. Tradeoff: Limited to basic units today, but we can phase in more as needed."
For Engineering:
*"Spatie’s unit-conversions is a 5-minute install for kg/lbs or °C/°F needs. It’s:
Weight::fromKilograms(100)->toLbs()).How can I help you explore Laravel packages today?