PHPackages                             ai-editor/ai-text-editor - 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. [Templating &amp; Views](/categories/templating)
4. /
5. ai-editor/ai-text-editor

ActiveLibrary[Templating &amp; Views](/categories/templating)

ai-editor/ai-text-editor
========================

Laravel 12+ AI-Powered Text Editor with Multi-Stack Support - Blade+Livewire, Vue.js SPA, React+Next.js

v1.19.0(7mo ago)111MITPHPPHP ^8.4

Since Sep 27Pushed 7mo agoCompare

[ Source](https://github.com/laravelgpt/AI-EDITOR)[ Packagist](https://packagist.org/packages/ai-editor/ai-text-editor)[ RSS](/packages/ai-editor-ai-text-editor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (14)Versions (20)Used By (0)

Laravel AI-Powered Text Editor
==============================

[](#laravel-ai-powered-text-editor)

A comprehensive Laravel 12+ package that provides **AI-powered text editing** capabilities with **multi-stack support** for modern web development. Choose between **Blade+Livewire**, **Vue.js SPA**, or **React+Next.js** with intelligent content generation and editing features.

🚀 Features
----------

[](#-features)

### 🤖 **AI-Powered Features**

[](#-ai-powered-features)

- **AI Text Generation**: Generate content with OpenAI, Anthropic, Google
- **Smart Editing**: AI-powered text editing and rewriting
- **Content Summarization**: Automatic content summarization
- **Text Completion**: Intelligent text completion
- **Memory System**: Version control and content history
- **Multi-Provider Support**: OpenAI, Anthropic, Google, HuggingFace, OpenRouter

### 🎯 **Interactive Installation**

[](#-interactive-installation)

- **CLI Installer**: `php artisan ai-editor:install`
- **Web Installer**: `php artisan ai-editor:web-installer`
- **Stack Selection**: Choose your preferred frontend stack
- **Theme Selection**: Multiple built-in themes
- **Dependency Management**: Auto-install Composer and NPM packages

### 📦 **Four Frontend Stacks**

[](#-four-frontend-stacks)

#### **0. Laravel Default** 🚀

[](#0-laravel-default-)

- **Standard Laravel** with Blade templates
- **Minimal frontend** dependencies
- **Server-side rendering** with Blade
- **Tailwind CSS** for styling
- **Simple and lightweight**

#### **1. Livewire** ⚡

[](#1-livewire-)

- **Real-time updates** with Livewire
- **Server-side rendering** with Blade
- **Alpine.js** for interactivity
- **Tailwind CSS** for styling
- **No JavaScript required**

#### **2. Vue.js** 💚

[](#2-vuejs-)

- **Vue 3** with Composition API
- **Vue Router** for navigation
- **Pinia** for state management
- **Axios** for API calls
- **Vite** for fast development

#### **3. React + Next.js** ⚛️

[](#3-react--nextjs-️)

- **Next.js 14** with App Router
- **React 18** with hooks
- **TypeScript** support
- **SSR** and static generation
- **API routes** integration

### 🎨 **Theme System**

[](#-theme-system)

- **Default**: Clean and modern
- **Dark**: Dark theme with modern aesthetics
- **Minimal**: Minimalist design
- **Colorful**: Vibrant theme with multiple colors
- **Glassmorphism**: Modern frosted glass effects with blur
- **Custom**: Create your own themes

### 🔧 **Built-in Features**

[](#-built-in-features)

- **Authentication**: Laravel Breeze integration
- **User Management**: Roles and permissions
- **Dashboard**: Analytics and quick actions
- **API Endpoints**: RESTful APIs for all stacks
- **Security**: CSRF, rate limiting, validation
- **Performance**: Caching, optimization

📦 Installation
--------------

[](#-installation)

### 1. Install via Composer

[](#1-install-via-composer)

```
composer require ai-editor/ai-text-editor
```

### 2. Run Post-Installation Setup

[](#2-run-post-installation-setup)

```
php artisan ai-editor:post-install
```

This command automatically:

- ✅ Detects Laravel 12+ and applies compatibility fixes
- ✅ Publishes configuration files
- ✅ Runs package discovery
- ✅ Sets up everything needed for the package

### 3. Install AI Text Editor

[](#3-install-ai-text-editor)

```
php artisan ai-editor:install
```

#### Web Installer

[](#web-installer)

```
php artisan ai-editor:web-installer
# Visit http://localhost:8001/multi-stack/installer
```

🎯 Quick Start
-------------

[](#-quick-start)

### Basic Installation

[](#basic-installation)

```
# Install with default settings
php artisan ai-editor:install

# Choose your stack:
# 1 → Blade + Livewire
# 2 → Vue.js SPA
# 3 → React + Next.js
```

### Advanced Installation

[](#advanced-installation)

```
# Install specific stack
php artisan ai-editor:install --stack=vue-spa --theme=dark

# Skip dependencies
php artisan ai-editor:install --no-deps

# Skip migrations
php artisan ai-editor:install --no-migrate
```

### Web Installer

[](#web-installer-1)

```
# Start web installer
php artisan ai-editor:web-installer

# Visit http://localhost:8001/multi-stack/installer
# Select stack, theme, and options
# Click "Install Laravel Multi-Stack"
```

🏗️ Architecture
---------------

[](#️-architecture)

### Core Services

[](#core-services)

- **InstallerService**: Handles installation process
- **StackService**: Manages frontend stacks
- **ThemeService**: Handles theme management

### Commands

[](#commands)

- **InstallCommand**: CLI installer
- **WebInstallerCommand**: Web installer server
- **StackCommand**: Stack management
- **ThemeCommand**: Theme management

### Controllers

[](#controllers)

- **InstallerController**: Web installer interface
- **StackController**: Stack management API
- **ThemeController**: Theme management API

🔧 Configuration
---------------

[](#-configuration)

### Environment Variables

[](#environment-variables)

```
# Multi-Stack Settings
MULTI_STACK_DEBUG=false
MULTI_STACK_AUTO_INSTALL=true
MULTI_STACK_INSTALL_NPM=true
MULTI_STACK_INSTALL_COMPOSER=true
MULTI_STACK_RUN_MIGRATIONS=true
MULTI_STACK_SEED_DATABASE=true
MULTI_STACK_SETUP_AUTH=true
MULTI_STACK_CREATE_ADMIN=true
MULTI_STACK_SETUP_THEME=true
```

### Configuration File

[](#configuration-file)

```
// config/multi-stack.php
return [
    'stacks' => [
        'blade-livewire' => [
            'name' => 'Blade + Livewire',
            'description' => 'Traditional Laravel with Blade templates and Livewire',
            'dependencies' => [
                'composer' => ['livewire/livewire', 'spatie/laravel-permission'],
                'npm' => ['alpinejs', 'tailwindcss', '@tailwindcss/forms']
            ]
        ],
        // ... other stacks
    ],
    'themes' => [
        'default' => [
            'name' => 'Default',
            'colors' => [
                'primary' => '#3b82f6',
                'secondary' => '#6b7280',
                // ... more colors
            ]
        ],
        // ... other themes
    ]
];
```

🎨 Frontend Stacks
-----------------

[](#-frontend-stacks)

### Blade + Livewire

[](#blade--livewire)

```
php artisan ai-editor:install --stack=blade-livewire
```

**Features:**

- Real-time updates with Livewire
- Server-side rendering
- Blade components
- Alpine.js integration
- Tailwind CSS

**Dependencies:**

- `livewire/livewire`
- `spatie/laravel-permission`
- `alpinejs`
- `tailwindcss`

### Vue.js SPA

[](#vuejs-spa)

```
php artisan ai-editor:install --stack=vue-spa
```

**Features:**

- Vue 3 with Composition API
- Vue Router for navigation
- Pinia for state management
- Axios for API calls
- Vite for fast development

**Dependencies:**

- `laravel/sanctum`
- `vue@3`
- `vue-router@4`
- `pinia`
- `axios`

### React + Next.js

[](#react--nextjs)

```
php artisan ai-editor:install --stack=react-nextjs
```

**Features:**

- Next.js 14 with App Router
- React 18 with hooks
- TypeScript support
- SSR and static generation
- API routes

**Dependencies:**

- `laravel/sanctum`
- `next@14`
- `react@18`
- `typescript`

🎨 Theme System
--------------

[](#-theme-system-1)

### Available Themes

[](#available-themes)

```
# List all themes
php artisan ai-editor:themes --list

# Apply theme
php artisan ai-editor:themes --apply=dark

# Show theme details
php artisan ai-editor:themes dark
```

### Custom Themes

[](#custom-themes)

```
// config/multi-stack.php
'themes' => [
    'custom' => [
        'name' => 'Custom Theme',
        'description' => 'Your custom theme',
        'colors' => [
            'primary' => '#your-color',
            'secondary' => '#your-color',
            // ... more colors
        ]
    ]
]
```

🔧 Commands
----------

[](#-commands)

### Installation Commands

[](#installation-commands)

```
# CLI installer
php artisan ai-editor:install

# Web installer
php artisan ai-editor:web-installer

# With options
php artisan ai-editor:install --stack=vue-spa --theme=dark --no-deps
```

### Stack Management

[](#stack-management)

```
# List available stacks
php artisan ai-editor:stacks

# Show stack details
php artisan ai-editor:stacks vue-spa

# Switch stack (future feature)
php artisan ai-editor:stacks --switch=react-nextjs
```

### Theme Management

[](#theme-management)

```
# List themes
php artisan ai-editor:themes --list

# Apply theme
php artisan ai-editor:themes --apply=dark

# Show theme details
php artisan ai-editor:themes dark
```

🌐 Web Installer
---------------

[](#-web-installer)

### Starting the Web Installer

[](#starting-the-web-installer)

```
php artisan ai-editor:web-installer
# Visit http://localhost:8001/multi-stack/installer
```

### Web Installer Features

[](#web-installer-features)

- **Interactive UI**: Beautiful web interface
- **Stack Selection**: Visual stack comparison
- **Theme Preview**: Live theme previews
- **Progress Tracking**: Real-time installation progress
- **Options Configuration**: Customize installation options

### Web Installer Routes

[](#web-installer-routes)

- `/multi-stack/installer` - Main installer page
- `/multi-stack/installer/select-stack` - Stack selection API
- `/multi-stack/installer/install` - Installation API
- `/multi-stack/installer/progress/{id}` - Progress tracking
- `/multi-stack/installer/complete` - Installation complete

🔒 Security
----------

[](#-security)

### Built-in Security Features

[](#built-in-security-features)

- **CSRF Protection**: All forms and API endpoints
- **Rate Limiting**: Configurable limits for API calls
- **Authentication**: Laravel Breeze integration
- **Authorization**: Role-based permissions
- **Input Validation**: Sanitize all user inputs
- **XSS Protection**: Built-in XSS prevention

### Security Configuration

[](#security-configuration)

```
'security' => [
    'csrf_protection' => true,
    'rate_limiting' => [
        'enabled' => true,
        'max_attempts' => 60,
        'decay_minutes' => 1,
    ],
    'input_validation' => true,
    'xss_protection' => true,
],
```

🚀 Performance
-------------

[](#-performance)

### Optimization Features

[](#optimization-features)

- **Asset Optimization**: Minified CSS/JS
- **Caching**: File-based caching
- **Database Optimization**: Efficient queries
- **Queue Processing**: Background jobs
- **CDN Support**: Static asset delivery

### Performance Configuration

[](#performance-configuration)

```
'performance' => [
    'caching' => [
        'enabled' => true,
        'driver' => 'file',
        'ttl' => 3600,
    ],
    'asset_optimization' => true,
    'database_optimization' => true,
],
```

📚 API Documentation
-------------------

[](#-api-documentation)

### Stack Management API

[](#stack-management-api)

```
# Get available stacks
GET /multi-stack/stacks

# Switch stack
POST /multi-stack/stacks/switch
{
    "stack": "vue-spa"
}

# Get stack status
GET /multi-stack/stacks/status
```

### Theme Management API

[](#theme-management-api)

```
# Get available themes
GET /multi-stack/themes

# Apply theme
POST /multi-stack/themes/apply
{
    "theme": "dark"
}

# Preview theme
GET /multi-stack/themes/preview/dark
```

### Installation API

[](#installation-api)

```
# Start installation
POST /multi-stack/installer/install
{
    "stack": "vue-spa",
    "theme": "dark",
    "options": {
        "install_composer": true,
        "install_npm": true,
        "run_migrations": true
    }
}

# Get installation progress
GET /multi-stack/installer/progress/{id}
```

🧪 Testing
---------

[](#-testing)

```
# Run tests
php artisan test

# Run stack tests
php artisan test --filter=StackTest

# Run installer tests
php artisan test --filter=InstallerTest
```

📈 Monitoring
------------

[](#-monitoring)

### Built-in Analytics

[](#built-in-analytics)

- Installation statistics
- Stack usage metrics
- Performance monitoring
- Error tracking
- User activity logs

### Custom Metrics

[](#custom-metrics)

```
// Track stack usage
$stackService->trackUsage($stack);

// Track installation metrics
$installerService->trackInstallation($stack, $theme);
```

🔄 Updates &amp; Maintenance
---------------------------

[](#-updates--maintenance)

### Stack Updates

[](#stack-updates)

```
# Update all stacks
php artisan ai-editor:stacks update-all

# Update specific stack
php artisan ai-editor:stacks update vue-spa
```

### Theme Updates

[](#theme-updates)

```
# Update all themes
php artisan ai-editor:themes update-all

# Update specific theme
php artisan ai-editor:themes update dark
```

🤝 Contributing
--------------

[](#-contributing)

1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Add tests
5. Submit a pull request

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

🆘 Support
---------

[](#-support)

- **Documentation**: [Package Documentation](https://github.com/ai-editor/ai-text-editor)
- **Issues**: [GitHub Issues](https://github.com/ai-editor/ai-text-editor/issues)
- **Discussions**: [GitHub Discussions](https://github.com/ai-editor/ai-text-editor/discussions)

🎉 What's Included
-----------------

[](#-whats-included)

### Complete Stack Scaffolding

[](#complete-stack-scaffolding)

- **Models**: User, Role, Permission models
- **Controllers**: API controllers for all stacks
- **Views**: Blade templates for Blade+Livewire
- **Components**: Vue/React components
- **Routes**: Web and API routes
- **Migrations**: Database migrations
- **Assets**: CSS, JavaScript, images

### Authentication System

[](#authentication-system)

- **Laravel Breeze**: Complete auth scaffolding
- **User Management**: Registration, login, logout
- **Password Reset**: Email-based password reset
- **Email Verification**: Email verification system
- **Role Management**: Spatie Laravel Permission

### Dashboard &amp; UI

[](#dashboard--ui)

- **Dashboard**: Analytics and quick actions
- **User Profile**: Profile management
- **Settings**: Application settings
- **Navigation**: Responsive navigation
- **Components**: Reusable UI components

### API Integration

[](#api-integration)

- **RESTful APIs**: Complete API endpoints
- **Authentication**: Sanctum API authentication
- **Rate Limiting**: API rate limiting
- **CORS**: Cross-origin resource sharing
- **Validation**: Request validation

---

**🚀 Ready to build amazing Laravel applications with multiple frontend stacks? Get started today!**

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance67

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

19

Last Release

223d ago

PHP version history (2 changes)v1.0.0PHP ^8.4

v1.7.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad107e973e4942f97e875f216484319e0d23e1a354ceae083f627715759c7096?d=identicon)[laravelgpt](/maintainers/laravelgpt)

---

Top Contributors

[![laravelgpt](https://avatars.githubusercontent.com/u/21008964?v=4)](https://github.com/laravelgpt "laravelgpt (1 commits)")

---

Tags

laravelaibladelivewirereactvuetext-editorAI EditorSPAnext.jsmulti-stack

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ai-editor-ai-text-editor/health.svg)

```
[![Health](https://phpackages.com/badges/ai-editor-ai-text-editor/health.svg)](https://phpackages.com/packages/ai-editor-ai-text-editor)
```

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[mati365/ckeditor5-livewire

CKEditor 5 integration for Laravel Livewire

413.9k](/packages/mati365-ckeditor5-livewire)

PHPackages © 2026

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