Download the PHP package lbcdev/livewire-maps-core without Composer

On this page you can find all versions of the php package lbcdev/livewire-maps-core. 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 livewire-maps-core

Livewire Maps Core

Tests Latest Stable Version Total Downloads License

A Livewire component for interactive maps with Leaflet.js integration. Core package for the LBCDev Maps Suite.

Features

Requirements

Installation

Publish the configuration file:

Quick Start

Basic Usage

With Single Marker

With Multiple Markers

Configuration

The package comes with sensible defaults, but you can customize everything:

Component API

Properties

Property Type Default Description
$marker Marker\|null null Single marker to display
$markers MarkerCollection\|null null Collection of markers
$center array config Map center ['lat' => X, 'lng' => Y]
$zoom int config Initial zoom level
$height string '500px' Map container height
$interactive bool true Enable/disable interactions
$options array config Leaflet map options

Methods

Method Parameters Description
addMarker() Marker $marker Add a marker to the map
removeMarker() string $id Remove a marker by ID
clearMarkers() - Remove all markers
flyTo() float $lat, float $lng, int $zoom Center map with animation

Computed Properties

Property Type Description
markersData array Get all markers as array
hasCoordinates bool Check if valid coordinates

Events

Emitted Events

Listening to Events

Advanced Usage

Custom Map Options

Read-Only Mode

Custom Height

Legacy Mode (Separate lat/lng)

For backward compatibility:

Using in Livewire Components

Testing

With coverage:

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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

Related Packages

This package is part of the LBCDev Maps Suite:


All versions of livewire-maps-core with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3
illuminate/support Version ^10.0|^11.0|^12.0
livewire/livewire Version ^3.0
lbcdev/map-geometries Version ^1.0
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 lbcdev/livewire-maps-core contains the following files

Loading the files please wait ...