PHPackages                             uro/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. uro/teltonika-fm-parser

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

uro/teltonika-fm-parser
=======================

Teltonika FMXXXX parser library

3.0.0(2y ago)7548.2k↓54.2%47[4 PRs](https://github.com/uro/teltonika-fm-parser/pulls)MITPHPPHP &gt;=8.1

Since Feb 18Pushed 4mo ago11 watchersCompare

[ Source](https://github.com/uro/teltonika-fm-parser)[ Packagist](https://packagist.org/packages/uro/teltonika-fm-parser)[ RSS](/packages/uro-teltonika-fm-parser/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (5)Versions (8)Used By (0)

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

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

[![Build Status](https://camo.githubusercontent.com/066fe1778223224a78d9e3c470e1776760889aecb6199fb500f1105cb8694468/68747470733a2f2f7472617669732d63692e6f72672f75726f2f74656c746f6e696b612d666d2d7061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/uro/teltonika-fm-parser) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/2532bc6ea52ed315df7d30d225b8d69ceb599aca7cdf908b65566828d4b83129/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f75726f2f74656c746f6e696b612d666d2d7061727365722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/uro/teltonika-fm-parser/?branch=master) [![CodeFactor](https://camo.githubusercontent.com/cf23cfbb8dde8c66d050fcfe9dd2daaf5e93284f9e3b99214a60286df9cee0f0/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f75726f2f74656c746f6e696b612d666d2d7061727365722f6261646765)](https://www.codefactor.io/repository/github/uro/teltonika-fm-parser) [![Latest Stable Version](https://camo.githubusercontent.com/3c69a4872b01656aaad1010c5138c539cd0333657bac61483a7b24fc2d2ed253/68747470733a2f2f706f7365722e707567782e6f72672f75726f2f74656c746f6e696b612d666d2d7061727365722f762f737461626c65)](https://packagist.org/packages/uro/teltonika-fm-parser) [![Total Downloads](https://camo.githubusercontent.com/e3afc62f3795bdc8e8e3706e1321d6cba42c7e163005d0f5a353e23ab3a01cf6/68747470733a2f2f706f7365722e707567782e6f72672f75726f2f74656c746f6e696b612d666d2d7061727365722f646f776e6c6f616473)](https://packagist.org/packages/uro/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)

```
$parser = new FmParser('tcp');

// Decode IMEI
$imei = $parser->decodeImei($payload);

// Decode Data Packet
$packet = $parser->decodeData($payload);
```

Examples
--------

[](#examples)

### TCP

[](#tcp)

```
	$parser = new FmParser('tcp');
	$socket = stream_socket_server("tcp://0.0.0.0:8043", $errno, $errstr);
	if (!$socket) {
		throw new \Exception("$errstr ($errno)");
	} else {
		while ($conn = stream_socket_accept($socket)) {

			// Read IMEI
			$payload = fread($conn, 1024);
			$imei = $parser->decodeImei($payload);

			// Accept packet
			fwrite($conn, Reply::accept());

			// Decline packet
			// fwrite($conn, Reply::reject());

			// Read Data
			$payload = fread($conn, 1024);
			$packet = $parser->decodeData($payload);

			// Send acknowledge
			fwrite($conn, $parser->encodeAcknowledge($packet));

			// Close connection
			fclose($conn);
		}

		fclose($socket);
	}
}
```

License:
--------

[](#license)

[Public domain](LICENSE.md)

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance50

Moderate activity, may be stable

Popularity47

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~601 days

Total

5

Last Release

1016d ago

Major Versions

1.0.2 → 2.0.02021-05-11

2.0.0 → 3.0.02023-09-21

PHP version history (2 changes)1.0.0PHP &gt;=7.0

3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/20ed9d53b8613cbeba7c0ca2296274048fc9306d1d739912d95f5243572e93d8?d=identicon)[uro](/maintainers/uro)

---

Top Contributors

[![uro](https://avatars.githubusercontent.com/u/5208129?v=4)](https://github.com/uro "uro (20 commits)")[![algirdas-iterato](https://avatars.githubusercontent.com/u/72155819?v=4)](https://github.com/algirdas-iterato "algirdas-iterato (3 commits)")[![gricob](https://avatars.githubusercontent.com/u/22215962?v=4)](https://github.com/gricob "gricob (1 commits)")

---

Tags

gpsgps-librarylibraryparserphpphp7teltonikatracker

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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