PHPackages                             lum/lum-spjs - 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. lum/lum-spjs

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

lum/lum-spjs
============

Lum SPJS simple processor

v2.0.0(4y ago)08MITPHP

Since Oct 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/supernovus/lum.spjs.php)[ Packagist](https://packagist.org/packages/lum/lum-spjs)[ RSS](/packages/lum-lum-spjs/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (7)Used By (0)

lum.spjs.php
============

[](#lumspjsphp)

Summary
-------

[](#summary)

Statistical Processing for JSON Structures

A really minimal data processing library that I've used in a couple projects. You pass it a data set (returned from say a CSV file) which is an array of associative arrays, and then pass it an array of statements (which themselves are an array of associative arrays defining rules to apply to the data.)

Classes
-------

[](#classes)

ClassDescriptionLum\\SPJSThe SPJS processor.Example
-------

[](#example)

### Initial Data

[](#initial-data)

```
[
  {"id":1, "ctype":1},
  {"id":2, "ctype":1},
  {"id":3, "ctype":5},
  {"id":4, "ctype":3},
  {"id":5, "ctype":6}
]
```

Statements
----------

[](#statements)

```
[
  {"always": true, "set": {"rtype": 0}},
  {"if":{"ctype":[1,2,5]}, "set": {"rtype": 1}},
  {"if":{"ctype":[3,4]}, "set": {"rtype": 2}}
]
```

### Processed Data

[](#processed-data)

```
[
  {"id":1, "ctype":1, "rtype": 1},
  {"id":2, "ctype":1, "rtype": 1},
  {"id":3, "ctype":5, "rtype": 1},
  {"id":4, "ctype":3, "rtype": 2},
  {"id":5, "ctype":6, "rtype": 0}
]
```

TODO
----

[](#todo)

Write tests.

Official URLs
-------------

[](#official-urls)

This library can be found in two places:

- [Github](https://github.com/supernovus/lum.spjs.php)
- [Packageist](https://packagist.org/packages/lum/lum-spjs)

Author
------

[](#author)

Timothy Totten

License
-------

[](#license)

[MIT](https://spdx.org/licenses/MIT.html)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~79 days

Total

6

Last Release

1605d ago

Major Versions

v1.x-dev → v2.0.02021-12-16

PHP version history (2 changes)v1.0.0PHP ^7.0

v1.0.1PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ff04349507190155013e4a94a8b14860a7ac57afce4ba97961c7c79bd023dd7?d=identicon)[supernovus](/maintainers/supernovus)

### Embed Badge

![Health badge](/badges/lum-lum-spjs/health.svg)

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

PHPackages © 2026

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