PHPackages                             cawa0505/rivescript-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cawa0505/rivescript-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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.

v0.5.5(7y ago)19471MITPHPPHP &gt;=5.5.9

Since Jun 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cawa0505/rivescript-php)[ Packagist](https://packagist.org/packages/cawa0505/rivescript-php)[ RSS](/packages/cawa0505-rivescript-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (4)Versions (11)Used By (1)

RiveScript-PHP
==============

[](#rivescript-php)

[![Source](https://camo.githubusercontent.com/77f6654d3775a3c389bde836dda9abe78f0e5318fb7c7989866faff1359a758b/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6178696f6d2d2d6c6162732f726976657363726970742d2d7068702d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/axiom-labs/rivescript-php)[![License](https://camo.githubusercontent.com/30597ff9a350144f03bffdd9183e16468e0b3ca1193e1d08591d992622738d55/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://tldrlegal.com/license/mit-license)[![Build & Unit Test](https://github.com/axiom-labs/rivescript-php/actions/workflows/Phpunit.yml/badge.svg)](https://github.com/axiom-labs/rivescript-php/actions/workflows/Phpunit.yml)[![Phpcs](https://github.com/axiom-labs/rivescript-php/actions/workflows/Phpcs.yaml/badge.svg)](https://github.com/axiom-labs/rivescript-php/actions/workflows/Phpcs.yaml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c3e30dbc882d42f513fe7f5ccbe9ed603d1516ed23f94e09f49848cf9b125538/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f686e6e796d6173742f726976657363726970742d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/johnnymast/rivescript-php/?branch=develop)

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
-------------

[](#documentation)

Module documentation is available at

Also check out the [**RiveScript Community Wiki**](https://github.com/aichaos/rivescript/wiki)for common design patterns and tips &amp; tricks for RiveScript.

Installation
------------

[](#installation)

Simply install the package through Composer.

```
composer require axiom/rivescript

```

Integration
-----------

[](#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
------------

[](#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.

 [ ![](https://camo.githubusercontent.com/df519e26636d5d6c41a2b5e6cad736ecb204b6126f3e3c4e5cb7db45e551b4d6/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d6178696f6d2d6c6162732f726976657363726970742d706870) ](https://github.com/axiom-labs/rivescript-php/graphs/contributors)

For more information checkout the [authors page](Authors.md).

Important: Working Draft
------------------------

[](#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 .

SEE ALSO
--------

[](#see-also)

The official RiveScript website,

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.4% 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 ~114 days

Recently: every ~0 days

Total

10

Last Release

2635d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3434037?v=4)[Jimmy Yen](/maintainers/cawa0505)[@cawa0505](https://github.com/cawa0505)

---

Top Contributors

[![johnnymast](https://avatars.githubusercontent.com/u/121194?v=4)](https://github.com/johnnymast "johnnymast (250 commits)")[![kaidesu](https://avatars.githubusercontent.com/u/355659?v=4)](https://github.com/kaidesu "kaidesu (120 commits)")[![cawa0505](https://avatars.githubusercontent.com/u/3434037?v=4)](https://github.com/cawa0505 "cawa0505 (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![patrickschur](https://avatars.githubusercontent.com/u/18181635?v=4)](https://github.com/patrickschur "patrickschur (2 commits)")

---

Tags

aibotchatterbotrivescriptvulcan

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cawa0505-rivescript-php/health.svg)

```
[![Health](https://phpackages.com/badges/cawa0505-rivescript-php/health.svg)](https://phpackages.com/packages/cawa0505-rivescript-php)
```

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

318117.1k1](/packages/cognesy-instructor-php)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

5155.1k17](/packages/phel-lang-phel-lang)

PHPackages © 2026

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