{"repo":"openai-php/laravel","free":true,"listed":false,"github":"https://github.com/openai-php/laravel","clone":"git clone https://github.com/openai-php/laravel.git","description":"⚡️ OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with OpenAI API","language":"PHP","stars":3748,"topics":["client","laravel","open-ai"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"------ OpenAI PHP for Laravel is a community-maintained PHP API client that allows you to interact with the Open AI API. If you or your business relies on this package, it's important to support the developers who have contributed their time and effort to create and maintain this valuable tool: - Nuno Maduro: github.com/sponsors/nunomaduro - Sandro Gehri: github.com/sponsors/gehrisandro Note: This repository contains the integration code of the OpenAI PHP for Laravel. If you want to use the OpenAI PHP client in a framework-agnostic way, take a look at the openai-php/client repository. Get Started Requires PHP 8.2+ First, install OpenAI via the Composer package manager: Next, execute the install command: This will create a config/openai.php configuration file in your project, which you can modify to your needs using environment variables. Blank environment variables for the OpenAI API key and organization id are already appended to your .env file. Finally, you may use the OpenAI facade to access the OpenAI API: Configuration Configuration is done via environment variables or directly in the configuration file ( config/openai.php ). OpenAI API Key and Organization Specify your OpenAI API Key and organization. This will be used to authenticate with the OpenAI API - you can find your API key and organization on your OpenAI dashboard, at https://openai.com. OpenAI Project For implementations that require a project ID, you can specify the OpenAI project ID in your environment varia","default_branch":null,"files":null,"tree":[],"storefront":"/r/openai-php","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/openai-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."}