Download the PHP package nykopol/gpsd-client without Composer

On this page you can find all versions of the php package nykopol/gpsd-client. 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 gpsd-client

GPSD Client

SensioLabsInsight

PHP Client to retrieve informations from a GPSD service. More informations about GPSD: http://catb.org/gpsd/

Installation

Usage

Basic usage :

Documentation

__construct($host = 'localhost', $port = 2947)

The class instantiation accept two parameters: $host string (default: localhost) the host we want to listen to $port integer (default: 2947) the socket port

connect()

This method connect the socket to the service. The returned value is the string returned by the service identifying itself. ex.: {"class":"VERSION","release":"2.93","rev":"2010-03-30T12:18:17", "proto_major":3,"proto_minor":2}

watch($enable = true, $format = 'json')

The watch method tell the service to start report sensors events. This method accept two parameters: $enable bool (default: true) Tell the service to start or stop watching. $format string (default: json) Set the desired format for the returned datas

getNext($class, $buffer = false, $blocking = true)

Return the next message of the given class. Current service class are WATCH, DEVICES, DEVICE, TPV, AIS. The method accept the tree parameters: $class string The wanted class name. $buffer bool (default: false) Once the device synced, the service is generaly reporting one message per second. This parameter specify if we want the next message from the buffer or the next message in the time. $blocking bool (default: true) Wait for the next message or return null if there is no new message. This option is relevant only if the buffer is enabled.

For exemple, if you are connected to the service since 1 minute, and that the sensor is synced, the next message from the buffer is proably old of about 1 minute. While requesting the next message in time will flush the buffer then wait for the next message of the desired class.

The returned value is the raw string returned by the service. So if you asked for json format with the watch() method, the returne value will look like : {"class":"TPV","tag":"MID2","time":"2010-04...

disconnect()

Disconnect from the service.


All versions of gpsd-client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3||^7.0
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 nykopol/gpsd-client contains the following files

Loading the files please wait ....