tarik02 / yandex-maps-embed
Laravel package to make and embed yandex maps on your site.
v1.0.1
2017-07-08 19:15 UTC
Requires
- php: >=5.6.0
This package is auto-updated.
Last update: 2025-03-28 01:00:17 UTC
README
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) }}