Download the PHP package mapslat/mapslat-php without Composer
On this page you can find all versions of the php package mapslat/mapslat-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mapslat/mapslat-php
More information about mapslat/mapslat-php
Files in mapslat/mapslat-php
Package mapslat-php
Short Description Package provides the ability to interact with the Maps.lat API.
License MIT
Informations about the package mapslat-php
Maps.lat PHP client
This is a Maps.lat APi client written in PHP. This package contains methods for interacting with APi. Below are some usage examples. You can find more information about the APi in the Maps.lat documentation.
Installation
You must use Composer to install this package. You can install Composer using the command.
Package supports PHP version 8.0 and higher. To install this package, run the following command.
Usage
The examples below assume that you are using Composer autoloader in your application. The autoloader is called by the following code.
Request structure
Create an instance of the class and pass one or two parameters. The first parameter is your API key. The second optional parameter is the flag, which determines whether to throw exceptions on errors (defaults to true).
The request is built from an array or from a json string that you pass to the method you are calling.
Response structure
The response is returned as an instance of . You can call interface methods that return headers, data, http status, etc. See the Symfony HttpClient documentation for more details.
Requests to API
For each Maps.lat API endpoint, there is a method for interactions.
Geocoding
Address autocomplete
Routing
Isoline
Matrix
Map matching
Contribute
This package is Open Source, published under the MIT license. You can participate in its development and improvement.
We will be glad if you take part in the work on this package. Create issues if you find bugs, develop your own and review other people's pull requests, respond to other people's issues, and so on.
Support and feedback
Be sure to visit the Maps.lat documentation for additional information about our API.
If you find a bug, please submit the issue in Github directly.
If you need further assistance email us at [email protected].