Download the PHP package omer-hanaraey/laravel-ai-gateway without Composer
On this page you can find all versions of the php package omer-hanaraey/laravel-ai-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download omer-hanaraey/laravel-ai-gateway
More information about omer-hanaraey/laravel-ai-gateway
Files in omer-hanaraey/laravel-ai-gateway
Download omer-hanaraey/laravel-ai-gateway
More information about omer-hanaraey/laravel-ai-gateway
Files in omer-hanaraey/laravel-ai-gateway
Vendor omer-hanaraey
Package laravel-ai-gateway
Short Description A unified interface for multiple AI providers in Laravel
License MIT
Package laravel-ai-gateway
Short Description A unified interface for multiple AI providers in Laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-ai-gateway
Laravel AI Bridge
A unified interface for multiple AI providers in Laravel applications.
Features
- Support for multiple AI providers (OpenAI, Gemini, Claude, DeepSeek, Mistral, and Cohere)
- Unified API interface
- Easy driver switching
- Standardized response format
- Facade access
Installation
-
Install via Composer:
- Publish the configuration file:
Configuration
Add your API keys to your .env file:
Usage
Usage Examples ๐งโ๐ป
Using Specific Drivers
Available Methods
chat(array $messages)
: Send chat completiondriver(string $name)
: Switch between providers
Response Format ๐ฆ
All responses implement AiResponseInterface
with these methods:
getContent()
: string - Get the response contentgetUsage()
: array - Get usage statisticsisSuccessful()
: bool - Check if request succeeded
Testing ๐งช
Run the tests with:
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License ๐
MIT License - Free for commercial and personal use.
All versions of laravel-ai-gateway with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1 || ^8.2 || ^8.3 || ^8.4
ext-json Version *
illuminate/support Version ^9.0 || ^10.0 || ^11.0 || ^12.0
openai-php/client Version ^0.6
symfony/http-client Version ^6.4 || ^7.2
nyholm/psr7 Version ^1.8
google/apiclient Version ^2.18
ext-json Version *
illuminate/support Version ^9.0 || ^10.0 || ^11.0 || ^12.0
openai-php/client Version ^0.6
symfony/http-client Version ^6.4 || ^7.2
nyholm/psr7 Version ^1.8
google/apiclient Version ^2.18
The package omer-hanaraey/laravel-ai-gateway contains the following files
Loading the files please wait ....