curder/php-package-demo

A wonderful package to perform unit conversion in PHP

1.3.1 2021-03-05 17:39 UTC

This package is auto-updated.

Last update: 2024-12-19 18:02:08 UTC


README

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

This is a php package is a demo for study.

This is a php package, and it is a demo for study.

Installation

You can install the package via composer:

composer require curder/php-package-demo

Usage

use Curder\PhpPackageDemo\Weight;
use Curder\PhpPackageDemo\Temperature;

Weight::fromKilograms(100)->toLabs(); // 220.4623;
Weight::fromLabs(100)->toKilograms(); // 45.35923

Temperature::fromCelsius(100)->toFahrenheit(); // 212;
Temperature::fromCelsius(100)->toKelvin(); // 373.15;

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.