PHPackages                             ginocampra/laravel-leaflet - 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. ginocampra/laravel-leaflet

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

ginocampra/laravel-leaflet
==========================

Allows you to create pages with Leaflet maps in an integrated way with Laravel

1.0.7(11mo ago)01.8k1MITBlade

Since Sep 5Pushed 11mo ago1 watchersCompare

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

READMEChangelog (7)DependenciesVersions (9)Used By (0)

Laravel Leaflet Package
-----------------------

[](#laravel-leaflet-package)

[![Laravel 7|8|9|10](https://camo.githubusercontent.com/e7d87b0ce53a3af8f1fcbd835f3ec582e396211cfb737e970f5ad9fd4cb07ba3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d382537433925374331302d6f72616e67652e737667)](http://laravel.com)[![Latest Stable Version](https://camo.githubusercontent.com/d7ea89e4ee9296fa8c946487afba6e5afdc6944852fedf52e219cf74141b19b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67696e6f63616d7072612f6c61726176656c2d6c6561666c6574)](https://packagist.org/packages/ginocampra/laravel-leaflet)[![Total Downloads](https://camo.githubusercontent.com/8a6be2334d547979157eb04be54d9b8e6de3c721d0aeb7179fffb99c933e8649/68747470733a2f2f706f7365722e707567782e6f72672f67696e6f63616d7072612f6c61726176656c2d6c6561666c65742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/ginocampra/laravel-leaflet)[![License](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://packagist.org/packages/ginocampra/laravel-leaflet)

Allows you to create pages with Leaflet maps in an integrated way with Laravel.

How to Install:

Install a basic Laravel Project.

```
composer create-project laravel/laravel:^8.0 example-app

cd example-app
```

Run this command to install the package and configure the Laravel Project

```
composer require ginocampra/laravel-leaflet
```

Run the server

```
php artisan serve
```

Open you browser ""

You will see:

[![LaravelLeaflet](https://github.com/ginocampra/laravel-leaflet/raw/master/images/itworks.png)](https://github.com/ginocampra/laravel-leaflet/blob/master/images/itworks.png)

Blade Component
---------------

[](#blade-component)

You can use this to inject a Leaflet Map in you Blade views

Implement $title and $markers in your Controller and pass to view

```
    $options = [
        'center' => [
            'lat' => -23.347509137997484,
            'lng' => -47.84753617004771
        ],
        'googleview' => true,
        'zoom' => 18,
        'zoomControl' => true,
        'minZoom' => 13,
        'maxZoom' => 18,
        'width' => '100%', // optional default = 100%
        'height' => '600px',  // optional default = 600px
    ];
    $initialMarkers = [
        [
            'position' => [
                'lat' => -23.347509137997484,
                'lng' => -47.84753617004771
            ],
            'draggable' => false,
            'title' => 'Tatuí - SP'
        ]
    ];
    $initialPolygons = [
        [
            [-23.34606370264136 , -47.84818410873414],
            [-23.34575341324051 , -47.84759938716888],
            [-23.34615728184211 , -47.84729361534119],
            [-23.34651189716213 , -47.84792125225068]
        ]
    ];
    $initialPolylines = [
            [
                [-23.348914298657980 , -47.850147485733040],
                [-23.347850469110245 , -47.848109006881714],
                [-23.349209805352476 , -47.847293615341194],
                [-23.347781516900888 , -47.844675779342660]
            ]
    ];
    $initialRectangles = [
        [
            [-23.347683013682527 , -47.85067319869996],
            [-23.346727528670904 , -47.84879565238953]
        ]
    ];
    $initialCircles = [
        [
            'position' => [
                'lat' => -23.346569922234977,
                'lng' => -47.84376382827759
            ],
            'radius' => 80.68230575309364
        ]
    ];
    $title = 'Initial Map';

    return view('welcome',compact('options','title','initialMarkers','initialPolygons','initialPolylines','initialRectangles','initialCircles'));
```

Drop the blade component in the view

```

```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/ginocampra/laravel-leaflet/blob/master/LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance50

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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 ~105 days

Recently: every ~131 days

Total

7

Last Release

354d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61fb390ea94ebdfaf46f03ead5bab735a8956836b44c854653244d4632f6036a?d=identicon)[gcampra](/maintainers/gcampra)

---

Top Contributors

[![ginocampra](https://avatars.githubusercontent.com/u/24875636?v=4)](https://github.com/ginocampra "ginocampra (32 commits)")

### Embed Badge

![Health badge](/badges/ginocampra-laravel-leaflet/health.svg)

```
[![Health](https://phpackages.com/badges/ginocampra-laravel-leaflet/health.svg)](https://phpackages.com/packages/ginocampra-laravel-leaflet)
```

###  Alternatives

[butschster/meta-tags

The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project

628730.7k2](/packages/butschster-meta-tags)

PHPackages © 2026

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