Download the PHP package lachlanhickey/laravel-maps without Composer

On this page you can find all versions of the php package lachlanhickey/laravel-maps. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-maps

Maps for your Laravel application

GitLab Repository [Laravel Version]() Latest Stable Version StyleCI License Total Downloads

Using this package you can easily display maps on your website.

Supported map services:

Note: Yandex Maps API does not work in Chrome.

Features

Google Maps OpenStreetMap Bing Maps MapQuest Yandex Maps MapKit
Map
Markers
Marker Links
Marker Popups
Custom Marker Icons
Marker Click Event

Installation

This package can be installed through Composer.

Publish the compiled assets to public/vendor/maps with one of these commands:

When updating, use the --force switch to overwrite existing assets:

Optionally, you can also publish the config file of this package with this command to config/vendor/maps.php:

Usage

Load the map styles by adding the following directive to your Blade template before the </head> closing tag.

Then add the following directive to your Blade template before the </body> closing tag, to load the map scripts.

Basic Map

Display a map by adding the @map directive to your Blade template.

Map With Markers

You can also show markers / pins / annotations:

Marker Links

Open a url when a marker is clicked.

Marker Popups

Show a popup when a marker is clicked. The popup attribute may contain HTML markup.

Custom Marker Icons

Show a custom marker icon. Absolute and relative URLs are supported.

Additionally you may also specify the icon image size and anchor in pixels. The image will be aligned so that the tip of the icon is at the marker's geographical location.

Styling

To adjust the height of the map use CSS:

Change the background of the map container:

Fade in by default when using Bootstrap 3.3.7 or 4+. To replicate or modify the animation use following CSS:

Events

Map Initialized

The event LaravelMaps:MapInitialized will be dispatched when a map and its markers were initialized. The DOM element, map, markers and service name can be accessed via the event details.

Please refer to the respective documentation for advanced customization:

Marker Clicked

The event LaravelMaps:MarkerClicked will be dispatched when a marker was clicked. The DOM element, map, marker and service name can be accessed via the event details.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

MIT

Copyright (c) 2018-present Go NoWare

FOSSA Status


All versions of laravel-maps with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lachlanhickey/laravel-maps contains the following files

Loading the files please wait ...