Tarik02 / yandex-maps-embed by Tarik02

Laravel package to make and embed yandex maps on your site.
17
0
2
Package Data
Maintainer Username: Tarik02
Maintainer Contact: Taras.Fomin@gmail.com (Tarik02)
Package Create Date: 2017-07-08
Package Last Update: 2017-07-08
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2025-02-06 03:00:45
Package Statistics
Total Downloads: 17
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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) }}