PHPackages                             sasilen/sensors - 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. sasilen/sensors

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

sasilen/sensors
===============

Sensors plugin for CakePHP 4

02PHPCI failing

Since Nov 29Pushed 5y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Sensors plugin for CakePHP 4
============================

[](#sensors-plugin-for-cakephp-4)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer config repositories.sensors git https://github.com/sasilen/cakephp-plugin-sensors.git
composer require sasilen/sensors

```

Configuration
-------------

[](#configuration)

Load required modules with routes

```
./bin/cake plugin load Sasilen/Sensors

```

Migrate database schema

```
./bin/cake migrations migrate -p Sensors

```

Add templates (main app)
------------------------

[](#add-templates-main-app)

```
# /src/View/AppView.php
public function initialize(): void
{
    parent::initialize();
    $this->loadHelper('CakeDC/Users.AuthLink');
    $this->loadHelper('Paginator', ['templates' => 'templates-paginator']);
    $this->loadHelper('Form', ['templates' => 'templates-form']);
}

```

Triggers
--------

[](#triggers)

If you want to update sensor\_id automatically from the sensors list when sensor\_value is inserted you can create these two trigger

```
CREATE TRIGGER sensor_values_sensor_id_updater
BEFORE UPDATE ON sensor_values
    FOR EACH ROW
          SET new.sensor_id = (select id from sensors where name=new.name);

CREATE TRIGGER sensor_values_sensor_id_inserter
BEFORE INSERT ON sensor_values
    FOR EACH ROW
          SET new.sensor_id = (select id from sensors where name=new.name);

FIX missing:
UPDATE sensor_values SET sensor_values.sensor_id = (SELECT sensors.id FROM sensors WHERE sensors.name = sensor_values.name ) WHERE sensor_values.sensor_id = '';

```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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/b2fe0b8ce1658c7d1b110d091b1b1a6547f46f729ed57e43ca5058d944c8f26d?d=identicon)[sasilen](/maintainers/sasilen)

---

Top Contributors

[![sasilen](https://avatars.githubusercontent.com/u/4187961?v=4)](https://github.com/sasilen "sasilen (31 commits)")

### Embed Badge

![Health badge](/badges/sasilen-sensors/health.svg)

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

###  Alternatives

[shweshi/opengraph

A Laravel package to fetch website Open Graph metadata.

167768.0k1](/packages/shweshi-opengraph)[novutec/whoisparser

Lookup domain names, IP addresses and AS numbers by WHOIS.

392.0M1](/packages/novutec-whoisparser)[friendsofcat/laravel-feature-flag

Feature Flags for Laravel

311.2M](/packages/friendsofcat-laravel-feature-flag)[krayin/krayin-google-integration

Krayin Google Integration

292.3k](/packages/krayin-krayin-google-integration)

PHPackages © 2026

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