PHP code example of panvid / php-unit-converter

1. Go to this page and download the library: Download panvid/php-unit-converter 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/ */

    

panvid / php-unit-converter example snippets


use Panvid\UnitConverter\Convert;
use Panvid\UnitConverter\Units;

$convertion = new Convert(1, 9, Units::LENGTH);
$result = $convertion->getResult();
$convertion->debug();