PHPackages                             afk11/sbs1 - 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. afk11/sbs1

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

afk11/sbs1
==========

SBS1 packet decoder

v0.0.4(7y ago)3561[1 issues](https://github.com/afk11/sbs1/issues)MITPHP

Since May 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/afk11/sbs1)[ Packagist](https://packagist.org/packages/afk11/sbs1)[ RSS](/packages/afk11-sbs1/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

sbs1
====

[](#sbs1)

This project provides simple library for decoding [ADSB](https://en.wikipedia.org/wiki/Automatic_dependent_surveillance_%E2%80%93_broadcast) information from SBS-1 format.

[SBS1 format](http://woodair.net/sbs/article/barebones42_socket_data.htm) is a CSV format produced by ADSB decoders.

This package enables decoding raw messages, and generating messages from a 'stream' type (a file handle or socket).

The software can decode messages produced on port 30003 by dump1090 (started with the `--net` flag). There are many cheap (~10$) devices that can be used for this.

Installation
------------

[](#installation)

```
composer require afk11/sbs1

```

Examples
--------

[](#examples)

### Parse raw messages

[](#parse-raw-messages)

[parsing\_messages.php](./example/parsing_messages.php)

### Stream from file

[](#stream-from-file)

[stream\_from\_file.php](./example/stream_from_file.php)

### Stream from Socket

[](#stream-from-socket)

This example is missing, but it's essentially a one line difference to stream\_from\_file.php.

Replace the line calling readFile with a call to readTcpStream:

```
-foreach ($streamReader->readFile($lineReader, $file) as $line) {
+foreach ($streamReader->readTcpStream($lineReader, "127.0.0.1", 30003) as $line) {

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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 ~15 days

Total

4

Last Release

2870d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/763cdc5cc50414bacd4ff1080eede79432f7c3cc26a3d8aa9031b1537a8bd734?d=identicon)[thomaskerin](/maintainers/thomaskerin)

---

Tags

adsbdump1090sbs1

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/afk11-sbs1/health.svg)

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

PHPackages © 2026

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