PHPackages                             anilcancakir/laravel-ai-sdk-plus - 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. anilcancakir/laravel-ai-sdk-plus

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

anilcancakir/laravel-ai-sdk-plus
================================

Laravel AI SDK Plus — A fork of the official Laravel AI SDK enriched with custom features.

v0.1.6(2mo ago)116MITPHPPHP ^8.4CI passing

Since Feb 11Pushed 2mo agoCompare

[ Source](https://github.com/anilcancakir/laravel-ai-sdk-plus)[ Packagist](https://packagist.org/packages/anilcancakir/laravel-ai-sdk-plus)[ Docs](https://github.com/anilcancakir/laravel-ai-sdk-plus)[ RSS](/packages/anilcancakir-laravel-ai-sdk-plus/feed)WikiDiscussions 0.x-plus Synced 1mo ago

READMEChangelog (2)Dependencies (12)Versions (11)Used By (0)

[![Laravel AI SDK Plus](/art/logo.svg)](/art/logo.svg)

Laravel AI SDK Plus
===================

[](#laravel-ai-sdk-plus)

A fork of the official [Laravel AI SDK](https://github.com/laravel/ai) enriched with additional features. This package is kept in sync with the upstream `laravel/ai` repository as closely as possible — all core functionality remains identical.

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

[](#installation)

```
composer require anilcancakir/laravel-ai-sdk-plus
```

> **Note:** This package replaces `laravel/ai`. You should not have both installed at the same time.

What's Different?
-----------------

[](#whats-different)

Everything from the official Laravel AI SDK works exactly the same. This fork adds the following features on top:

### Agent Skills System

[](#agent-skills-system)

A file-based, discoverable system that allows AI agents to dynamically load domain-specific instructions and reference files at runtime. Skills are Markdown files with YAML front matter, placed in `resources/skills/`.

```
class DesignAgent extends Agent
{
    use Skillable;

    public function skills(): iterable
    {
        return ['wind-ui'];
    }
}
```

### Thinking / Extended Reasoning

[](#thinking--extended-reasoning)

Configure thinking/reasoning behavior per agent using the `#[Thinking]` attribute. Works across all major providers with automatic parameter mapping.

```
use Laravel\Ai\Attributes\Thinking;

#[Thinking]                        // Enable with defaults
#[Thinking(effort: 'low')]         // Reasoning effort (OpenAI, Gemini, OpenAI-Compatible)
#[Thinking(budgetTokens: 10000)]   // Token budget (Anthropic, Gemini)
#[Thinking(effort: 'high', budgetTokens: 16000)] // Both
```

ProviderParametersAnthropic`thinking.enabled`, `thinking.budgetTokens`OpenAI`reasoning.effort`Gemini`thinkingBudget`, `thinkingLevel`xAI`thinking.enabled`Ollama`thinking`OpenAI-Compatible`reasoning_effort`### OpenAI-Compatible Provider

[](#openai-compatible-provider)

Support for any OpenAI-compatible API endpoint (LocalAI, Ollama, vLLM, LiteLLM, etc.) as a first-class provider.

```
// config/ai.php
'providers' => [
    'my-provider' => [
        'driver' => 'openai-compatible',
        'key' => env('MY_PROVIDER_API_KEY'),
        'url' => 'https://api.my-provider.com/v1',
        'models' => [
            'default' => 'gpt-4o',
            'image' => 'image-model',
        ],
    ],
],
```

#### Text Generation

[](#text-generation)

```
use Laravel\Ai\Ai;

$response = Ai::textProvider('my-provider')
    ->prompt('Explain quantum computing in one sentence.');
```

#### Image Generation

[](#image-generation)

Generate images through any OpenAI-compatible service that supports image generation via the chat completions endpoint:

```
use Laravel\Ai\Image;

// Basic image generation
$response = Image::of('A cat wearing a top hat')->generate('my-provider');

// Access the generated image
$response->firstImage()->image; // Base64 content
$response->firstImage()->mime;  // e.g. 'image/png'

// Save to disk
$response->store('images', 'public');

// With size and quality options
Image::of('A futuristic cityscape')
    ->landscape()
    ->quality('high')
    ->generate('my-provider');

// With reference image attachments
use Laravel\Ai\Files\Image as ImageFile;

Image::of('Make this image more vibrant')
    ->attachments([
        ImageFile::fromPath('/path/to/reference.jpg'),
    ])
    ->generate('my-provider');
```

Set a default image provider to skip specifying it every time:

```
// config/ai.php
'default_for_images' => 'my-provider',

// Then simply:
Image::of('A mountain at dawn')->generate();
```

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

[](#documentation)

For core SDK documentation, refer to the official [Laravel AI SDK docs](https://laravel.com/docs/ai-sdk).

Upstream Sync
-------------

[](#upstream-sync)

This fork tracks the `0.x` branch of `laravel/ai`. Upstream changes are merged regularly to stay current with the official release.

License
-------

[](#license)

Laravel AI SDK Plus is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance84

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.3% 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 ~1 days

Total

3

Last Release

88d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f9b947d5c44814a51da6c71657777ae3ec8c10c92abe4d263a203ffe8499b41?d=identicon)[anilcancakir](/maintainers/anilcancakir)

---

Top Contributors

[![taylorotwell](https://avatars.githubusercontent.com/u/463230?v=4)](https://github.com/taylorotwell "taylorotwell (194 commits)")[![anilcancakir](https://avatars.githubusercontent.com/u/21953173?v=4)](https://github.com/anilcancakir "anilcancakir (27 commits)")[![lucasmichot](https://avatars.githubusercontent.com/u/513603?v=4)](https://github.com/lucasmichot "lucasmichot (6 commits)")[![jackbayliss](https://avatars.githubusercontent.com/u/13621738?v=4)](https://github.com/jackbayliss "jackbayliss (6 commits)")[![DGarbs51](https://avatars.githubusercontent.com/u/58236685?v=4)](https://github.com/DGarbs51 "DGarbs51 (4 commits)")[![mubbi](https://avatars.githubusercontent.com/u/6255767?v=4)](https://github.com/mubbi "mubbi (3 commits)")[![pushpak1300](https://avatars.githubusercontent.com/u/31663512?v=4)](https://github.com/pushpak1300 "pushpak1300 (3 commits)")[![eznix86](https://avatars.githubusercontent.com/u/26553194?v=4)](https://github.com/eznix86 "eznix86 (3 commits)")[![bensherred](https://avatars.githubusercontent.com/u/22666637?v=4)](https://github.com/bensherred "bensherred (2 commits)")[![MaximeWillinger](https://avatars.githubusercontent.com/u/5830280?v=4)](https://github.com/MaximeWillinger "MaximeWillinger (2 commits)")[![nunomaduro](https://avatars.githubusercontent.com/u/5457236?v=4)](https://github.com/nunomaduro "nunomaduro (2 commits)")[![ihxnnxs](https://avatars.githubusercontent.com/u/62433092?v=4)](https://github.com/ihxnnxs "ihxnnxs (2 commits)")[![lcorbett89](https://avatars.githubusercontent.com/u/66969275?v=4)](https://github.com/lcorbett89 "lcorbett89 (1 commits)")[![monayemislam](https://avatars.githubusercontent.com/u/18171220?v=4)](https://github.com/monayemislam "monayemislam (1 commits)")[![monurakkaya](https://avatars.githubusercontent.com/u/10274803?v=4)](https://github.com/monurakkaya "monurakkaya (1 commits)")[![nickgerrer](https://avatars.githubusercontent.com/u/4253796?v=4)](https://github.com/nickgerrer "nickgerrer (1 commits)")[![petericebear](https://avatars.githubusercontent.com/u/339796?v=4)](https://github.com/petericebear "petericebear (1 commits)")[![SanderMuller](https://avatars.githubusercontent.com/u/9074391?v=4)](https://github.com/SanderMuller "SanderMuller (1 commits)")[![timacdonald](https://avatars.githubusercontent.com/u/24803032?v=4)](https://github.com/timacdonald "timacdonald (1 commits)")[![boynet](https://avatars.githubusercontent.com/u/1615629?v=4)](https://github.com/boynet "boynet (1 commits)")

---

Tags

laravelaiagentsskills

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/anilcancakir-laravel-ai-sdk-plus/health.svg)

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

732506.3k60](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[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)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.4k10.6M274](/packages/laravel-boost)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

71510.9M66](/packages/laravel-mcp)

PHPackages © 2026

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