spatie/weight-conversions
Lightweight PHP package for converting between common weight units (e.g., grams, kilograms, pounds, ounces). Handy for apps needing consistent unit handling in calculations, forms, and APIs, with a simple, dependency-free API.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/unit-conversions | 0.84 | 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. | 34 | 36 | 12 | 137 | 0 | 1.7 | 9.6 | MIT | 6 years ago | |
| spatie/workshop-unit-conversions | 0.83 | Lightweight PHP package for performing unit conversions in Laravel or any PHP app. Install via Composer and convert values between supported units with a simple API. Includes tests, changelog, and MIT license. | 2 | 2 | 1 | 0 | 0 | 0.6 | — | MIT | 5 years ago | |
| akeneo/measure-bundle | 0.81 | — | 27 | 29 | 15 | 1K | 0 | 1.3 | 16.3 | MIT | 10 years ago | |
| frost/distance | 0.81 | 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(). | 3 | 5 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| midnightluke/php-units-of-measure-bundle | 0.80 | Symfony bundle integrating the php-units-of-measure library, providing unit definitions and services to work with quantities, conversions, and formatting in your app. Adds simple configuration and DI wiring for unit-of-measure support. | 2 | 2 | 3 | 7 | 4 | 1.1 | 8.0 | MIT | — | |
| php-units-of-measure/php-units-of-measure | 0.79 | PHP library for representing physical quantities and converting units (length, mass, etc.). Encapsulate values with their unit, convert via toUnit(), and accept quantities in any unit without hardcoding conversions. Composer install, PSR-4 autoloading. | 315 | 314 | 78 | 102K | 12 | 8.1 | 39.4 | MIT | 1 year ago | |
| gabrielelana/byte-units | 0.79 | — | 168 | 175 | 17 | 41K | 3 | 3.3 | 34.4 | MIT | 8 years ago | |
| baks-dev/reference-clothing | 0.78 | — | 0 | 0 | 0 | 0 | 0 | 14.9 | — | MIT | 3 months ago | |
| alex-for-test/hello-world | 0.78 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| denisok94/helper | 0.78 | A small Laravel/PHP helper package providing convenience functions to speed up everyday development tasks. Useful for common utilities and shortcuts so you can reduce boilerplate across projects. | 1 | 1 | 0 | 2 | 0 | 27.4 | 4.9 | BSD-3-Clause | 6 days ago | |
| digitalrevolution/utils | 0.78 | — | 1 | 1 | 8 | 2K | 1 | 26.0 | 48.1 | MIT | 2 months ago | |
| citizen63000/easy-api-core | 0.78 | — | 0 | 0 | 1 | 10 | 0 | 20.1 | 16.8 | MIT | 1 month ago | |
| binsoul/common-i18n | 0.78 | Common i18n utilities for PHP applications. Provides lightweight helpers for working with translations and locales, aiming to reduce boilerplate around internationalization in shared code across projects. | 1 | 1 | 0 | 92 | 0 | 0.0 | 23.1 | MIT | — | |
| darvinstudio/databaser | 0.77 | — | 0 | 0 | 1 | 4 | 0 | 0.1 | 9.7 | MIT | — | |
| spatie/laravel-package-tools | 0.77 | A base PackageServiceProvider for Laravel package authors. Quickly register and publish config, views, translations, assets, routes, migrations, commands, view components/composers, and install commands—all via a clean, fluent API. | 952 | 961 | 164 | 7M | 0 | 35.9 | 61.6 | MIT | 2 months ago | |
| baks-dev/reference-currency | 0.77 | — | 0 | 0 | 1 | 61 | 0 | 15.6 | 28.1 | MIT | 3 months ago | |
| baks-dev/reference-shoes | 0.77 | — | 0 | 0 | 0 | 0 | 0 | 14.3 | — | MIT | 3 months ago | |
| akaunting/laravel-money | 0.77 | — | 787 | 787 | 109 | 133K | 0 | 30.7 | 35.1 | MIT | 3 months ago | |
| phlib/base_convert | 0.77 | Drop-in replacement for PHP base_convert that supports arbitrarily large numbers without silent failures. Convert big numeric strings between bases (e.g., 10↔36) reliably via Phlib\base_convert, and round-trip large values correctly. | 3 | 3 | 0 | 4K | 0 | 0.6 | 41.3 | LGPL-3.0 | 4 years ago | |
| spatie/tax-calculator | 0.77 | Interfaces and helpers to simplify tax calculations in PHP. Use TaxCalculation with plain numbers or items implementing HasTax to compute base, tax, and total prices, and combine calculations (e.g., cart items + delivery) on the fly. | 81 | 83 | 12 | 381 | 0 | 1.1 | 10.4 | MIT | 4 years ago |
How can I help you explore Laravel packages today?