PHPackages                             jalallinux/php-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. jalallinux/php-cayenne-lpp

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

jalallinux/php-cayenne-lpp
==========================

PHP Cayenne LPP encoder and decoder

v1.3.0(3y ago)08[1 PRs](https://github.com/jalallinux/php-cayenne-lpp/pulls)MITPHPPHP ^7.4|^8.0|^8.1|^8.2CI passing

Since Jul 2Pushed 1w ago1 watchersCompare

[ Source](https://github.com/jalallinux/php-cayenne-lpp)[ Packagist](https://packagist.org/packages/jalallinux/php-cayenne-lpp)[ Docs](https://github.com/jalallinux/php-cayenne-lpp)[ Fund](https://reymit.ir/jalallinux)[ RSS](/packages/jalallinux-php-cayenne-lpp/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (3)Versions (6)Used By (0)

Php [Cayenne](https://docs.mydevices.com/docs/lorawan/cayenne-lpp) Encoder &amp; Decoder
========================================================================================

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

[![](cover.png)

 ](https://github.com/jalallinux/php-cayenne-lpp)[![Latest Stable Version](https://camo.githubusercontent.com/1ddbce2bd0d37b84d1c7593903f3fabc4a181917ee00c2f22c21d6d9135b8ca8/68747470733a2f2f706f7365722e707567782e6f72672f6a616c616c6c696e75782f7068702d636179656e6e652d6c70702f76)](https://packagist.org/packages/jalallinux/php-cayenne-lpp)[![Latest Version on Packagist](https://camo.githubusercontent.com/e517cb3ecc89630915b91b5ac59f2be3eb51187532c41b6366f6e34a19388827/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a616c616c6c696e75782f7068702d636179656e6e652d6c70702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jalallinux/php-cayenne-lpp)[![Tests](https://github.com/jalallinux/php-cayenne-lpp/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/jalallinux/php-cayenne-lpp/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/1eea0ef92590e4a673e2a969c0262fa2839364f2590fb707d172960f99c82c53/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a616c616c6c696e75782f7068702d636179656e6e652d6c70702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jalallinux/php-cayenne-lpp)

---

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

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

[](#installation)

You can install the package via composer:

```
composer require jalallinux/php-cayenne-lpp
```

Usage
-----

[](#usage)

### Encoder

[](#encoder)

```
$encoder = new Encoder();
$encoder->addAnalogInput(2, 4.2)
    ->addRelativeHumidity(3, 32.0)
    ->addTemperature(4, 28.7)
    ->addBarometricPressure(5, 851.3)
    ->addAnalogOutput(6, 4.45);

$hex = bin2hex($encoder->getBuffer());
/**
 * RESULT
 * 020201a40368400467011f05732141060301bd
 */
```

### Decoder

[](#decoder)

```
$decoder = new Decoder(hex2bin('020201a40368400467011f05732141060301bd'));
$data = $decoder->data;
/**
 * RESULT
 * [
 *  0 => [
 *    "channel" => 2
 *    "type" => 2
 *    "typeName" => "analogInput"
 *    "data" => [
 *      "value" => 4.2
 *    ]
 *  ]
 *  1 => [
 *    "channel" => 3
 *    "type" => 104
 *    "typeName" => "humidity"
 *    "data" => [
 *      "value" => 32.0
 *    ]
 *  ]
 *  2 => [
 *    "channel" => 4
 *    "type" => 103
 *    "typeName" => "temperature"
 *    "data" => [
 *      "value" => 28.7
 *    ]
 *  ]
 *  3 => [
 *    "channel" => 5
 *    "type" => 115
 *    "typeName" => "pressure"
 *    "data" => [
 *      "value" => 851.3
 *    ]
 *  ]
 *  4 => [
 *    "channel" => 6
 *    "type" => 3
 *    "typeName" => "analogOutput"
 *    "data" => [
 *      "value" => 4.45
 *   ]
 * ]
 */
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [JalalLinuX](https://github.com/jalallinux)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance64

Regular maintenance activity

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 53.7% 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 ~0 days

Total

2

Last Release

1097d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/37062636?v=4)[JalalLinuX](/maintainers/jalallinux)[@jalallinux](https://github.com/jalallinux)

---

Top Contributors

[![jalallinux](https://avatars.githubusercontent.com/u/37062636?v=4)](https://github.com/jalallinux "jalallinux (29 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")

---

Tags

cayennejalallinuxHiDevsphp-cayenne-lpp

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/jalallinux-php-cayenne-lpp/health.svg)

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M164](/packages/spatie-laravel-health)[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[firefly-iii/data-importer

Firefly III Data Import Tool.

8035.8k](/packages/firefly-iii-data-importer)[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)
