PHPackages                             garissman/larachain - 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. garissman/larachain

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

garissman/larachain
===================

larachain

1.0.7(1y ago)21233MITPHP

Since Sep 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/garissman/larachain)[ Packagist](https://packagist.org/packages/garissman/larachain)[ RSS](/packages/garissman-larachain/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (5)Versions (10)Used By (0)

Your chat bot to support your Laravel Product
=============================================

[](#your-chat-bot-to-support-your-laravel-product)

Chatbot using LLM Models to support your product made with Laravel.

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

[](#installation)

`composer require garissman/larachain`

Publish
-------

[](#publish)

After installing, you should publish the configuration file using the vendor:publish Artisan command. This command will publish the configuration file to your application's config directory:

`php artisan vendor:publish --provider="Garissman\LaraChain\LaraChainServiceProvider"`

Using Ollama(Free)
------------------

[](#using-ollamafree)

Go to  and follow there instructions

ones installed, download the model, at this moment the model that works with function for me is mistral-nemo so run:

`ollama pull mistral-nemo`

Using OpenAi(ChatGPT)
---------------------

[](#using-openaichatgpt)

Just get your API key in:

and set you OPENAI\_API\_KEY in the .env file

Create the Default Agent
------------------------

[](#create-the-default-agent)

This is important to give personality to your char bot

`php artisan larachain:create_default_agent`

Install Horizon
---------------

[](#install-horizon)

Go to  and follow there instructions, after install run:

`php artisan horizon`

Install Reverb
--------------

[](#install-reverb)

Go to  and follow there instructions, after install run:

`php artisan reverb:start --debug`

Go to the UI and Chat with your bot
-----------------------------------

[](#go-to-the-ui-and-chat-with-your-bot)

Now you are ready to chat,

`php artisan serve`

Create your tools
-----------------

[](#create-your-tools)

Now let's do actual coding, tools are the reason why y made this package, are custom code triggers by the chain and let the LLM model do the RAG base on that function output,

create a Class that extend from Garissman\\LaraChain\\Structures\\Classes\\FunctionContract,

like Garissman\\LaraChain\\Functions\\ExampleTool

The Description is the most important part of the function, it tells the LLM when to trigger the tool call and start asking for parameter

The properties are the parameter of your tool, it tells the LLM what are the parameter, also has a description as well, very important.

TODO
----

[](#todo)

- make Function command and use RAG for the description.
- make Agent command and use RAG for the context.
- Knowledge Table.
- Tests, nothing new!!!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Total

8

Last Release

579d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/593dcaa71a21eb1e1f8c0774f439017bfcbcf50a7eeca923823a7e8407de0779?d=identicon)[arimoralesjordan](/maintainers/arimoralesjordan)

---

Top Contributors

[![garissman](https://avatars.githubusercontent.com/u/7206453?v=4)](https://github.com/garissman "garissman (52 commits)")

---

Tags

laravelaichatbotllm

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/garissman-larachain/health.svg)

```
[![Health](https://phpackages.com/badges/garissman-larachain/health.svg)](https://phpackages.com/packages/garissman-larachain)
```

###  Alternatives

[anilcancakir/laravel-ai-sdk-skills

A skill system for Laravel AI SDK agents. Define reusable AI capabilities with SKILL.md files.

151.1k](/packages/anilcancakir-laravel-ai-sdk-skills)

PHPackages © 2026

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