PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Francesco Danti   PHP Sun Position Calculator   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Sun Position Calculator
Calculate Sun position astronomical distance
Author: By
Last change: Apply fixes from StyleCI
Date: 5 years ago
Size: 376 bytes
 

Contents

Class file image Download
<?php

$autoload
= include 'vendor/autoload.php';

$object = new SolarData\SolarData();

$object->setObserverPosition(39.742476, -105.1786, 1830.14);
$object->setObserverDate(2003, 10, 17);
$object->setObserverTime(12, 30, 30);
$object->setDeltaTime(67);
$object->setObserverTimezone(-7);
$object->calculate();
$object->calculateSunRiseTransitSet();

d($object->SunPosition);