junker/rivescript
Composer 安装命令:
composer require junker/rivescript
包简介
RiveScript interpreter library for PHP with Laravel support. RiveScript is a scripting language for chatterbots, making it easy to write trigger/response pairs for building up a bot's intelligence.
关键字:
README 文档
README
This is a RiveScript interpreter library for PHP. See the below Working Draft section for more information.
The package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code.
Quick Installation
Simply install the package through Composer.
composer require junker/rivescript
Integration
The RiveScript PHP interpreter is framework agnostic. As such, the interpreter can be used as is with native PHP, or with your favorite framework.
Working Draft
The RiveScript Working Draft (WD) is a document that defines the standards for how RiveScript should work, from an implementation-agnostic point of view. The Working Draft should be followed when contributing to the RiveScript-PHP interpreter. If any of the current implementations don't do what the Working Draft says they should, this is considered to be a bug and you can file a bug report or send a pull request.
A copy of the working draft can be found within the resources directory of this repository. You may also find the latest version on the RiveScript website at http://www.rivescript.com/wd/RiveScript.
Roadmap
Interpreter
- Format
- Whitespace
- Standard Global Variables
- Sort +Triggers
- Sort %Previous
- Sort Replies
- Syntax Checking
Tag Priority
- Within BEGIN/Request
- Within +Trigger
- Within Replies
Commands
- % Previous
- ^ Continue
- @ Redirect
- * Condition
- // Comment
! Definition
- version
- global
- var
- array
- sub
- person
> Label
- begin
- topic
- object
+ Trigger
- Atomic
- Wildcard
- Alternation
- Optional
- Arrays
- Priority
- Response
- Atomic
- Random
- Weighted Random
Tags
-
<star> -
<star1>-<starN> -
<botstar> -
<botstar1>-<botstarN> -
<input> -
<input1>-<input9> -
<reply> -
<reply1>-<reply9 -
<id> -
<bot> -
<env> -
<get> -
<set> -
<add> -
<sub> -
<mult> -
<div> -
{topic=...} -
{weight=...} -
{@...} -
<@> -
{random}...{/random} -
{person}...{/person} -
<person> -
{formal}...{/formal} -
<formal> -
{sentence}...{/sentence} -
<sentence> -
{uppercase}...{/uppercase} -
<uppercase> -
{lowercase}...{/lowercase} -
<lowercase> -
{ok} -
\s -
\n -
\/ -
\#
junker/rivescript 适用场景与选型建议
junker/rivescript 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 35 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 09 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「bot」 「ai」 「chatterbot」 「rivescript」 「axiom」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 junker/rivescript 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 junker/rivescript 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 junker/rivescript 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dialogflow php sdk
Laravel 5.6 Monolog custom telegram channel
VK driver for botman
Telegram bot integration with laravel
RiveScript interpreter library for PHP with Laravel support. RiveScript is a scripting language for chatterbots, making it easy to write trigger/response pairs for building up a bot's intelligence.
IRC bot for li3.
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-03
