PHPackages                             kletellier/adsb - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kletellier/adsb

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kletellier/adsb
===============

Adsb is a PHP library that decode adsb DF17 message issued from dump1090 raw message (port3002).

7522PHP

Since Oct 1Pushed 8y ago2 watchersCompare

[ Source](https://github.com/kletellier/adsb)[ Packagist](https://packagist.org/packages/kletellier/adsb)[ RSS](/packages/kletellier-adsb/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Ads-b decoder for PHP
---------------------

[](#ads-b-decoder-for-php)

This component decode DF17 raw message from dump1090 program (port 30002). \[dump1090\] ()

For using it :

in the composer.json file add this require :

```
"require": {
    "kletellier/adsb": "dev-master"
}

```

after composer update you can use it by adding the composer autoload to your project.

```
require 'vendor/autoload.php';
```

\###Example :

```
use Kletellier\Adsb;
// use message 8D4CA2AC9940E9B0600403144BEB
$adsb = new Adsb("8D4CA2AC9940E9B0600403144BEB");
if($adsb->isValid())
{
    // message CRC  is correct
    // you can test the message type
    if($adsb->isisAircraftVelocitiesMsg())
    {
        echo "Aircraft Icao code : " . $adsb->getIcao(); ."\n"; // present in all messages
        echo "Actual speed : " . $adsb->getSpeed()."\n";
        echo "Actual heading : " . $adsb->getHeading()."\n";
    }
    if($adsb->isAircraftIdentificationMsg())
    {
        echo "Aircraft Icao code : " . $adsb->getIcao(); ."\n"; // present in all messages
        echo "Actual flight number : " . $adsb->getIdent()."\n";
    }
}
```

For retrieve position it's an different way. You must have 2 messages, one odd message, and one even message. You must specify the Epoch time for each message in constructor (or by setTs method). The Epoch Time difference for 2 messages must not greater than 10 seconds, or result will be incorrect.

Example :

```
use Kletellier\Adsb;
use Kletellier\AdsbUtils;

// use message
$adsb_odd = new Adsb("*8D4CA1FA58BDF40C1A61F7846E27;",1443430837);
$adsb_even = new Adsb("*8D4CA1FA58BDF095F26507CB5A87;",1443430840);
// this message was necessary from same icao aircraft and a position message
// test : $adsb_odd->isAircraftPositionMsg() must be true
// check odd and even bit
if($adsb_odd->getOe=="1" && $adsb_even->getOe=="0")
{
    $latlon = AdsbUtils::getCoordinates($adsb_odd,$adsb_even);
    echo "airplane : " . $adsb_odd->getIcao . "\n";
    echo "latitude : " . $latlon["latitude"] . "\n";
    echo "longitude : " . $latlon["longitude"] . "\n";
}

```

You can use an example to connect directly to Dump1090 in example folder.

Just change the ip of your dump1090 instance :

```
$dump1090_ip = "127.0.0.1";
```

in linux change chmod :

```
chmod +x sbs-raw.php

```

and launch it :

```
./sbs-raw.php

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7330f66fbcc03e1ae70ce113f19239a7a9849c5fc11055728ed547a9432c0d2?d=identicon)[kletellier](/maintainers/kletellier)

---

Top Contributors

[![kletellier](https://avatars.githubusercontent.com/u/8279846?v=4)](https://github.com/kletellier "kletellier (10 commits)")

### Embed Badge

![Health badge](/badges/kletellier-adsb/health.svg)

```
[![Health](https://phpackages.com/badges/kletellier-adsb/health.svg)](https://phpackages.com/packages/kletellier-adsb)
```

PHPackages © 2026

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