jmusila/unit-conversions

Perform unit conversions in PHP

1.1.1 2021-09-28 13:42 UTC

This package is auto-updated.

Last update: 2024-03-29 04:45:59 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package can be used as to scaffold a framework agnostic package. Follow these steps to get started:

  1. Press the "Use template" button at the top of this repo to create a new repo with the contents of this skeleton
  2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files
  3. Have fun creating your package.
  4. If you need help creating a package, consider picking up our Laravel Package Training video course.

This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require jmusila/unit-conversions

Usage

use Jmusila\UnitConversions\Weight;

Weight::fromKilograms(100)->toTons(); // returns 0.1;

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.