{"id":29358249,"url":"https://github.com/labrodev/haversine","last_synced_at":"2025-07-09T06:09:28.021Z","repository":{"id":301894963,"uuid":"1010595036","full_name":"labrodev/haversine","owner":"labrodev","description":"PHP 8.1+ utility library that provides a lightweight method to calculate the great-circle distance between two geographic coordinates using the Haversine formula.","archived":false,"fork":false,"pushed_at":"2025-06-29T12:36:33.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-29T13:40:31.784Z","etag":null,"topics":["composer-library","composer-package","distance-calculation","distance-measures","haversine-distance","haversine-formula","labrodev","latitude-and-longitude","php","php-library","php-package","php-utility","php8","webdevelopment"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labrodev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.MD","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-29T12:10:37.000Z","updated_at":"2025-06-29T12:43:20.000Z","dependencies_parsed_at":"2025-06-29T13:40:33.666Z","dependency_job_id":"a2f0371b-a544-4b03-a6a7-bf3aedcd193e","html_url":"https://github.com/labrodev/haversine","commit_stats":null,"previous_names":["labrodev/haversine-calculator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/labrodev/haversine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labrodev%2Fhaversine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labrodev%2Fhaversine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labrodev%2Fhaversine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labrodev%2Fhaversine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labrodev","download_url":"https://codeload.github.com/labrodev/haversine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labrodev%2Fhaversine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264403827,"owners_count":23602623,"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":["composer-library","composer-package","distance-calculation","distance-measures","haversine-distance","haversine-formula","labrodev","latitude-and-longitude","php","php-library","php-package","php-utility","php8","webdevelopment"],"created_at":"2025-07-09T06:09:22.565Z","updated_at":"2025-07-09T06:09:28.011Z","avatar_url":"https://github.com/labrodev.png","language":"PHP","readme":"# PHP Haversine Distance Calculator\n\n**Labrodev\\Haversine** is a strict PHP 8.1+ utility library that provides a lightweight method to calculate the great-circle distance between two geographic coordinates using the Haversine formula.\n\n## Features\n\n- Calculates accurate distance between two latitude/longitude points\n- Returns result in kilometers\n- Based on the Haversine formula (spherical Earth model)\n- Fully static and type-safe class\n- Lightweight, dependency-free implementation\n- Includes PHPUnit and PHPStan support for testing and analysis\n\n## Installation\n\n```\ncomposer require labrodev/haversine\n```\n\n## Usage\n\n```php\nuse Labrodev\\Haversine\\Calculator;\n\n// Distance in kilometers between Paris and Frankfurt\n$distance = Calculator::haversineDistance(48.8566, 2.3522, 50.1109, 8.6821);\n\necho $distance; // e.g., 478.5 \n```\n\n## Testing\n\nTo run tests:\n\n```\ncomposer install\ncomposer test\n```\n\n## Static Analysis\n\nTo run static analysis using PHPStan:\n\n```\ncomposer install\ncomposer analyse\n```\n\n\u003e Configuration is located in `phpstan.neon.dist`\n\n## Security\n\nIf you discover a security vulnerability within this package, **please contact us immediately at [contact@labrodev.com](mailto:contact@labrodev.com)**. All security-related issues will be handled privately and promptly.\n\n## Credits\n\nThis package is maintained by **Labrodev** — Laravel \u0026 PHP development studio.  \n[https://github.com/labrodev](https://github.com/labrodev)\n\n## Feedback\n\nIf you have any questions, suggestions, or have found an error — feel free to open an issue or contact us:  \n**contact@labrodev.com**\n\n**License:** MIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabrodev%2Fhaversine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabrodev%2Fhaversine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabrodev%2Fhaversine/lists"}