PHP code example of curder / php-package-demo
1. Go to this page and download the library: Download curder/php-package-demo library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
curder / php-package-demo example snippets
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;