Download the PHP
package bulton-fr/nmea-parser without Composer
On this page you can find all versions of the php package
bulton-fr/nmea-parser. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
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.
Read a NMEA line, detect the frame type and parse the line to obtain all datas.
Supported frame type :
GGA
GLL
GSA
GSV
RMC
VTG
Install it
Use composer
Add into composer.json file :
Use it
$frame contains all datas about the readed line. If you var_dump($frame) :
There is a getter for all properties, except for frameRegex, message and checksum.
Add a new frame type
Add a new class into the namespace BultonFr\NMEA\Frames. Else, you need to extends Parser class and redefine the method obtainFrameParser.
The name of the class need to be the frame type name. Example GGA for frame type GGA. This class should extends the class \BultonFr\NMEA\Frame.
You should have properties $frameType and $frameRegex. And the method decodeFrame should be declared.
$frameType should contains the name of the frame type.
$frameRegex is the regex to use for parse the line.
decodeFrame is the method called after the parse of the line with the regex. The argument of this method is the third argument of preg_match function. So this argument contain all part of the message. Into this method, you can populate your properties with the line value.
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 bulton-fr/nmea-parser contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.