PHP Classes
elePHPant
Icontem

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 the Sun position based on observations
Author: By
Last change:
Date: 1 month ago
Size: 373 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);