PHPackages                             accelade/ai - 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. accelade/ai

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

accelade/ai
===========

AI-powered components for Accelade - Global Search, Chat, and Copilot widgets

v1.0.0(4mo ago)00[4 PRs](https://github.com/accelade/ai/pulls)MITBladePHP ^8.2CI passing

Since Jan 19Pushed 1mo agoCompare

[ Source](https://github.com/accelade/ai)[ Packagist](https://packagist.org/packages/accelade/ai)[ Docs](https://github.com/accelade/ai)[ GitHub Sponsors](https://github.com/fadymondy)[ RSS](/packages/accelade-ai/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (9)Used By (0)

Accelade AI
===========

[](#accelade-ai)

[![Tests](https://github.com/accelade/ai/actions/workflows/tests.yml/badge.svg)](https://github.com/accelade/ai/actions/workflows/tests.yml)[![Latest Version](https://camo.githubusercontent.com/fb5cb37d709c81aaf63e157f6c02f205bf56d40786a1f9cd0a5ace3c7f921f3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616363656c6164652f61692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/accelade/ai)[![License](https://camo.githubusercontent.com/3555f02671a991a2ab4ffa1366b808273ac6f5ff0f63b26f25c74ded3da07111/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616363656c6164652f61692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/accelade/ai)

AI-powered components for Laravel applications built with Accelade. Add intelligent search, chat interfaces, and contextual AI assistants to your application with minimal setup.

Features
--------

[](#features)

- **Global Search** - macOS Spotlight-like search with AI enhancement (Cmd+K / Ctrl+K)
- **AI Chat** - Full-featured ChatGPT-like chat interface with streaming responses
- **Copilot Widget** - Floating AI assistant that understands page context
- **Multi-Provider Support** - OpenAI, Anthropic (Claude), and Google Gemini
- **Framework Agnostic** - Works with vanilla JS, Vue, React, Svelte, and Angular
- **Streaming Responses** - Real-time streaming for better UX
- **Context Awareness** - Copilot can read and understand page content

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 11.0+ or 12.0+
- Accelade ^1.0

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

[](#installation)

```
composer require accelade/ai
```

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

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag=accelade-ai-config
```

Add your API keys to `.env`:

```
# OpenAI (GPT-4, GPT-3.5)
OPENAI_API_KEY=your-openai-key

# Anthropic (Claude)
ANTHROPIC_API_KEY=your-anthropic-key

# Google AI (Gemini)
GOOGLE_AI_API_KEY=your-google-key
```

Quick Start
-----------

[](#quick-start)

Add AI components to your Blade layout:

```
{{-- Global Search - Opens with Cmd+K (Mac) or Ctrl+K (Windows/Linux) --}}

{{-- Full Chat Interface --}}

{{-- Floating Copilot Widget --}}

```

Or use Blade directives:

```
@aiGlobalSearch
@aiChat
@aiCopilot
```

Documentation
-------------

[](#documentation)

For detailed documentation, see the [docs](docs/) folder:

- [Overview](docs/overview.md) - Getting started and basic concepts
- [Configuration](docs/configuration.md) - All configuration options
- [Global Search](docs/global-search.md) - Spotlight-like search component
- [AI Chat](docs/chat.md) - ChatGPT-style chat interface
- [Copilot](docs/copilot.md) - Contextual AI assistant widget
- [Providers](docs/providers.md) - AI provider configuration and usage

Components
----------

[](#components)

### Global Search

[](#global-search)

A spotlight-like search modal combining traditional search with AI-powered queries:

```

```

### AI Chat

[](#ai-chat)

A full-featured chat interface with streaming responses:

```

```

### Copilot Widget

[](#copilot-widget)

A floating assistant that can read and understand page context:

```

```

PHP API
-------

[](#php-api)

Use the AI facade for programmatic access:

```
use Accelade\AI\Facades\AI;

// Use the default provider
$response = AI::chat([
    ['role' => 'user', 'content' => 'Hello!']
]);

// Use a specific provider
$response = AI::provider('anthropic')->chat([
    ['role' => 'user', 'content' => 'Hello!']
]);

// Stream responses
foreach (AI::stream($messages) as $chunk) {
    echo $chunk;
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review our [security policy](.github/SECURITY.md) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Fady Mondy](https://github.com/fadymondy)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance84

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

120d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2147eb2fca7ab5f0124d0fafd88ba2d2a5dfa3a0036fb8872d1084b7cba29366?d=identicon)[fadymondy](/maintainers/fadymondy)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![fadymondy](https://avatars.githubusercontent.com/u/11937812?v=4)](https://github.com/fadymondy "fadymondy (5 commits)")

---

Tags

searchlaravelaibladeopenaichatGeminicopilotclaudeanthropicartificial intelligencespotlight

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)[vizra/vizra-adk

Vizra Agent Development Kit - A comprehensive Laravel package for building intelligent AI agents.

29026.1k](/packages/vizra-vizra-adk)

PHPackages © 2026

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