nrwtaylor / stack-agent-thing
该包最新版本(3.0.0)没有可用的许可证信息。
Stack Agent Thing 框架
3.0.0
2022-09-26 06:39 UTC
Requires
- ekinhbayar/brill-tagger: ^0.3.1
- endroid/qr-code: ^4
- google/apiclient: ^2.0
- hyperthese/php-serial: ^1.0
- johngrogg/ics-parser: ^2
- linkorb/tty: dev-master
- monolog/monolog: ^1.23
- ramsey/uuid: ^4.3
- setasign/fpdi-fpdf: ^2.0
- slim/php-view: ^3.0
- slim/slim: ^3.0
- symfony/console: ^4.3
- vanderlee/php-sentence: ^1.0
- vanderlee/syllable: ^1.5
- webignition/robots-txt-file: ^2.1
- zbateson/mail-mime-parser: ^1.3
This package is auto-updated.
Last update: 2024-09-05 02:07:44 UTC
README
Stack Agent Thing 框架,用于基于代理的 Thing 处理,具有 Stack 序列化和反序列化。
与其他 Thing 共享 Thing 的状态。
版权所有 2018-2019。Stackr Interactive Ltd。
需求
- PHP >= 7
- BCMath
- Gearman
安装
安装所有必需的部分
composer require nrwtaylor/stack-agent-thing
Stack 构建配方。请参阅根目录中的 BUILD 文件。
1. 安装 Ubuntu。
2. 安装 LAMP 栈。
3. 创建 MySQL 数据库。
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. 安装 PHP 扩展。
sudo apt install php7.1-bcmath sudo apt-get install php-bcmath
5. 配置 private/settings.php
并非所有设置都需要设置。但您需要输入 MySQL 数据库设置。
6. 测试 localhost 服务于本地广泛的 TCP/IP
php -S localhost:8080 -t public public/index.php
7. 安装 PHP 扩展。
sudo apt install php7.1-bcmath sudo apt-get install php-bcmath restart
8. 设置并验证 cron
* * * * * cd /var/www/html/<site name> && /usr/bin/php -q /var/www/html/<site name>/agents/Cron.php >/dev/null 2>&1
9. 安装 Gearman。
10. 测试 stack。
浏览到
https://
https:///privacy. Select 'Start'.
11. 测试 Roll PNG
agent roll agent ping
12. 测试 Snowflake(Web,PNG,PDF)
agent snowflake
用法
创建一个 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
从浏览器运行启动代理
http://www.stackr.test/thing/67a8038d-4c19-4777-9b5f-18b8b74d8f1e/start
致谢
- Rob Allen 为 Slim
- Jeff Atwood 和 Joel Spolsky 为 Stack Overflow
- Alan Turing 为《关于可计算数的论》
开发
https://stack-agent-thing.slack.com/archives/C01PT2V6B8U Slack 邀请