{"id":36989476,"url":"https://github.com/yrehan32/php-haversine","last_synced_at":"2026-01-13T23:30:10.901Z","repository":{"id":65131728,"uuid":"582669098","full_name":"yrehan32/php-haversine","owner":"yrehan32","description":"A package used to calculate the distance between two coordinate points using the haversine algorithm","archived":false,"fork":false,"pushed_at":"2022-12-27T15:36:05.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T10:57:06.189Z","etag":null,"topics":["algorithm","haversine","haversine-formula","php","php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yrehan32.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-27T14:29:40.000Z","updated_at":"2022-12-30T13:52:43.000Z","dependencies_parsed_at":"2023-01-03T10:18:32.462Z","dependency_job_id":null,"html_url":"https://github.com/yrehan32/php-haversine","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yrehan32/php-haversine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrehan32%2Fphp-haversine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrehan32%2Fphp-haversine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrehan32%2Fphp-haversine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrehan32%2Fphp-haversine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yrehan32","download_url":"https://codeload.github.com/yrehan32/php-haversine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrehan32%2Fphp-haversine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["algorithm","haversine","haversine-formula","php","php-library"],"created_at":"2026-01-13T23:30:09.318Z","updated_at":"2026-01-13T23:30:10.883Z","avatar_url":"https://github.com/yrehan32.png","language":"PHP","readme":"## Installation\n\nInstall the library via Composer\n```bash\ncomposer require yrehan32/php-haversine\n```\n\nAfter installing the library, you can use it in your code like this:\n```php\nuse Yrehan32\\PhpHaversine\\Haversine;\n\n/*\n * Calculate the distance between two points\n * @param float   $latitudeFrom   Latitude of the first point\n * @param float   $longitudeFrom  Longitude of the first point\n * @param float   $latitudeTo     Latitude of the second point\n * @param float   $longitudeTo    Longitude of the second point\n * @param string  $separators     Number of digits after the comma (default: 2)\n * \n * @return float Distance between the two points\n */\n$distance = Haversine::calculate(\n    52.2296756,\n    21.0122287,\n    52.406374,\n    16.9251681\n);\necho $distance; // It will print 278.46\n```\n\n## License\nThis library is licensed under the LGPL-2.1 License.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyrehan32%2Fphp-haversine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyrehan32%2Fphp-haversine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyrehan32%2Fphp-haversine/lists"}