curder / php-package-demo
A wonderful package to perform unit conversion in PHP
1.3.1
2021-03-05 17:39 UTC
Requires
- php: ^7.3|^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.17
- phpunit/phpunit: ^9.5
- spatie/ray: ^1.10
- vimeo/psalm: ^4.3
README
This is a php package is a demo for study.
This is a php package, and it is a demo for study.
- laravel命令行测试 curder/laravel-console-command-test-demo
- laravel 拓展包 curder/laravel-package-demo
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.