Download the PHP package brainstud/geolocation without Composer
On this page you can find all versions of the php package brainstud/geolocation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brainstud/geolocation
More information about brainstud/geolocation
Files in brainstud/geolocation
Package geolocation
Short Description A laravel package to get the country and timezone (geolocation) of the request
License MIT
Homepage https://github.com/brainstud/geolocation
Informations about the package geolocation
Laravel Geolocation
Get the country & timezone of the request with the cloudflare country header or fallback to a paid geo-locator API.
`
The aim of this package prioritize the cloudflare header to keep costs down. Only if that fails an API-call will be done. By this philosophy only minimal info will be available. (country code and timezone)
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Supported services
Contributing
You can add a geocoder by creating a class in the src/GeoLocators
folder that implements GeoLocatorContract
.
Then add it to the GeoLocator
enum and GeoLocatorFactory
.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Niek Pijp
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of geolocation with dependencies
guzzlehttp/guzzle Version ^7.4
illuminate/contracts Version ^9.0
spatie/laravel-package-tools Version ^1.9.2