PHPackages                             alphaolomi/laravel-sarufi - 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. [API Development](/categories/api)
4. /
5. alphaolomi/laravel-sarufi

ActiveLibrary[API Development](/categories/api)

alphaolomi/laravel-sarufi
=========================

Sarufi for Laravel

v0.0.1(3y ago)541[2 PRs](https://github.com/alphaolomi/laravel-sarufi/pulls)MITPHPPHP ^8.1

Since Oct 29Pushed 2y agoCompare

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

READMEChangelog (1)Dependencies (9)Versions (5)Used By (0)

Sarufi for Laravel
==================

[](#sarufi-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6775675a4828fba1c0ea62f64444e021eebc7474e7a28be3318556843c7df1b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c7068616f6c6f6d692f6c61726176656c2d7361727566692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alphaolomi/laravel-sarufi)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e517e3065f9a0c1603035db0228cbb4dc0e2c6f0ea0edfda0311c677c9d66e6b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f616c7068616f6c6f6d692f6c61726176656c2d7361727566692f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/alphaolomi/laravel-sarufi/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/919b327b9e34ec31d26e7323aa1e035bceb3aef77b4cd6306dfa0e21d4fffd58/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f616c7068616f6c6f6d692f6c61726176656c2d7361727566692f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/alphaolomi/laravel-sarufi/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/ce5bb23bf97124bf22af738915c62067ce73807484e2a8d7f586ac20f1a79bf1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c7068616f6c6f6d692f6c61726176656c2d7361727566692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alphaolomi/laravel-sarufi)

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

[](#installation)

You can install the package via composer:

```
composer require alphaolomi/laravel-sarufi
```

```
php artisan vendor:publish --tag="sarufi-config"
```

Configuration
-------------

[](#configuration)

in your `.env` file add

```
SARUFI_USERNAME="your_nice_username"
SARUFI_PASSWORD="your_nice_password"
```

Usage
-----

[](#usage)

```
use Alphaolomi\Laravel\Sarufi\Facades\Sarufi;
$bot = Sarufi::createBot(
    name: "Danny bot",
    description: "PUT DESCRIPTION HERE",
    industry: "YOUR BOT INDUSTRY",
    intents: [],
    flows: []
);

print_r($bot1);
// Output
// => [
//      "intents" => [],
//      "user_id" => 54,
//      "description" => "PUT DESCRIPTION HERE",
//      "industry" => "YOUR BOT INDUSTRY",
//      "created_at" => "2022-10-20T14:24:32.862859",
//      "name" => "Danny bot",
//      "flows" => [],
//      "id" => 81,
//      "model_name" => "models/24bea90e2ad6f9d279d4fa86795c8ea0.pkl",
//      "visible_on_community" => false,
//      "updated_at" => "2022-10-20T14:24:32.862872",
//    ]

// OR
// From files with intent and metadata/
// Assume you have you file in storage/data/intents.yaml example
$bot2 Sarufi::createFromFile(
    intents: storage_path('data/intents.yaml'),
    flow:  storage_path('data/flow.yaml'),
    metadata: storage_path('data/metadata.yaml'
);
print_r($bot);
```

API avalable
------------

[](#api-avalable)

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

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

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

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report 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

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

1292d ago

### 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 (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

laravel-packagesarufisarufi-laravelsarufilaravel-sarufi

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[likeabas/filament-chatgpt-agent

Integrate with OpenAI ChatGPT

235.3k](/packages/likeabas-filament-chatgpt-agent)[tapp/filament-webhook-client

Add a Filament resource and a policy for Spatie Webhook client

1120.2k](/packages/tapp-filament-webhook-client)[pyaesoneaung/sportmonks-football-api

Laravel package for Sportmonks Football Api(V3)

271.8k](/packages/pyaesoneaung-sportmonks-football-api)

PHPackages © 2026

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