anotterweb / ux-location
A Symfony bundle providing extra form field to select location with Mapbox map
Package info
github.com/anotterweb/ux-location
Type:symfony-bundle
pkg:composer/anotterweb/ux-location
Requires
- php: >=8.4
- symfony/asset-mapper: ^8.0
- symfony/config: ^8.0
- symfony/dependency-injection: ^8.0
- symfony/form: ^8.0
- symfony/http-kernel: ^8.0
README
A Symfony bundle providing an extra form field to select a location using an interactive Mapbox map. It integrates seamlessly with Symfony UX (Stimulus & AssetMapper).
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
composer require anotterweb/ux-location
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
composer require anotterweb/ux-location
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php file of your project:
// config/bundles.php return [ // ... Anotterweb\UxLocation\AnotterWebUxLocationBundle::class => ['all' => true], ];
Documentation
Full documentation is available in the doc/index.md file, including:
- Requirements and configuration (Mapbox access token)
- JavaScript setup (AssetMapper)
- Usage in Symfony forms and Twig
- Available
LocationTypeoptions