Download the PHP package kpebedko22/filament-yandex-map without Composer

On this page you can find all versions of the php package kpebedko22/filament-yandex-map. 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 filament-yandex-map

Filament Yandex Map

This package provides a set of tools for using Yandex Map within the Laravel Filament.

Installation

You can install the package via composer:

Modify services.php config file. This is the contents of the config file:

Optionally, you can publish the translations using:

Usage

Geometries

The package provides work with the following types of geometries (geo-objects):

Storing geometries in database

Since there are different ways to store geo-object data in database table, the package cannot cover all options. But it provides two out-of-the-box usage options:

Json column

The package uses array of two coordinates [lat, lng] for storing point coordinates. E.g.: [53.35, 83.75], where 53.35 is latitude and 83.75 is longitude.

If you're store coordinates of point as json-object, e.g.: {"lat": 53.35, "lng": 83.75}, then you should use ->usingArray('lat', 'lng') method.

Postgis column (PostgreSQL)

For ease of working with postgis columns it's recommended to use Laravel Magellan package.

The package supports work with the following geometries:

Class Migration
Clickbar\Magellan\Data\Geometries\Point $table->magellanPoint('point')
Clickbar\Magellan\Data\Geometries\LineString $table->magellanLineString('line')
Clickbar\Magellan\Data\Geometries\Polygon $table->magellanPolygon('polygon')

Separate lat/lng columns

If you are storing latitude and longitude of the point in the different columns of your database table, then you need to write your own implementation of formatStateUsing and mutate data before saving.

Localization

The list of available locales can be found in YandexMapLang enum.

Geometries control buttons

List of available control buttons:

Since the form may require using several map components, there is a nuance with the automatic inclusion of editor.startDrawing(), editor.startEditing(). The last loaded map component will dominate. Therefore, in order to edit/draw on the map, control buttons are added that include these functions. There is also a button to delete a geo-object.

Default state of control buttons:

You are free to change the visual state of this control buttons.

Geometries properties and options

You can modify geo-object properties and options.

Testing

No tests yet.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-yandex-map with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-package-tools Version ^1.16
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 kpebedko22/filament-yandex-map contains the following files

Loading the files please wait ....