frost/distance
PHP distance conversion library for US and metric units. Convert between mi, ft, in, km, m, cm, and mm (US↔metric, US↔US, metric↔metric). Simple fluent API: setUnit(), setDistance(), convertTo().
For Executives: "This MIT-licensed, open-source library lets us add distance conversion features in hours—not weeks—without hiring specialized math talent. For example, we could enable users to toggle between miles and kilometers in our travel app or standardize product dimensions globally. It’s a low-risk, high-reward ‘buy’ that reduces dev overhead and speeds up feature delivery. Given its simplicity, we can validate it quickly in a sandbox before committing to production."
For Engineering: *"The package is a single, dependency-free class with a clean API:
$distance = new \Frost\Distance();
$distance->setUnit('km')->setDistance(10)->convertTo('mi'); // Returns 6.21371
For Design/Product: *"This solves a common UX pain point—users inputting distances in their preferred unit (e.g., miles in the US, kilometers in Europe). With this, we can:
How can I help you explore Laravel packages today?