flat-duck/distancemetrics-laravel

Laravel wrapper package for the Mapbox API

0.0.1-alpha 2024-02-03 02:04 UTC

This package is auto-updated.

Last update: 2024-10-03 03:26:21 UTC


README

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

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

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].