Search by

carlin / laravel-ai

mckue

Laravel AI SDK with PHP 8.1+ and Laravel 8-13 compatibility (drop-in fork of laravel/ai).

Package info

github.com/carlin-rj/ai

pkg:composer/carlin/laravel-ai

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.4.3.1 2026-12-02 07:34 UTC

This package is auto-updated.

Last update: 2026-12-03 01:45:04 UTC


README

Laravel AI SDK Package Logo

Compat Tests Total Downloads Latest Stable Version License

Introduction

carlin/laravel-ai is a drop-in compatibility fork of laravel/ai supporting PHP 8.1+ and Laravel 8.77+, 9.x, 10.x, 11.x, 12.x, and 13.x, while keeping identical Laravel\Ai\* namespaces and declaring "replace": { "laravel/ai": "self.version" }.

The Laravel AI SDK provides a unified, expressive API for interacting with AI providers such as OpenAI, Anthropic, Gemini, and more. With the AI SDK, you can build intelligent agents with tools and structured output, generate images, synthesize and transcribe audio, create vector embeddings, and much more — all using a consistent, Laravel-friendly interface.

Laravel 8–13 Compatibility & Installation

composer require carlin/laravel-ai

# Optional: if using MCP client/server tools on Laravel 8-13
composer require carlin/laravel-mcp
  • Preserves the exact Laravel\Ai\* namespaces, service provider, config, and Artisan commands so upgrading back to official laravel/ai on Laravel 12/13 requires zero code changes.
  • See COMPAT.md for the full compatibility matrix, database vector polyfills, and architecture details.

Documentation

Documentation for the Laravel AI SDK can be found on the Laravel website.

Contributing

Thank you for considering contributing to Laravel! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

The Laravel AI SDK is open-sourced software licensed under the MIT license.