{"id":14036798,"url":"https://github.com/minube/solar-position","last_synced_at":"2025-12-30T14:35:06.802Z","repository":{"id":57017273,"uuid":"97443699","full_name":"minube/solar-position","owner":"minube","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-06T08:54:15.000Z","size":6,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-16T09:10:31.144Z","etag":null,"topics":["solar-position-algorithms","sun-position","sunrise","sunset"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/minube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-17T06:44:40.000Z","updated_at":"2024-04-12T04:56:19.000Z","dependencies_parsed_at":"2022-08-22T11:31:44.217Z","dependency_job_id":null,"html_url":"https://github.com/minube/solar-position","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minube%2Fsolar-position","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minube%2Fsolar-position/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minube%2Fsolar-position/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minube%2Fsolar-position/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minube","download_url":"https://codeload.github.com/minube/solar-position/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":214982087,"owners_count":15811653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["solar-position-algorithms","sun-position","sunrise","sunset"],"created_at":"2024-08-12T03:02:14.223Z","updated_at":"2025-12-30T14:35:06.767Z","avatar_url":"https://github.com/minube.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Solar Position\nCalculate the sunset and sunrise times for a particular location and date, as well as the different twilight phases (civil, nautical, astronomical) times. \nMore details about the different sun position phases in [timeanddate.com](https://www.timeanddate.com/astronomy/about-sun-calculator.html).\n\n## Input\n* Date: array('day', 'month', 'year')\n* Latitude\n* Longitude\n\n## Output\n* UTC [ DateTime](http://php.net/manual/es/class.datetime.php) object\n\n## Example\n```php\n    use SolarPosition\\Calculator;\n\n    $latitude = 40.433202;\n    $longitude = -3.690161;\n    $date = array('day'=\u003e23, 'month'=\u003e6, 'year'=\u003e2017);\n\n    $sun = new Calculator();\n    $sunsetTime = $sun-\u003egetSunset($date, $latitude,$longitude);\n    /*\n        DateTime Object\n        (\n            [date] =\u003e 2017-06-23 19:48:35\n            [timezone_type] =\u003e 3\n            [timezone] =\u003e UTC\n        )\n    */\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminube%2Fsolar-position","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminube%2Fsolar-position","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminube%2Fsolar-position/lists"}