PHPackages                             daavelar/laravel-geocode - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. daavelar/laravel-geocode

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

daavelar/laravel-geocode
========================

This is a Laravel package that provides functionalities for geocoding addresses using OpenCage API

1.0.1(1y ago)031PHP

Since Jul 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/daavelar/laravel-geocode)[ Packagist](https://packagist.org/packages/daavelar/laravel-geocode)[ RSS](/packages/daavelar-laravel-geocode/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Laravel Geocode
===============

[](#laravel-geocode)

Description
-----------

[](#description)

This is a Laravel wrapper for leveraging the functionalities of geocoding APIs. It simplifies the process of integrating geocoding services into your Laravel applications.

Features
--------

[](#features)

- Easy integration with Laravel
- Supports multiple geocoding services
- Simplified API for geolocation tasks

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

[](#installation)

Use composer to install this package:

```
composer require daavelar/laravel-geocode
```

Configuration
-------------

[](#configuration)

After the package has been installed, you will need to register it in the `providers` array in your `config/app.php`file.

```
'providers' => [
    // Other service providers...

    Daavelar\LaravelGeocode\LaravelGeoCodeServiceProvider::class,
],
```

You should also publish the config file with the following artisan command:

```
php artisan vendor:publish --provider="Daavelar\LaravelGeocode\LaravelGeoCodeServiceProvider"
```

This command will publish a `geocode.php` config file to your `config` directory. If you open this file, you will see all the available settings you can adjust for this package.

Usage To use the geocoding functionality, you can use the GeoCodeFacade provided by the package. Here is an example of how to use it:

```
