1. Go to this page and download the library: Download theriftlab/radiance 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/ */
$angle = Angle::make(-200); // 160° on a circle
echo $angle;
// Output: -200°0'0"
echo $angle->distanceTo(140); // 160° to 140°
// Output: -20°0'0"
echo $angle->distanceTo(180); // 160° to 180°
// Output: 20°0'0"
$angle = Angle::make(-560); // still 160°
echo $angle;
// Output: -200°0'0"
echo $angle->distanceTo(-220); // 140° on a circle, so still 160° to 140°
// Output: -20°0'0"
echo $angle->distanceTo(-180); // 180° on a circle, so still 160° to 180°
// Output: 20°0'0"