1. Go to this page and download the library: Download kilofox/ephemeris 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/ */
kilofox / ephemeris example snippets
use Kilofox\Ephemeris\Calendar;
$calendar = new Calendar;
// 阳历转阴历
$result = $calendar->solar2lunar(2021, 3, 19);
// 阴历转阳历
$result = $calendar->lunar2solar(2021, 2, 7);