PHP code example of marcoconsiglio / ephemeris
1. Go to this page and download the library: Download marcoconsiglio/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/ */
marcoconsiglio / ephemeris example snippets
$ephemeris = new LaravelSwissEphemeris(
$this->config->get("ephemeris.latitude"),
$this->config->get("ephemeris.longitude"),
$this->config->get("ephemeris.timezone")
);
// or instead
$ephemeris = new LaravelSwissEphemeris(
41.902782, // Decimal latitude
12.496366, // Decimal longitude
"Europe/Rome" // Timezone
);