tarik02 / yandex-maps-embed
Laravel package to make and embed yandex maps on your site.
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=5.6.0
This package is auto-updated.
Last update: 2025-01-28 00:36:58 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) }}