tarik02/yandex-maps-embed

Laravel package to make and embed yandex maps on your site.
21
Install
composer require tarik02/yandex-maps-embed
Latest Version:v1.0.1
PHP:>=5.6.0
License:MIT
Last Updated:Jul 8, 2017
Links: GitHub  ·  Packagist
Maintainer: Tarik02

Yandex Maps Embed

Installation

Required composer dependency:

composer require "tarik02/yandex-maps-embed"

Register ServiceProvider(add it to config/app.php):

  Tarik02\YandexMapsEmbed\Providers\YandexMapsEmbedServiceProvider::class,

Usage

$name is parsed name. $options is options for frame(['width' => 560, 'height' => 400]).

Get name:

	$name = yandex_map_parse($string); // Using helper
	$name = YandexMapEmbed::parse($string); // Using facade

Show frame:

	@yandexMap($name, $options)
	{{ yandex_map_make($name, $options) }}
	{{ YandexMapEmbed::make($name, $options) }}