Download the PHP package tldev-de/mygeotab-php without Composer
On this page you can find all versions of the php package tldev-de/mygeotab-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mygeotab-php
MyGeotab PHP API Client
:warning: This is an unofficial fork of the unofficial php api client. It equals the unofficial php client except the versions of some dependencies (
guzzlehttp/guzzle
andmonolog/monolog
) to make them compatible with modern php applications.
Provides a PHP client that can easily make API requests to a MyGeotab server.
Installation
You can use composer and run the following command in your repo:
This repository requires PHP >=7.1, but if you're going to try integrate this into older versions
then you can look at the code in src
directly.
Quick start
Instead of using the callback syntax, you can simply use the return result directly. Keep in mind, if an error occurs you won't be informed! It will throw as a MyGeotabException
, so remember to use try & catch.
Examples
In the examples
folder, you can see the "Top Speeding Violations" example that was presented in the Dev Channel video. The code is not yet hooked up with the Node server and will likely
have difficulty with PSR, but the code is there and should be easy to understand.
Trick: PHP-CGI NodeJS server
If you have a PHP-CGI handler installed, you can run a web server with
just server.js
in NodeJS. I found this quick and easy on Windows instead of setting up a complex web server.
First, find the php-cgi executable on your machine (e.g. C:\Program Files\PHP\v7.2\php-cgi.exe) and place that in the file. Then run:
Should now visit localhost:8080/sample.php and voila - you're serving PHP from a NodeJS server!
All versions of mygeotab-php with dependencies
guzzlehttp/guzzle Version ^7.0
monolog/monolog Version ^2
ext-json Version *