PHPackages                             se/pilight - 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. se/pilight

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

se/pilight
==========

Library to call Pilight (currently pilight-send) from php.

v0.1-beta(12y ago)219MITPHPPHP &gt;=5.3.3

Since Dec 11Pushed 12y ago1 watchersCompare

[ Source](https://github.com/sveneisenschmidt/pilight)[ Packagist](https://packagist.org/packages/se/pilight)[ Docs](https://github.com/sveneisenschmidt/pilight)[ RSS](/packages/se-pilight/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

\#pilight

[![Latest Stable Version](https://camo.githubusercontent.com/432c3270c7b617caea95eeaf40d84c9903b4e673ba65ecb7cdd7d3333016acef/68747470733a2f2f706f7365722e707567782e6f72672f73652f70696c696768742f762f737461626c652e706e67)](https://packagist.org/packages/se/pilight)[![SensioLabsInsight](https://camo.githubusercontent.com/4be6f4c8911e271ccd4fa49c686ebda66aa607f7d0464dcfbf7f2b58a173cccd/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34633066316563302d346262302d346433632d613265312d3233303265663137353461662f6d696e692e706e67)](https://insight.sensiolabs.com/projects/4c0f1ec0-4bb0-4d3c-a2e1-2302ef1754af)

Library to call [pilight](http://www.pilight.org/) (currently via pilight-send) from php.

#### Dev branch is master branch.

[](#dev-branch-is-master-branch)

[![Build Status](https://camo.githubusercontent.com/88f7f5f841235afbe7289084d43df0a8cc15a8f6e9ad2f5e67016ed4033bb169/68747470733a2f2f6170692e7472617669732d63692e6f72672f7376656e656973656e7363686d6964742f70696c696768742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/sveneisenschmidt/pilight)

##### Table of Contents

[](#table-of-contents)

1. [Installation](#installation)
2. [Usage](#usage)
    - [Send](#send)

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

[](#installation)

The recommended way to install is through [Composer](http://getcomposer.org).

```
{
    "require": {
        "se/pilight": "dev-master"
    }
}
```

### Basic usage

[](#basic-usage)

Require the composer autload file and import the namespace.

```
require_once __DIR__.'/vendor/autoload.php';

use \SE\Component\Pilight;
```

### Send

[](#send)

```
$sender =  new Pilight\Sender();
// or set a custom ip and port
$sender =  new Pilight\Sender($host = '129.168.2.1', $port = 6535);

$protocol = 'elro';
$arguments = array(
    's' => 31,
    'u' => 1,
);

$device = new Pilight\Device($protocol, $arguments);
// or add the arguments later via setArguments
$device->setArguments($arguments);

// turn it on
$device->addArgument('t');

// send it!
$sender->send($device);
```

If you need root permissions to call *pilight-send*, call setSudo(true) on $sender.

```
$sender->setSudo(true);
$sender->send($device);
```

You can add the *pilight-send* executable to your sudoers configuration to make it callable via sudo without the need to enter a password. This is in case your *pilight-send* needs to be called via sudo rights you can get some unexpected output during runtime if setting it not.

```
$ sudo nano /etc/sudoers.d/pilight
```

Contents:

```
www-data ALL= NOPASSWD: /usr/local/sbin/pilight-send
pi ALL= NOPASSWD: /usr/local/sbin/pilight-send
 ALL= NOPASSWD: /usr/local/sbin/pilight-send
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

4586d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/62278?v=4)[Sven Eisenschmidt](/maintainers/sveneisenschmidt)[@sveneisenschmidt](https://github.com/sveneisenschmidt)

---

Top Contributors

[![sveneisenschmidt](https://avatars.githubusercontent.com/u/62278?v=4)](https://github.com/sveneisenschmidt "sveneisenschmidt (11 commits)")

---

Tags

GPIOwiringPipilightwiredPi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/se-pilight/health.svg)

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M24.7k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k40](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.1k1](/packages/phpactor-phpactor)

PHPackages © 2026

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