PHP Package: openai-php/laravel

OpenAI PHP library for Laravel framework, providing seamless integration for AI-powered applications and tools.

Current Version: 0.17.1
Last Updated: 2025-10-02
PHP Requirement: ^8.2.0
Dependencies:
openai-php/openai-php
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The OpenAI PHP library for Laravel is designed to enhance your application with cutting-edge artificial intelligence capabilities. Seamlessly integrate state-of-the-art AI models and tools to empower your projects with advanced natural language processing, image recognition, and more.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 0.17.1

Download Download v0.17.1

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/openai-php/laravel/0.17.1/loader.php';
require_once 'libs/openai-php/openai-php/{lib_version}/loader.php';

use OpenAI\Laravel\OpenAI;

$obj = new OpenAI();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.