cawa0505/rivescript-php
Composer 安装命令:
composer require cawa0505/rivescript-php
包简介
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. RiveScript is a simple scripting language for chatbots with a friendly, easy to learn syntax.
The package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code.
Documentation
Module documentation is available at http://rivescript.readthedocs.org/
Also check out the RiveScript Community Wiki for common design patterns and tips & tricks for RiveScript.
Installation
Simply install the package through Composer.
composer require axiom/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.
example.rive
+ hello bot
- Hello Human
require 'vendor/autoload.php'; use \Axiom\Rivescript\Rivescript; $message = 'hello bot'; $rivescript = new Rivescript(); $rivescript->load('example.rive'); echo $rivescript->reply($message);
Output
Hello Human
Contributors
The Rivescript community is thankful for those who contributed to the project. Some of the people featured below contributed code or suggested tweaks to the package. Once again thanks, we could not have done it without you.
For more information checkout the authors page.
Important: 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.
You may find the latest version on the RiveScript website at http://www.rivescript.com/wd/RiveScript.
SEE ALSO
The official RiveScript website, http://www.rivescript.com/
cawa0505/rivescript-php 适用场景与选型建议
cawa0505/rivescript-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 94 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 04 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「bot」 「ai」 「chatterbot」 「rivescript」 「vulcan」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cawa0505/rivescript-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cawa0505/rivescript-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cawa0505/rivescript-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dialogflow php sdk
Laravel 5.6 Monolog custom telegram channel
VK driver for botman
Telegram bot integration with laravel
IRC bot for li3.
PHP Wrapper for Microsoft Teams Bot API
统计信息
- 总下载量: 94
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 11
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-06