PHPackages                             omarelnaghy/laravel-ai-copilot - 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. [API Development](/categories/api)
4. /
5. omarelnaghy/laravel-ai-copilot

ActiveLibrary[API Development](/categories/api)

omarelnaghy/laravel-ai-copilot
==============================

Plug-and-play Laravel AI Copilot: unified AI API (OpenAI, Anthropic, Ollama)

v0.1.4(7mo ago)01MITPHPPHP ^8.1

Since Sep 29Pushed 7mo agoCompare

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

READMEChangelogDependencies (6)Versions (5)Used By (0)

Laravel AI Copilot
==================

[](#laravel-ai-copilot)

Plug-and-play unified AI API for Laravel 11. Swap providers (OpenAI, Anthropic, Ollama) with config and call one Facade: `AI::`.

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

[](#installation)

```
composer require omarelnaghy/laravel-ai-copilot
php artisan vendor:publish --tag=ai-config
```

Set environment variables:

```
OPENAI_KEY=sk-...
AI_DRIVER=openai
```

Usage
-----

[](#usage)

```
use Omarelnaghy\LaravelAICopilot\Facades\AI;

$summary = AI::summarize($article->body);
$reply   = AI::chat('Explain Laravel in 3 sentences');
$seo     = AI::generate("Meta description for: {$product->name}");
```

Config
------

[](#config)

See `config/ai.php` for providers and defaults.

Testing
-------

[](#testing)

```
composer install
composer test
```

Roadmap
-------

[](#roadmap)

- Anthropic and Ollama drivers
- Embeddings + Vector search (pgvector, Pinecone, Qdrant)
- Retries, circuit breaker, middleware
- File summarization, image generation, OCR
- Memory, dashboards

License: MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance63

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

4

Last Release

225d ago

PHP version history (2 changes)0.1.0PHP &gt;=8.2

v0.1.4PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![omarelnaghy](https://avatars.githubusercontent.com/u/53927064?v=4)](https://github.com/omarelnaghy "omarelnaghy (6 commits)")

---

Tags

laravelaiopenaicopilotllmanthropicChatGptollama

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/omarelnaghy-laravel-ai-copilot/health.svg)

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

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[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)[claude-php/claude-php-sdk-laravel

Laravel integration for the Claude PHP SDK - Anthropic Claude API

5010.8k](/packages/claude-php-claude-php-sdk-laravel)

PHPackages © 2026

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