{"id":15058983,"url":"https://github.com/riverside/php-osrm","last_synced_at":"2025-06-22T18:08:49.012Z","repository":{"id":66793312,"uuid":"232907158","full_name":"riverside/php-osrm","owner":"riverside","description":":postbox: PHP client for Project-OSRM","archived":false,"fork":false,"pushed_at":"2024-09-08T18:11:11.000Z","size":49,"stargazers_count":10,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T05:13:46.495Z","etag":null,"topics":["openstreetmap","osm","osrm","osrm-api","php","php-api","php-client","php-osrm","project-osrm","routing","routing-engine","routing-machine"],"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/riverside.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-09T21:13:27.000Z","updated_at":"2025-01-14T22:54:17.000Z","dependencies_parsed_at":"2024-09-08T18:59:08.743Z","dependency_job_id":null,"html_url":"https://github.com/riverside/php-osrm","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/riverside/php-osrm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riverside%2Fphp-osrm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riverside%2Fphp-osrm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riverside%2Fphp-osrm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riverside%2Fphp-osrm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riverside","download_url":"https://codeload.github.com/riverside/php-osrm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riverside%2Fphp-osrm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261338999,"owners_count":23143900,"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":["openstreetmap","osm","osrm","osrm-api","php","php-api","php-client","php-osrm","project-osrm","routing","routing-engine","routing-machine"],"created_at":"2024-09-24T22:34:57.827Z","updated_at":"2025-06-22T18:08:43.997Z","avatar_url":"https://github.com/riverside.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-osrm\nPHP client for Project-OSRM.\n\n| Build | Stable | License |\n| ----- | ------ | ------- |\n| [![CI][x1]][y1] | [![Latest Stable Version][x2]][y2] | [![License][x3]][y3] |\n\n## Installation\n- If Composer is already installed\n```\ncomposer require riverside/php-osrm\n```\n- If Composer is not installed on your system yet, you may go ahead and install it using this command line:\n```\n$ curl -sS https://getcomposer.org/installer | php\n```\nNext, add the following require entry to the `composer.json` file in the root of your project.\n```json\n{\n    \"require\" : {\n        \"riverside/php-osrm\" : \"^2.0\"\n    }\n}\n```\nFinally, use Composer to install **php-osrm** and its dependencies:\n```\n$ php composer.phar install\n```\n\n## Loading\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n```\n\n## API\n- [Nearest][1] - Snaps a coordinate to the street network and returns the nearest `n` matches.\n- [Route][2] - Finds the fastest route between coordinates in the supplied order.\n- [Table][3] - Computes the duration of the fastest route between all pairs of supplied coordinates. Returns the durations or distances or both between the coordinate pairs.\n- [Match][4] - Map matching matches/snaps given GPS points to the road network in the most plausible way.\n- [Trip][5] - Solves the Traveling Salesman Problem using a greedy heuristic (farthest-insertion algorithm) for 10 or more waypoints and uses brute force for less than 10 waypoints.\n- [Tile][6] - Generates [Mapbox Vector Tiles][8] that can be viewed with a vector-tile capable slippy-map viewer.\n- [Isochrones][7] - Generates travel time isochrones in GeoJSON format.\n\n## Links\n- [Project-OSRM (official website)][9]\n- [Project-OSRM (GitHub)][10]\n- [OSRM (OpenStreetMap.org)][11]\n- [ORS (OpenRouteService.org)][12]\n\n[1]: https://github.com/riverside/php-osrm/tree/master/examples/nearest.php\n[2]: https://github.com/riverside/php-osrm/tree/master/examples/route.php\n[3]: https://github.com/riverside/php-osrm/tree/master/examples/table.php\n[4]: https://github.com/riverside/php-osrm/tree/master/examples/matcher.php\n[5]: https://github.com/riverside/php-osrm/tree/master/examples/trip.php\n[6]: https://github.com/riverside/php-osrm/tree/master/examples/tile.php\n[7]: https://github.com/riverside/php-osrm/tree/master/examples/isochrones.php\n[8]: https://docs.mapbox.com/api/maps/vector-tiles/\n[9]: https://project-osrm.org/\n[10]: https://github.com/Project-OSRM\n[11]: https://wiki.openstreetmap.org/wiki/Open_Source_Routing_Machine\n[12]: https://openrouteservice.org/\n[x1]: https://github.com/riverside/php-osrm/actions/workflows/test.yml/badge.svg\n[y1]: https://github.com/riverside/php-osrm/actions/workflows/test.yml\n[x2]: https://poser.pugx.org/riverside/php-osrm/v/stable\n[y2]: https://packagist.org/packages/riverside/php-osrm\n[x3]: https://poser.pugx.org/riverside/php-osrm/license\n[y3]: https://packagist.org/packages/riverside/php-osrm","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friverside%2Fphp-osrm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friverside%2Fphp-osrm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friverside%2Fphp-osrm/lists"}