{"id":22120534,"url":"https://github.com/islamic-network/prayer-times-moonsighting","last_synced_at":"2025-07-25T12:33:46.023Z","repository":{"id":56993782,"uuid":"281580299","full_name":"islamic-network/prayer-times-moonsighting","owner":"islamic-network","description":"A prayer times library to calculate Fajr and Isha timings per moonsighting.com","archived":false,"fork":false,"pushed_at":"2024-01-27T19:42:04.000Z","size":648,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-18T09:12:50.903Z","etag":null,"topics":[],"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/islamic-network.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-07-22T05:07:37.000Z","updated_at":"2024-07-24T21:32:45.000Z","dependencies_parsed_at":"2024-01-27T20:46:17.253Z","dependency_job_id":null,"html_url":"https://github.com/islamic-network/prayer-times-moonsighting","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islamic-network%2Fprayer-times-moonsighting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islamic-network%2Fprayer-times-moonsighting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islamic-network%2Fprayer-times-moonsighting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islamic-network%2Fprayer-times-moonsighting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/islamic-network","download_url":"https://codeload.github.com/islamic-network/prayer-times-moonsighting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227576605,"owners_count":17788546,"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":[],"created_at":"2024-12-01T14:27:22.160Z","updated_at":"2025-07-25T12:33:45.974Z","avatar_url":"https://github.com/islamic-network.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Releases](https://img.shields.io/github/v/release/islamic-network/prayer-times-moonsighting)](https://github.com/islamic-network/prayer-times-moonsighting/releases)\n![](https://img.shields.io/packagist/dt/islamic-network/prayer-times-moonsighting.svg)\n[![CI](https://cairo.mamluk.net/api/v1/teams/islamic-network/pipelines/prayer-times-moonsighting/badge)](https://cairo.mamluk.net/teams/islamic-network/pipelines/prayer-times-moonsighting)\n\n# This repository is no longer active. Please see https://community.islamic.network/d/140-removing-repositories-from-github.\n\n# PHP Library to Calculate Fajr and Isha Timings per MoonSighting.com\nThis library has been written for the AlAdhan.com API @ https://aladhan.com/prayer-times-api and is included in the main prayer times library @ https://github.com/islamic-network/prayer-times.\n\n## Requirements\n* PHP 7.3+\n\n## Install\n```php\ncomposer install islamic-network/prayer-times-moonsighting\n```\n\n## Usage\nTo calculate Fajr minutes before sunrise:\n\n```php\nuse IslamicNetwork\\MoonSighting\\Fajr;\nuse DateTime;\n\n$date = new DateTime('24-12-2020');\n$pt = new Fajr($date, 25.2119894);\n$pt-\u003egetMinutesBeforeSunrise(); // 88 minutes\n```\n\nTo calculate Isha minutes after sunset:\n\n```php\nuse IslamicNetwork\\MoonSighting\\Fajr;\nuse DateTime;\n\n$date = new DateTime('24-12-2020');\n$pt = new Isha($date, 25.2119894, 'general'); // The third parameter is shafaq, acceptable values for which are 'general', 'ahmer', 'abyad'.\n$pt-\u003egetMinutesAfterSunset(); // 86 minutes\n```\n\n## Tests\nTo run unit tests, from the root of this repository execute:\n\n```php\nvendor/bin/phpunit tests/Unit/\n```\n## Credits\n\nSyed Khalid Shaukat, who has done the research for this method of computing timings for higher latitude areas. For more information about the calculation, \nplease see the Fajr and Isha booklet @ https://github.com/islamic-network/prayer-times-moonsighting/blob/master/booklet-fajr-isha.pdf and visit https://www.moonsighting.com/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fislamic-network%2Fprayer-times-moonsighting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fislamic-network%2Fprayer-times-moonsighting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fislamic-network%2Fprayer-times-moonsighting/lists"}