PHPackages                             h-ishak/ors-api-service - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. h-ishak/ors-api-service

ActiveLibrary[API Development](/categories/api)

h-ishak/ors-api-service
=======================

a class to use OpenRouteService Api in laravel 8

1.1b(4y ago)53.6k↓50%5MITPHPPHP &gt;=7.4

Since Jun 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/H-ishak/ors-api-service)[ Packagist](https://packagist.org/packages/h-ishak/ors-api-service)[ RSS](/packages/h-ishak-ors-api-service/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

ors-api-service
===============

[](#ors-api-service)

![Downloads](https://camo.githubusercontent.com/82066d4088108bcda83edfc4e67f733f859c79bce878d186e26a2a713ed9698c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f682d697368616b2f6f72732d6170692d736572766963652e7376673f7374796c653d666c61742d7371756172652535442829)![Version](https://camo.githubusercontent.com/b7e2a29dbd6368608fffe53135b7fc67fb07611eabc272a8486c5f78ddeadb1a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f682d697368616b2f6f72732d6170692d736572766963652e7376673f7374796c653d666c61742d7371756172652535442829)![Forks](https://camo.githubusercontent.com/9098dfe2add04565ff812a959c54bcc679cb3c84995c4a5b95fd7e2842e3700b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f682d697368616b2f6f72732d6170692d736572766963652e7376673f7374796c653d666c61742d7371756172652535442829)![Stars](https://camo.githubusercontent.com/62a7eb82d66fd9d4bf8ef4937898a3427d00c48bf29e641257bb04cf82bc0589/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f682d697368616b2f6f72732d6170692d736572766963652e7376673f7374796c653d666c61742d7371756172652535442829)![License](https://camo.githubusercontent.com/0fcbfcd4c08df3cfdbac28a6710bdae27e035e7a4e81262ed23d8249948eb9ab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f482d697368616b2f6f72732d6170692d736572766963652e7376673f7374796c653d666c61742d7371756172652535442829)

a simple Laravel package for the OpenRouteService Api

Installation, and Usage Instructions
------------------------------------

[](#installation-and-usage-instructions)

This package allows you to consume OpenRouteService Api using laravel.

```
composer require h-ishak/ors-api-service

```

Set API key in the .env

```
ORS_API_KEY = some key
```

Once installed you can do stuff like this:

```
    $ORS = new OpenRouteService();
    $response = $ORS->getDirectionsWithGpx(OpenRouteService::PROFIL_DRIVING_CAR,[[8.681495,49.41461],[8.687872,49.420318]]);
    return $response;
```

here is a list of the available profiles :

ConstValuePROFIL\_DRIVING\_CAR"driving-car"PROFIL\_DRIVING\_HGV"driving-hgv"PROFIL\_CYCLING\_HGV"cycling-hgv"PROFIL\_CYCLING\_REGULAR"cycling-regular"PROFIL\_CYCLING\_ROAD"cycling-road"PROFIL\_CYCLING\_MOUNTAIN"cycling-mountain"PROFIL\_CYCLING\_ELETRIC"cycling-electric"PROFIL\_FOOT\_WALKING"foot-walking"PROFIL\_FOOT\_HIKING"foot-hiking"PROFIL\_WHEELCHAIR"wheelchair"list of available endpoints functions :

Function nameendpoint linkgetDirections()[https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/get](https://openrouteservice.org/dev/#/api-docs/v2/directions/%7Bprofile%7D/get)getDirectionsWithSettings()[https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/post](https://openrouteservice.org/dev/#/api-docs/v2/directions/%7Bprofile%7D/post)getDirectionsWithGeoJson()[https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/geojson/post](https://openrouteservice.org/dev/#/api-docs/v2/directions/%7Bprofile%7D/geojson/post)getDirectionsWithGpx()[https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/gpx/post](https://openrouteservice.org/dev/#/api-docs/v2/directions/%7Bprofile%7D/gpx/post)searchGeocode()autocompleteGeocode()reverseGeocode()License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~201 days

Total

3

Last Release

1404d ago

Major Versions

1.1b → 2.x-dev2022-07-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad814ce4cce1532280adda3ddd73b46c517d8e8064015d791bbbb990e5db5d31?d=identicon)[ishaker](/maintainers/ishaker)

---

Top Contributors

[![H-ishak](https://avatars.githubusercontent.com/u/71776062?v=4)](https://github.com/H-ishak "H-ishak (23 commits)")

---

Tags

apidirections-apigeocoding-apilaravelopen-route-servicereverse-geocoding

### Embed Badge

![Health badge](/badges/h-ishak-ors-api-service/health.svg)

```
[![Health](https://phpackages.com/badges/h-ishak-ors-api-service/health.svg)](https://phpackages.com/packages/h-ishak-ors-api-service)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
