PHP Package: openai-php/client

OpenAI PHP client library for seamless integration with powerful AI models.

Current Version: 0.17.1
Last Updated: 2025-10-09
PHP Requirement: ^8.2.0
Dependencies: None

Package Description

The OpenAI PHP client library facilitates easy access to cutting-edge AI models for natural language processing, text generation, and more. It simplifies the integration process and enhances the capabilities of PHP applications by leveraging OpenAI's state-of-the-art technologies.

📦 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/client/0.17.1/loader.php';

use OpenAI\Client\Model;

$obj = new Model();
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.