Download the PHP package wimski/laravel-nominatim without Composer
On this page you can find all versions of the php package wimski/laravel-nominatim. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-nominatim
Laravel integration for Nominatim Geocoding API Client
This package is a Laravel integration of the Nominatim Geocoding API Client.
Changelog
View the changelog.
Usage
Install package
Example
PSR HTTP
The underlying Client
class uses Discovery by default to get instances of the following contracts:
Psr\Http\Client\ClientInterface
Psr\Http\Message\RequestFactoryInterface
Psr\Http\Message\UriFactoryInterface
This means that you need to include (a) PSR compatible package(s) in your project.
If you already have setup a specific HTTP client configuration in your project, which you would also like to use for Nominatim requests, you can pass these in by extending the service provider.
1. Disable package discovery
composer.json
2. Extend service provider
3. Include extended service provider
config/app.config
Services
Services for the following providers are currently available:
- Nominatim
NOMINATIM_SERVICE=nominatim
NOMINATIM_NOMINATIM_USER_AGENT=
(required)NOMINATIM_NOMINATIM_EMAIL=
(required)
- LocationIQ
NOMINATIM_SERVICE=location_iq
NOMINATIM_LOCATION_IQ_KEY=
(access token, required)
- Generic
NOMINATIM_SERVICE=generic
PHPUnit
PHPStan
Credits
- wimski
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-nominatim with dependencies
laravel/framework Version ^8.0 || ^9.0
wimski/nominatim-geocoding-api-client Version ^v1.1