Skip to content

anamarijapapic/weight-conversions

Repository files navigation

Weight conversions in PHP.

Latest Version on Packagist Tests Total Downloads

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.

About

Weight conversions in PHP. (Spatie Laravel Package Training v2.0 - Creating a PHP package)

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Languages