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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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].


All versions of mapslat-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-curl Version *
symfony/http-client Version ^6.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mapslat/mapslat-php contains the following files

Loading the files please wait ....