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(5mo ago)041MITPHPPHP ^8.2

Since Mar 4Pushed 5mo ago1 watchersCompare

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

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

37

—

LowBetter than 83% of packages

Maintenance70

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

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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[livewire/flux

The official UI component library for Livewire.

9385.0M86](/packages/livewire-flux)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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