{"repo":"grok-php/laravel","free":true,"listed":false,"github":"https://github.com/grok-php/laravel","clone":"git clone https://github.com/grok-php/laravel.git","description":"Seamlessly integrate Grok AI into Laravel applications with an elegant, developer-friendly package. Leverage powerful AI models for chat, automation, and NLP, while maintaining Laravel's expressive simplicity.","language":"PHP","stars":167,"topics":["ai-api","ai-assistant","ai-powered-applications","ai-sdk","chatbot","laravel","laravel-ai","machine-learning","php-ai-sdk","rest-api"],"license":"MIT","category":"machine-learning","readme_excerpt":"🧠 Grok AI Laravel A Laravel integration for the GrokPHP Client , designed to effortlessly incorporate Grok AI into Laravel applications with a clean and intuitive API. Utilize advanced AI models for chat, automation, and natural language processing , all while preserving Laravel's simplicity and elegance. --- Table of Contents - Features - Installation - Quick Start - Chat API - Vision Analysis - Error Handling - Available Grok AI Models - Streaming Responses - Testing - Security - Contributing - License --- Features - Seamless Laravel Integration – Works with Laravel 10, 11, and 12 - Simple API Client – Access Grok AI models with a clean and intuitive API - Supports Chat & Vision – Send both text and image-based requests - Streaming Capable – Enable real-time AI responses - Configurable Defaults – Set model, temperature, and timeout via config --- Installation Install via Composer: After installation, run the setup command: This command will: - Publish the configuration file ( config/grok.php ). - Add necessary environment variables to .env . Add your API key in .env : --- Quick Start Chat API Vision Analysis (Image Recognition) Error Handling All errors are wrapped in the GrokException class: --- Available Grok AI Models Model Enum API Model Name Description ----------------------------- ---------------------- ----------------------------------------------------- Model::GROK VISION BETA grok-vision-beta Experimental vision-enabled model Model::GROK 2 VISION grok-2-vision A","default_branch":null,"files":null,"tree":[],"storefront":"/r/grok-php","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/grok-php/laravel/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."}