PHPackages                             flat-duck/distancemetrics-laravel - 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. flat-duck/distancemetrics-laravel

ActiveLibrary[API Development](/categories/api)

flat-duck/distancemetrics-laravel
=================================

Laravel wrapper package for the Mapbox API

0.0.1-alpha(2y ago)12MITPHP

Since Feb 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Flat-Duck/distancemetrics-laravel)[ Packagist](https://packagist.org/packages/flat-duck/distancemetrics-laravel)[ RSS](/packages/flat-duck-distancemetrics-laravel/feed)WikiDiscussions main Synced 1mo ago

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

distancemetrics-laravel
=======================

[](#distancemetrics-laravel)

This is a basic wrapper package for the mapbox directions api  API. It exposes a single class function, `dm()`, that you can use across your Laravel controllers, models, and views.

Installation
------------

[](#installation)

Run `composer require flat-duck/distancemetrics-laravel` from your Laravel application root. Once that's finished, you'll need to open up your `.env` file and add the following to the bottom:

```
DISTANCEMETRICS_API_KEY={your-api-key}
```

*Optionally:* You can publish the config file from the package by running:

```
php artisan vendor:publish --provider="FlatDuck\Distancemetrics\DistancemetricsServiceProvider"
```

Usage
-----

[](#usage)

More Info
---------

[](#more-info)

This package was developed as part of a project I was working on.

If you have any questions, feel free to reach out to me \[@flat-duck\].

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

830d ago

### Community

Maintainers

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

---

Top Contributors

[![Flat-Duck](https://avatars.githubusercontent.com/u/7350041?v=4)](https://github.com/Flat-Duck "Flat-Duck (2 commits)")

### Embed Badge

![Health badge](/badges/flat-duck-distancemetrics-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/flat-duck-distancemetrics-laravel/health.svg)](https://phpackages.com/packages/flat-duck-distancemetrics-laravel)
```

###  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)
