PHPackages                             noodleware/chattera - 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. noodleware/chattera

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

noodleware/chattera
===================

Chattera is a Laravel package that seamlessly integrates a real-time chatbot widget into your application using Livewire.

v1.0.13(7mo ago)041MITPHPPHP ^8.2

Since Mar 4Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/noodleware/chattera)[ Packagist](https://packagist.org/packages/noodleware/chattera)[ RSS](/packages/noodleware-chattera/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (7)Versions (6)Used By (0)

Chattera
========

[](#chattera)

Chattera is a simple chatbot built using Laravel Livewire, Alpine.js, and OpenAI's platform. It allows you to integrate an interactive chatbot into your Laravel application with minimal setup.

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

[](#installation)

To install Chattera, use Composer:

```
composer require noodleware/chattera
```

Run the migrations to create the necessary database tables:

```
php artisan migrate
```

This will create three tables:

- `chats`: Stores session-based chat records.
- `chat_messages`: Holds the conversation exchanges.
- `chat_contexts`: Stores context information that helps the chatbot provide better responses.

Publish the configuration file:

```
php artisan vendor:publish --tag=chattera
```

This will allow you to modify the Tailwind CSS classes for styles and adjust the text displayed in the button and header.

OpenAI API Credentials
----------------------

[](#openai-api-credentials)

To enable Chattera to communicate with OpenAI, you must add your API credentials to the `.env` file:

```
CHATTERA_OPEN_AI_TOKEN=your_openai_api_key_here
```

Ensure you replace `your_openai_api_key_here` with your actual OpenAI API key.

Styling Considerations
----------------------

[](#styling-considerations)

The core package CSS will not update automatically. If you change styles in the configuration file, ensure you regenerate the CSS classes in your `app.css` manually.

### Including the Base Stylesheet

[](#including-the-base-stylesheet)

After publishing assets, you must include the Chattera base stylesheet in your application:

```

```

Usage
-----

[](#usage)

To include the Chattera chatbot in your application, add the Livewire component, ideally just before the closing `` tag in your template:

```

```

### Configuring Rules

[](#configuring-rules)

Review the rules in the configuration file. For example, email addresses used in responses may need to be updated or removed.

### Adding Context

[](#adding-context)

To enhance the chatbot's responses, you can add context using the following Artisan command:

```
php artisan chattera:add-context {context}
```

Example:

```
php artisan chattera:add-context "To reset your password, you first need to click on the login button in the top right of the menu. Then, you will see the 'Forgot your password' link just below the password field. Click here and follow the on-screen instructions."
```

### Automated Reporting

[](#automated-reporting)

Chattera includes a command that can be scheduled to send a report daily, weekly, or monthly to the recipient listed in the config file. The command is:

```
php artisan chattera:send-report {frequency}
```

For example:

```
php artisan chattera:send-report daily
php artisan chattera:send-report weekly
php artisan chattera:send-report monthly
```

Set this command to run at any time after midnight using Laravel's scheduler.

#### Review Process

[](#review-process)

As part of the reporting process, chat transcripts are sent to OpenAI for review. The review process:

- Assigns a rating out of 100 to the chat session.
- Provides potential improvements to the chatbot's context for bette

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance64

Regular maintenance activity

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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 ~67 days

Total

5

Last Release

218d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88c991f3bf72ea553e89061946854d6e1a1d406683eff1babf5989d28c2375c1?d=identicon)[ben@kbvd.co.uk](/maintainers/ben@kbvd.co.uk)

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/noodleware-chattera/health.svg)

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

###  Alternatives

[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.0k14](/packages/tallstackui-tallstackui)[livewire/flux

The official UI component library for Livewire.

9527.8M127](/packages/livewire-flux)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M131](/packages/laravel-pulse)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

43311.2k](/packages/venturedrake-laravel-crm)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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