PHPackages                             alphaolomi/sarufi-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. alphaolomi/sarufi-php

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

alphaolomi/sarufi-php
=====================

Sarufi for PHP

v0.1.0(2y ago)9861[1 issues](https://github.com/alphaolomi/sarufi-php/issues)[1 PRs](https://github.com/alphaolomi/sarufi-php/pulls)1MITPHPPHP &gt;=7.4

Since Oct 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/alphaolomi/sarufi-php)[ Packagist](https://packagist.org/packages/alphaolomi/sarufi-php)[ Docs](https://github.com/alphaolomi/sarufi-php)[ Patreon](https://www.patreon.com/alphaolomi)[ RSS](/packages/alphaolomi-sarufi-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (6)Used By (1)

Sarufi for PHP
==============

[](#sarufi-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3fc8d724b8eccc567e115f59688c8cb60b1bf013fc0e2e3fdabc42303eec446a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c7068616f6c6f6d692f7361727566692d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alphaolomi/sarufi-php)[![Tests](https://github.com/alphaolomi/sarufi-php/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/alphaolomi/sarufi-php/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/a8a6dff9617868985b0d0dc58efb67f9ca9fb8dd3c8d52c58ec9001d3f514ccf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c7068616f6c6f6d692f7361727566692d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alphaolomi/sarufi-php)

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

[](#installation)

You can install the package via Composer:

```
composer require alphaolomi/sarufi-php
```

Usage
-----

[](#usage)

```
use Alphaolomi\Sarufi\Sarufi;

$sarufi = new Sarufi('your_token');

// Create an Empty bot
$bot1 = $sarufi->createBot([
    "name" => "YOUR AWESOME BOT NAME",
    "description" => "PUT DESCRIPTION HERE",
    "industry" => "YOUR BOT INDUSTRY",
    "intents" => [],
    "flows" => [],
]);
print_r($bot1);

// OR
// From files with intent and metadata
$bot2 = $sarufi->createFromFile(
    intents: __DIR__ . 'data/intents.yaml',
    flow:  __DIR__ . 'data/flow.yaml',
    metadata:  __DIR__ . 'data/metadata.yaml'
);

print_r($bot2);
```

API available
-------------

[](#api-available)

- `Sarufi(string $token)`
- `public function createBot(string $name, null|string $description = null, string $industry = "general", $flows = [], $intents = [], bool $visibleOnCommunity = false)`
- `public function createFromFile($metadata = null, $intents = null, $flows = null)`
- `public function updateBot($id, $name, $industry, $description, $intents, $flows, $visibleOnCommunity)`
- `public function updateFromFile( $id, $intents, $flows, $metadata)`
- `public function getBot($id)`
- `public function chat(int $botId, string $chatId, string $message = "Hello", string $messageType = "text", string $channel = "general")`
- `public function deleteBot($id)`

Testing
-------

[](#testing)

Uses [PestPHP](https://pestphp.com/).

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on recent changes.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on reporting security vulnerabilities.

Credits
-------

[](#credits)

- [Alpha Olomi](https://github.com/alphaolomi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52% 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 ~249 days

Total

2

Last Release

1040d ago

PHP version history (2 changes)v0.0.1PHP ^8.0

v0.1.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/7534dd7341d883267be41935354b56c27f94d6bbd6a7abd9f257bb2d494a3798?d=identicon)[alphao](/maintainers/alphao)

---

Top Contributors

[![alphaolomi](https://avatars.githubusercontent.com/u/10551599?v=4)](https://github.com/alphaolomi "alphaolomi (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![aidannyshayo](https://avatars.githubusercontent.com/u/116765236?v=4)](https://github.com/aidannyshayo "aidannyshayo (2 commits)")

---

Tags

phpsarufi-phpsarufi-sdkalphaolomisaruficonvesional ai

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/alphaolomi-sarufi-php/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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