PHPackages                             diam4ik/teltonika-fm-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. diam4ik/teltonika-fm-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

diam4ik/teltonika-fm-parser
===========================

Teltonika FMXXXX parser library

1.0.4(7y ago)0268MITPHPPHP &gt;=7.0

Since Feb 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Diam4ik/teltonika-fm-parser)[ Packagist](https://packagist.org/packages/diam4ik/teltonika-fm-parser)[ RSS](/packages/diam4ik-teltonika-fm-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (7)Used By (0)

Teltonika FM-XXXX Parser
========================

[](#teltonika-fm-xxxx-parser)

[![Latest Stable Version](https://camo.githubusercontent.com/6cc314ace006b05fe3eb029552d058771e676d83aed7b40c6f4fb319c467058d/68747470733a2f2f706f7365722e707567782e6f72672f6469616d34696b2f74656c746f6e696b612d666d2d7061727365722f762f737461626c65)](https://packagist.org/packages/diam4ik/teltonika-fm-parser) [![Total Downloads](https://camo.githubusercontent.com/a5d498331774b8d2fe7ff68551f44d91902e630a6fb06c01063e7ce8affab294/68747470733a2f2f706f7365722e707567782e6f72672f6469616d34696b2f74656c746f6e696b612d666d2d7061727365722f646f776e6c6f616473)](https://packagist.org/packages/diam4ik/teltonika-fm-parser)

This repository is object oriented library to translate Teltonika protocols.

You could use this library in your server, it will help you talk with Teltonika devices.

It was build with [Teltonika protocols v2.10](FMXXXX_Protocols_v2.10.pdf) documentation.

Requirements:
-------------

[](#requirements)

```
{
    "require": {
        "php": ">=7.0"
    },
    "require-dev": {
        "phpunit/phpunit": "^5.7"
    }
}
```

Usage:
------

[](#usage)

Authentication decode:

```
// Recieve data from tcp socket
$payloadFromDevice = "000F313233343536373839303132333435";

// Decode recieved data
$decoder = new TcpDecoder();

// Check if data which we recieved are authentication or Gps records
if($decoder->isAuthentication($payloadFromDevice)){ // returns true;

    $imei = $decoder->decodeAuthentication($payloadFromDevice);
    echo json_encode(imei);

    // Check if device is authenticated in your system, and then encode response for device
    $encoder = new TcpEncoder();
    $payload = $encoder->encodeAuthentication(true); // Yes, device was authenticated successfully

    // send $payload though the socket.
}
```

Echo will return:

```
{
    "imei": "862259588834290"
}
```

```
// Now we need to wait for next data from the device

// Recieve next payload from the socket (now with data)
$tcpPayloadFromDevice = "00000000000000FE080400000113fc208dff000f14f650209cca80006f...";

// Decode it
$data = $this->decoder->decodeData($payload);

echo json_encode(data);
```

Echo will return:

```
[{
	"dateTime": {
		"date": "2007-07-25 06:46:38.000000",
		"timezone_type": 3,
		"timezone": "UTC"
	},
	"priority": 0,
	"gpsData": {
		"longitude": 25.3032016,
		"latitude": 54.7146368,
		"altitude": 111,
		"angle": 214,
		"satellites": 4,
		"speed": 4,
		"hasGpsFix": true
	}
}, {
	"dateTime": {
		"date": "2007-07-25 06:46:38.000000",
		"timezone_type": 3,
		"timezone": "UTC"
	},
	"priority": 0,
	"gpsData": {
		"longitude": 25.3032016,
		"latitude": 54.7146368,
		"altitude": 111,
		"angle": 214,
		"satellites": 4,
		"speed": 4,
		"hasGpsFix": true
	}
}]
```

See tests for more examples!

Todo:
-----

[](#todo)

- Implement TCP protocol (encode and decode)
- Implement gps sensors data (IOElement)
- Implement UDP protocol (encode and decode)
- Implement SMS protocol

License:
--------

[](#license)

[Public domain](LICENSE.md)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 73.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~200 days

Total

5

Last Release

2567d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62f362a78a079ee61e9649f935edd6f2e02ddac494ad05e94b5f61919b5c36e0?d=identicon)[Diam4ik](/maintainers/Diam4ik)

---

Top Contributors

[![uro](https://avatars.githubusercontent.com/u/5208129?v=4)](https://github.com/uro "uro (17 commits)")[![DmitryOcs](https://avatars.githubusercontent.com/u/42275179?v=4)](https://github.com/DmitryOcs "DmitryOcs (5 commits)")[![gricob](https://avatars.githubusercontent.com/u/22215962?v=4)](https://github.com/gricob "gricob (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/diam4ik-teltonika-fm-parser/health.svg)

```
[![Health](https://phpackages.com/badges/diam4ik-teltonika-fm-parser/health.svg)](https://phpackages.com/packages/diam4ik-teltonika-fm-parser)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M344](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
