raliqala / any-conversions
Everything conversion like Kilograms to Pounds, temperature, weight,volume, speed, length, angle, time etc..
Fund package maintenance!
raliqala
Requires
- php: ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpunit/phpunit: ^9.5
- spatie/ray: ^1.28
- vimeo/psalm: ^4.8
README
This package can perform various unit conversions. Right now, It supports kg to other weights etc.. and celsius to other temperatures, this package is still new so i'm still compiling docs.
Here's how to use it:
use raliqala\AnyConversions\Weight; Weight::fromKilograms(100)->toLbs(); // returns 220.4623;
Installation
You can install the package via composer:
composer require raliqala/any-conversions
Usage
From kg to lbs
raliqala\AnyConversions\Weight::fromKilograms(100)->toLbs(); // returns 220.4623;
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email thabohappy55@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.