{"repo":"moe-mizrak/laravel-openrouter","free":true,"listed":false,"github":"https://github.com/moe-mizrak/laravel-openrouter","clone":"git clone https://github.com/moe-mizrak/laravel-openrouter.git","description":"Laravel package for OpenRouter (A unified interface for LLMs)","language":"PHP","stars":157,"topics":["ai","api","gpt","laravel","llms","openrouter","php8","multiple-models","all-llms","multiple-llm"],"license":"MIT","category":"ai-agents","readme_excerpt":"Laravel OpenRouter This Laravel package provides an easy-to-use interface for integrating OpenRouter into your Laravel applications. OpenRouter is a unified interface for Large Language Models (LLMs) that allows you to interact with various AI models through a single API. Table of Contents - 🤖 Requirements - 🏁 Get Started - 🧩 Configuration - 🎨 Usage - Understanding ChatData DTO - LLM Parameters - Tool Calling Parameters - Additional Optional Parameters - OpenRouter-only Parameters - Provider Preferences - Creating a ChatData Instance - Using Facade - Chat Request - Stream Chat Request - Maintaining Conversation Continuity - Tool & Function Calling - Structured Output - Web Search - File/Document Inputs - Audio Inputs - Prompt caching - Cost Request - Limit Request - Using OpenRouterRequest Class - 💫 Contributing - 📜 License 🤖 Requirements - PHP 8.2 or higher : Use version v2.x.x (latest compatible version) - Uses spatie laravel-data - PHP 8.1 : Use version v1.0.9 . - Uses spatie data-transfer-object - For correct way to use DTOs, refer to v1.0.9 README. 🏁 Get Started You can install the package via composer: You can publish the config file with: This is the contents of the published config file : 🧩 Configuration After publishing the package configuration file, you'll need to add the following environment variables to your .env file: [!NOTE] - OPENROUTER API ENDPOINT : The endpoint URL for the OpenRouter API (default: https://openrouter.ai/api/v1/). - OPENROUTER API K","default_branch":null,"files":null,"tree":[],"storefront":"/r/moe-mizrak","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/moe-mizrak/laravel-openrouter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}