PHPackages                             nrwtaylor/stack-agent-thing - 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. [Framework](/categories/framework)
4. /
5. nrwtaylor/stack-agent-thing

ActiveLibrary[Framework](/categories/framework)

nrwtaylor/stack-agent-thing
===========================

Stack Agent Thing framework

3.0.0(3y ago)1641[1 issues](https://github.com/nrwtaylor/stack-agent-thing/issues)PHPCI failing

Since Apr 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nrwtaylor/stack-agent-thing)[ Packagist](https://packagist.org/packages/nrwtaylor/stack-agent-thing)[ RSS](/packages/nrwtaylor-stack-agent-thing/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (8)Dependencies (16)Versions (11)Used By (0)

Stack-Agent-Thing
=================

[](#stack-agent-thing)

Stack Agent Thing frame work for Thing based Agent processing with Stack serialization and deserialization.

To share a Thing's state. With other Things.

Copyright 2018-2019. Stackr Interactive Ltd.

Requirements
============

[](#requirements)

- PHP &gt;= 7
- BCMath
- Gearman

Installation
============

[](#installation)

To install all the required parts:

```
composer require nrwtaylor/stack-agent-thing
```

Stack build recipe. See `BUILD` in root folder.

1. Install Ubuntu.
------------------

[](#1--install-ubuntu)

2. Install LAMP stack.
----------------------

[](#2--install-lamp-stack)

3. Create MySQL database.
-------------------------

[](#3--create-mysql-database)

```
mysql> DESCRIBE stack;
+--------------+---------------+------+-----+-------------------+-------+
| Field        | Type          | Null | Key | Default           | Extra |
+--------------+---------------+------+-----+-------------------+-------+
| id           | int(11)       | YES  |     | NULL              |       |
| uuid         | char(36)      | YES  | UNI | NULL              |       |
| task         | varchar(200)  | YES  |     | NULL              |       |
| status       | tinyint(1)    | NO   |     | 1                 |       |
| created_at   | datetime      | NO   |     | CURRENT_TIMESTAMP |       |
| nom_to       | varchar(80)   | YES  |     | NULL              |       |
| nom_from     | varchar(80)   | YES  | MUL | NULL              |       |
| associations | varchar(998)  | YES  |     | NULL              |       |
| message0     | varchar(998)  | YES  |     | NULL              |       |
| message1     | varchar(998)  | YES  |     | NULL              |       |
| message2     | varchar(998)  | YES  |     | NULL              |       |
| message3     | varchar(998)  | YES  |     | NULL              |       |
| message4     | varchar(998)  | YES  |     | NULL              |       |
| message5     | varchar(998)  | YES  |     | NULL              |       |
| message6     | varchar(998)  | YES  |     | NULL              |       |
| message7     | varchar(998)  | YES  |     | NULL              |       |
| settings     | varchar(998)  | YES  |     | NULL              |       |
| variables    | varchar(3998) | YES  | MUL | NULL              |       |
+--------------+---------------+------+-----+-------------------+-------+
```

4. Install PHP extensions
-------------------------

[](#4--install-php-extensions)

```
sudo apt install php7.1-bcmath
sudo apt-get install php-bcmath
```

5. Configure private/settings.php
---------------------------------

[](#5--configure-privatesettingsphp)

Not all the settings need to be set. But you will need to enter the MySQL database settings.

6. Test localhost serving to local-wide TCP/IP
----------------------------------------------

[](#6--test-localhost-serving-to-local-wide-tcpip)

```
php -S localhost:8080 -t public public/index.php
```

7. Install PHP extensions
-------------------------

[](#7--install-php-extensions)

```
sudo apt install php7.1-bcmath
sudo apt-get install php-bcmath
restart
```

8. Set-up and verify cron
-------------------------

[](#8--set-up-and-verify-cron)

```
* * * * * cd /var/www/html/ && /usr/bin/php -q /var/www/html//agents/Cron.php >/dev/null 2>&1
```

9. Install Gearman.
-------------------

[](#9--install-gearman)

10. Test stack.
---------------

[](#10-test-stack)

Browse to:

```
http://localhost
http://localhost/privacy.  Select 'Start'.

```

11. Test Roll PNG
-----------------

[](#11--test-roll-png)

```
agent roll
agent ping
```

12. Test Snowflake (web, PNG, PDF)
----------------------------------

[](#12--test-snowflake-web-png-pdf)

```
agent snowflake
```

Usage
=====

[](#usage)

Make a Thing

```
    $thing = new Thing(null); // creates a UUID for a thing

    Show a Thing's UUID
    echo $thing->uuid; // display UUID

    Instantiate a Thing
    $thing->Create("from","to","test message");

    Run an agent on a Thing
    $agent = new Start($thing); // runs the Start agent
```

Run the start agent from a browser:

```
http://www.stackr.test/thing/67a8038d-4c19-4777-9b5f-18b8b74d8f1e/start

```

Credits
=======

[](#credits)

- Rob Allen for Slim
- Jeff Atwood and Joel Spolsky for Stack Overflow
- Alan Turing for On Computable Numbers

Dev
===

[](#dev)

`https://stack-agent-thing.slack.com/archives/C01PT2V6B8U` Slack invitation

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 97.9% 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 ~315 days

Total

5

Last Release

1326d ago

Major Versions

0.2.2 → 3.0.02022-09-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/959cf38ad11773cff6ba1c2f8ef41ecb2cc994a9ef01876a18d3e37aeba1c17f?d=identicon)[nrwtaylor](/maintainers/nrwtaylor)

---

Top Contributors

[![jsaern](https://avatars.githubusercontent.com/u/24497145?v=4)](https://github.com/jsaern "jsaern (94 commits)")[![nrwtaylor](https://avatars.githubusercontent.com/u/2652025?v=4)](https://github.com/nrwtaylor "nrwtaylor (2 commits)")

### Embed Badge

![Health badge](/badges/nrwtaylor-stack-agent-thing/health.svg)

```
[![Health](https://phpackages.com/badges/nrwtaylor-stack-agent-thing/health.svg)](https://phpackages.com/packages/nrwtaylor-stack-agent-thing)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M225](/packages/laravel-horizon)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[laravel/nightwatch

The official Laravel Nightwatch package.

3486.1M13](/packages/laravel-nightwatch)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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