{"type":"mcp_client","name":"prism","description":"**Option 1 (Focus on Laravel integration):**\n\nLaravel LLM integration. Unified interface for interacting with various language models. #Laravel #LLM #AI\n\n**Option 2 (Focus on abstraction):**\n\nLLM abst","category":"AI","language":"PHP","stars":2396,"forks":143,"owner":"prism-php","github_url":"https://github.com/prism-php/prism","homepage":"https://prismphp.com","setup":"## Setup\n\n**Prerequisites:**\n\n*   PHP 8.1 or higher\n*   Composer\n*   Laravel 9.0 or higher\n\n**Installation:**\n\n1.  Install the package via Composer:\n\n    ```bash\n    composer require prism-php/prism\n    ```\n\n2.  Publish the configuration file:\n\n    ```bash\n    php artisan vendor:publish --tag=prism.config\n    ```\n\n    This will create a `config/prism.php` file in your application.\n\n**Configuration:**\n\n1.  Open the `config/prism.php` file and configure your desired AI provider(s).  You'll need to set the appropriate API keys and other provider-specific settings.\n\n2.  **Environment Variables:**\n\n    The configuration file will likely require you to set environment variables for your chosen AI providers.  Here's an example of the environment variables you might need to set, depending on the providers you choose:\n\n    ```\n    OPENAI_API_KEY=your_openai_api_key\n    ANTHROPIC_API_KEY=your_anthropic_api_key\n    // Add other provider keys here\n    ```\n\n    Remember to add these variables to your `.env` file.\n\n3.  **Provider Specific Configuration:**\n\n    Refer to the documentation for your chosen AI provider(s) for specific configuration options and requirements.  You may need to install additional packages or configure specific settings within the `config/prism.php` file.","tools":"## Available Tools\n\n*   **LLM Integration:** Seamlessly integrates Large Language Models (LLMs) into your Laravel applications.\n*   **Fluent Interface:** Provides a user-friendly and expressive fluent interface for interacting with LLMs.\n*   **Text Generation:** Enables the generation of text using various AI providers.\n*   **Multi-Step Conversations:** Facilitates the management of complex, multi-turn conversations with LLMs.\n*   **Tool Utilization:** Allows the use of external tools in conjunction with LLMs to enhance functionality.\n*   **Provider Agnostic:** Supports multiple AI providers, allowing you to switch or combine providers as needed.","faq":null,"created_at":"2024-02-23T15:54:46+00:00","updated_at":"2025-07-07T16:51:57+00:00","source_url":"https://model-context-protocol.com/clients/prism","related_articles":[]}