Looking to hire Laravel developers? Try LaraJobs

laravel-ai maintained by carlin

Description
Laravel AI SDK with PHP 8.1+ and Laravel 8-13 compatibility (drop-in fork of laravel/ai).
Last update
2026/12/02 08:34 (dev-compat/laravel-8-11)
License
Downloads
2
Tags

Comments
comments powered by Disqus

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.