anamarijapapic / weight-conversions
Weight conversions in PHP.
Fund package maintenance!
anamarijapapic
Requires
- php: ^8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.13
- pestphp/pest: ^1.20
- spatie/ray: ^1.28
This package is auto-updated.
Last update: 2025-03-09 20:33:52 UTC
README
Weight conversions in PHP.
(Spatie Laravel Package Training v2.0 - Creating a PHP package)
Installation
You can install the package via composer:
composer require anamarijapapic/weight-conversions
Usage
use AnamarijaPapic\WeightConversions\Weight; $pounds = Weight::kilograms(100)->toPounds(); $stones = Weight::kilograms(100)->toStones(); echo "100 kg = $pounds lb = $stones st";
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.