Download the PHP package geotab/mygeotab-php without Composer

On this page you can find all versions of the php package geotab/mygeotab-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 mygeotab-php

MyGeotab PHP API Client

CI Latest Version Monthly Downloads

PHP client for the MyGeotab API.

Requirements

Installation

Quick Start

Constructor: new Geotab\API($username, $password, $database, $server = "my.geotab.com")

The $server parameter defaults to my.geotab.com. After authenticate(), it is updated automatically if the account lives on a different server node.

Error handling

Methods return results directly and throw Geotab\MyGeotabException on error:

All methods also accept optional success and error callbacks if you prefer that style:

Logging

The library does not log internally. To log HTTP requests and responses, pass a pre-configured Guzzle client with a log middleware attached. This works with any PSR-3 compatible logger such as Monolog:

API Reference

Method Description
authenticate() Exchanges credentials for a session token. Updates $server automatically if the account is on a different node.
get($type, $params) Retrieves or searches for entities.
add($type, $entity) Creates a new entity.
set($type, $entity) Updates an existing entity.
remove($type, $entity) Deletes an entity.
call($method, $params) Calls any MyGeotab API method by name.
multiCall($calls) Executes multiple API calls in a single HTTP request.
getCredentials() Returns the current Geotab\Credentials object.
setCredentials($credentials) Replaces the current credentials.

See the Geotab SDK documentation for available entity types, methods, and search parameters.

Examples

The examples/ directory contains two runnable samples.

CLI sample — exercises Get, Set, Add, and MultiCall against a live database:

Top Speeding Violations — a web UI example. Serve with PHP's built-in server:

Then open http://localhost:7000 in your browser.

Contributing

Clone the repo and install dependencies:

Run the test suite:

Integration tests require credentials supplied as environment variables; they are skipped automatically if not set:

Pull requests are welcome. For major changes, open an issue first to discuss what you'd like to change.

License

MIT © Geotab. See LICENSE for details.


All versions of mygeotab-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
guzzlehttp/guzzle Version ^7.9.2
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 geotab/mygeotab-php contains the following files

Loading the files please wait ...