Dimensions stay honest
Length, mass, time, temperature, and angle are represented explicitly so adding metres to seconds fails clearly.
A private extension for dimensional quantities, conversions, and readable expressions such as 2m * 6 + 200cm or 25m to km.
Keep mathphp/mathphp small and stable. This package adds its own contracts, translations, and presentation models without changing the public evaluator.
25m to kmThese repositories are private and may be consumed through your organization’s Composer mirror or VCS access. Pin a tag or commit for production.
Length, mass, time, temperature, and angle are represented explicitly so adding metres to seconds fails clearly.
Use the explicit to operator, such as 25m to km, to choose a compatible display unit without losing the normalized value.
Serialize value, unit, dimensions, and a formatted label for the playground, APIs, or the explaining add-on.