Download the PHP package openbuildings/jam-locations without Composer
On this page you can find all versions of the php package openbuildings/jam-locations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openbuildings/jam-locations
More information about openbuildings/jam-locations
Files in openbuildings/jam-locations
Package jam-locations
Short Description Geoip and IP integration
License BSD-3-Clause
Homepage https://github.com/OpenBuildings/jam-locations
Informations about the package jam-locations
Jam Locations
This module adds hierarchical locations (continents, countries, cities), by leveraging openbuildings/jam-closuretable. As well as auto initialized ip field and countries / cities set automatically through geolocation.
Usage
Using ip field is as easy as just defining it:
Auto Location is a bit more involved:
Then if you do not set city or country association, it would use the ip field to get a geoip record, and from there try to find / create the appropriate location.
Lastly the location_parent behavior is used to assign a parent to a location association if both the child and the parent are present in the model:
Requirement
This module requires php geoip extension.
License
Copyright (c) 2012-2013, OpenBuildings Ltd. Developed by Ivan Kerin as part of clippings.com
Under BSD-3-Clause license, read LICENSE file.
All versions of jam-locations with dependencies
composer/installers Version ^1
openbuildings/jam Version ^0.6
openbuildings/jam-closuretable Version ^0.2