A PHP library for converting units, sizes, and number bases with support for physical quantities and clothing sizes.
php-conversion is a PHP library that provides tools for converting between different units of measurement, clothing sizes, and number bases. It solves the problem of handling diverse measurement systems in applications by offering a standardized, object-oriented approach to conversions.
PHP developers building applications that require unit conversions, such as e-commerce platforms, internationalization tools, scientific calculators, or systems dealing with multiple measurement standards.
Developers choose php-conversion for its comprehensive support across categories (physical units, digital storage, sizes, number bases), clean API with dedicated classes for each type, and precise control over output formatting without external dependencies.
Library for converting units and sizes in PHP
Supports a wide range of physical quantities, digital information, sizes, and number bases, making it versatile for applications like e-commerce or scientific tools, as listed in the README's extensive unit categories.
Uses dedicated classes for each conversion type, preventing unit mismatches and promoting code clarity, which aligns with the library's philosophy of type safety and self-documenting code.
Allows detailed control over output formatting, including decimal places and separators, demonstrated in the digital information example with the 'out' method for custom precision.
Uniquely supports international hat and child shoe size systems across American, British, and European standards, useful for specific e-commerce scenarios, as shown in the usage examples.
Only covers hat and child shoe sizes, lacking adult shoe sizes or other clothing measurements, which restricts its use for broader retail or fashion applications.
The library relies on older infrastructure like Travis CI and shows no recent updates in the README, suggesting it may not be actively maintained or compatible with modern PHP versions.
The object-oriented approach requires instantiating classes for basic conversions, which can be cumbersome compared to function-based libraries for straightforward use cases.
Powerful modern math library for PHP: Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra
Arbitrary-precision arithmetic library for PHP
Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
Library to parse, format and convert byte units
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.