定制 junker/rivescript 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Source License

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.

Screenshot

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
  • \/
  • \#

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固