PHPackages                             pushpak1300/ai-chat - 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. [Framework](/categories/framework)
4. /
5. pushpak1300/ai-chat

ActiveProject[Framework](/categories/framework)

pushpak1300/ai-chat
===================

A modern AI chat starter kit built with Laravel, featuring real-time streaming responses using Prism, Inertia.js, Vue.js, and TailwindCSS.

37137651[3 PRs](https://github.com/pushpak1300/ai-chat/pulls)PHPCI passing

Since Jul 1Pushed 4mo ago10 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

[![prism](https://private-user-images.githubusercontent.com/31663512/450744191-e97667bc-1335-48f1-8c23-474d3f31f49a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ0ODU3NDEsIm5iZiI6MTc3NDQ4NTQ0MSwicGF0aCI6Ii8zMTY2MzUxMi80NTA3NDQxOTEtZTk3NjY3YmMtMTMzNS00OGYxLThjMjMtNDc0ZDNmMzFmNDlhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAzMjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMzI2VDAwMzcyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMzNThmMzk2MTE0ODI0NDdhNzhiYzIxOTJjY2M0Y2IyNzM0YTM3NjkwZmM2N2U1NTNkNjdkYmEyNmIwMzViNjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tKbWhYkHSpcu--t3CcKPIG9f5vXWX4FvrUYuSaqEXvk)](https://private-user-images.githubusercontent.com/31663512/450744191-e97667bc-1335-48f1-8c23-474d3f31f49a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ0ODU3NDEsIm5iZiI6MTc3NDQ4NTQ0MSwicGF0aCI6Ii8zMTY2MzUxMi80NTA3NDQxOTEtZTk3NjY3YmMtMTMzNS00OGYxLThjMjMtNDc0ZDNmMzFmNDlhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAzMjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMzI2VDAwMzcyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMzNThmMzk2MTE0ODI0NDdhNzhiYzIxOTJjY2M0Y2IyNzM0YTM3NjkwZmM2N2U1NTNkNjdkYmEyNmIwMzViNjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tKbWhYkHSpcu--t3CcKPIG9f5vXWX4FvrUYuSaqEXvk)

AI Chat - Laravel Starter Kit
=============================

[](#ai-chat---laravel-starter-kit)

A modern AI chat starter kit built with Laravel, featuring real-time streaming responses using Prism, Inertia.js, Vue.js, and TailwindCSS.

Introduction
------------

[](#introduction)

Prism Chat provides a solid foundation for building AI-powered chat applications with Laravel. It leverages Laravel's powerful ecosystem combined with the [Prism PHP SDK](https://prismphp.com/) to deliver real-time streaming responses, creating a dynamic and engaging user experience.

Features
--------

[](#features)

- **Real-time AI Responses**: Stream AI responses as they're generated
- **Reasoning Support**: Built-in support for AI models with reasoning capabilities
- **Multiple AI Providers**: Support for OpenAI, Anthropic, Google Gemini, Ollama, Groq, Mistral, DeepSeek, xAI, and VoyageAI
- **Authentication System**: Built-in user authentication and management
- **Appearance Settings**: Light/dark mode support with system preference detection
- **Custom Theming**: Shadcn integration allows easy theme customization via CSS variables
- **Chat Sharing**: Share conversations with other users

Tech Stack
----------

[](#tech-stack)

- **Backend**: Laravel 12.x, Prism PHP SDK
- **Frontend**: Vue.js 3, Inertia.js 2.x
- **Styling**: TailwindCSS 4.x, Shadcn components
- **Database**: SQLite (configurable to MySQL/PostgreSQL)
- **Authentication**: Laravel Sanctum
- **Real-time**: Server-Sent Events (SSE)

Prerequisites
-------------

[](#prerequisites)

- **PHP 8.3+** with extensions:
    - curl, dom, fileinfo, filter, hash, mbstring, openssl, pcre, pdo, session, tokenizer, xml
- **Composer 2.x**
- **Node.js 18+** and npm/bun
- **SQLite** (or MySQL/PostgreSQL if preferred)

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

[](#installation)

Installation can be done using the Laravel installer:

```
laravel new --using=pushpak1300/ai-chat my-ai-chat
cd my-ai-chat
```

Or using Composer:

```
composer create-project pushpak1300/ai-chat my-ai-chat
cd my-ai-chat
```

After installation:

```
# Install frontend dependencies
npm install

# Generate application key (if not done automatically)
php artisan key:generate

# Create database file (for SQLite)
touch database/database.sqlite

# Run migrations
php artisan migrate

# Start the development server
composer run dev
```

The `composer run dev` command runs multiple processes concurrently. If you encounter issues, run them separately.

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

[](#configuration)

### Environment Setup

[](#environment-setup)

Copy the example environment file and configure your settings:

```
cp .env.example .env
```

### Theme Customization

[](#theme-customization)

The application uses Shadcn components with TailwindCSS for styling. To customize the theme:

1. Visit [tweakcn.com](https://tweakcn.com) to generate custom CSS variables
2. Update the CSS variables in `resources/css/app.css`
3. The changes will automatically apply to all Shadcn components

### AI Provider Configuration

[](#ai-provider-configuration)

**Note**: You don't need to configure all providers. The application will work with any combination of the providers you set up.

### Configuring AI Models

[](#configuring-ai-models)

AI models are defined in the `app/Enums/ModelName.php` file. This enum defines which models are available in your application and their metadata.

#### Understanding the ModelName Enum

[](#understanding-the-modelname-enum)

The [`ModelName` enum](app/Enums/ModelName.php) serves as the central configuration point for all AI models in your application. Here's how it works:

```
