cmsparkimeter / apiwrapper
Bundle to be shared between the back and the front to communicate with the api
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Type:project
pkg:composer/cmsparkimeter/apiwrapper
Requires
- php: ^7.0
- mashape/unirest-php: ^3.0
Requires (Dev)
README
It is a package that allows you to communicate with the Parkimeter CMS API.
Requirements
- cURL
- PHP 5.4+
Installation
Using Composer
To install CMSParkimeterApiWrapper with Composer, just add the following to your composer.json
file:
{
"require": {
"cmsparkimeter/apiwrapper": "0.0.1"
}
}
or by running the following command:
composer require cmsparkimeter/apiwrapper
Basic Usage
Get all parking
Example:
$api = new Api();
$parkings = $api->parking()->get();
$parkings->getParking(); //Response Body (Array in this case)
$parkings->getCode(); //200