PHPackages                             ikarus/sps - 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. ikarus/sps

ActiveLibrary

ikarus/sps
==========

v0.8.32(1y ago)033214BSD-3-ClausePHPPHP &gt;=7.2CI failing

Since Feb 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tasoftch/ikarus-sps)[ Packagist](https://packagist.org/packages/ikarus/sps)[ RSS](/packages/ikarus-sps/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (10)Dependencies (4)Versions (39)Used By (14)

Ikarus SPS
==========

[](#ikarus-sps)

Ikarus SPS is an attempt to run PHP on a device as independent SPS.

### Installation

[](#installation)

This reporitory is a package that can be intalled using composer:

```
$ composer require ikarus/sps

```

#### How Ikarus SPS works

[](#how-ikarus-sps-works)

The Ikarus SPS engine distinguish between two kinds of run modes:

1. **Cycle based engine**
    This engine type defines a fixed frequency, for example 2Hz, which means, that the engine updates twice per second.
2. **Event based engine**
    The event based engine waits until an event gets triggered from one of its plugins.

So it depends of your requirements, which kind of SPS engine you prefer.

**General workflow**

1. There is usually one instance of a SPS Engine running on a device.
2. **Eventbased**: This instance needs two kinds of plugins: listeners and triggers.
    **or cyclebased**: The instance needs only cycle plugins.
3. The listener waits until something happens in the SPS to perform an action. (SPS to device)
    Example: A timer event was triggered and the listener now instructs a motor to close the door.
4. A trigger wait until something happens on the device and informs the SPS. (Device to SPS)
    Example: An input sensor notifies that the door is closed or a timer triggers that time is up.
5. Run the engine, now the plugins get active and the SPS runs.

#### Multiprocessing

[](#multiprocessing)

PHP has an extension that allows forking a process.
This feature is used to multitask the SPS Engine.
All trigger plugins are dispatched to a separate process. Now they can wait for an event of the device, while the SPS Engine and its listeners continue working.

#### SPS Trigger Plugins

[](#sps-trigger-plugins)

As described above, trigger plugins run in a separate process to avoid that the SPS Engine gets blocked because of a listener (Example: listening on a socket blocks the thread until something is available to read from the socket.)

But this has one disadvantage:

- An SPS trigger does not share the same memory as the SPS Engine and its listeners.

This means:

- An SPS trigger gets a copy of the environment at engine start.
    After that, everything it does (reading object properties, defining variables, etc) does not affect the SPS Engine anymore (and vice versa!)

To solve this problem, the Ikarus SPS package has dispatchable events that can be transmitted from and to SPS triggers.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity53

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

Recently: every ~16 days

Total

38

Last Release

613d ago

PHP version history (2 changes)v0.1.0PHP ^7.2

v0.8.0-alphaPHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/cead97e36a24fcaaa55517873df7af9aa665646429aa5df7994f041a4bd9ad68?d=identicon)[ikarus](/maintainers/ikarus)

---

Top Contributors

[![tasoftch](https://avatars.githubusercontent.com/u/24875322?v=4)](https://github.com/tasoftch "tasoftch (135 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ikarus-sps/health.svg)

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

PHPackages © 2026

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