PHPackages                             power-lan/cayenne-lpp - 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. power-lan/cayenne-lpp

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

power-lan/cayenne-lpp
=====================

PHP Cayenne LPP encoder and decoder

v1.2.0(5y ago)01551[1 issues](https://github.com/Power-Lan/cayenne-lpp/issues)MITPHPPHP ^7.0CI failing

Since Apr 18Pushed 5y ago2 watchersCompare

[ Source](https://github.com/Power-Lan/cayenne-lpp)[ Packagist](https://packagist.org/packages/power-lan/cayenne-lpp)[ Docs](http://www.photon-project.com/)[ RSS](/packages/power-lan-cayenne-lpp/feed)WikiDiscussions master Synced today

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

PHP Cayenne LPP encoder and decoder
===================================

[](#php-cayenne-lpp-encoder-and-decoder)

[![Build Status](https://camo.githubusercontent.com/b82c1b2b57a3a952dd13be848b12699517ed544c35b4be604c50f2627ee8fbcd/68747470733a2f2f7472617669732d63692e6f72672f506f7765722d4c616e2f636179656e6e652d6c70702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Power-Lan/cayenne-lpp)

This library can encode and decode data stream for LoraWan and SigFox devices which use Cayenne LPP encoding.

Encoder exemple
---------------

[](#encoder-exemple)

```
$encoder = new CayenneLPP\Encoder;
$encoder->addTemperature(0, 20.0);
$encoder->addTemperature(1, 21.0);
$buffer = $encoder->getBuffer();
$size = $encoder->getSize();

```

Decoder exemple
---------------

[](#decoder-exemple)

The decoder implements the `Countable` interface. It's allow to known how many dataset are in the binary stream.

```
$decoded = new CayenneLPP\Decoder(hex2bin('00860070013AFFFF' . '0186FFFF0070013A'));
$nbChannels = count($decoded);

```

The decoder implements `Iterator` interface. Each item are array which contains the data channel index, the data type, and the data decoded.

```
$decoded = new CayenneLPP\Decoder(hex2bin('00860070013AFFFF' . '0186FFFF0070013A'));
$nbChannels = count($decoded);
foreach ($decoded as $data) {
  $channel = $data['channel'];
  $type = $data['type'];
  $data = $data['data'];
}

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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.

###  Release Activity

Cadence

Every ~17 days

Total

4

Last Release

2159d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32f98ddde8bc7b4f6fadce6a4030a77dc6dfd8e08d8e5b122ab4cc70232f6341?d=identicon)[delkia](/maintainers/delkia)

---

Top Contributors

[![wysman](https://avatars.githubusercontent.com/u/1042272?v=4)](https://github.com/wysman "wysman (5 commits)")

---

Tags

cayennecayennelpploralorawanphpsigfoxcayennecayennelpplppipsoloralorawansigfox

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/power-lan-cayenne-lpp/health.svg)

```
[![Health](https://phpackages.com/badges/power-lan-cayenne-lpp/health.svg)](https://phpackages.com/packages/power-lan-cayenne-lpp)
```

###  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.0M283](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

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

Parser for CSS Files written in PHP

1.8k191.2M63](/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)
