Search by

sy / bootstrap-location

syone

Plugin for adding geolocation feature

Package info

github.com/syframework/bootstrap-location

pkg:composer/sy/bootstrap-location

Statistics

Installs: 391

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.5.2 2026-11-29 18:20 UTC

This package is auto-updated.

Last update: 2026-11-29 18:21:19 UTC


README

sy/bootstrap plugin for adding IP geolocation service in your sy/project based application.

Installation

From your sy/project application directory:

composer require sy/bootstrap-location

The package ships no template, asset, stylesheet, migration or translation: @sy install has nothing to copy and no schema to migrate for it.

GeoLite2 databases

The databases are not shipped. Service\Location reads them from inside the package directory:

vendor/sy/bootstrap-location/geolite2/GeoLite2-Country.mmdb
vendor/sy/bootstrap-location/geolite2/GeoLite2-City.mmdb

Download them from MaxMind and drop them there. A composer install or composer update that reinstalls the package deletes that directory, so keep a copy outside vendor/ and restore it after an upgrade. A missing database throws from getCountry() and getCity(); getCountryIsoCode() and getLatLng() catch that and fall back to '' and to their $default coordinates (Paris).