PHPackages                             damienpayet50320/php-chatgpt-client-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. damienpayet50320/php-chatgpt-client-api

ActiveProject[API Development](/categories/api)

damienpayet50320/php-chatgpt-client-api
=======================================

PHP Client for Interacting with ChatGPT's GPT-3.5 API

01PHP

Since Jul 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/damienpayet50320/php-chatgpt-client-api)[ Packagist](https://packagist.org/packages/damienpayet50320/php-chatgpt-client-api)[ RSS](/packages/damienpayet50320-php-chatgpt-client-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

ChatGPT PHP Client
==================

[](#chatgpt-php-client)

The ChatGPT PHP Client is a simple PHP library that allows you to interact with the GPT-3.5 API provided by ChatGPT. This library provides an easy way to send prompts to the GPT-3.5 engine and get responses.

Installation
------------

[](#installation)

You can install the ChatGPT PHP Client using [Composer](https://getcomposer.org/). Run the following command in your project directory:

> composer require damienpayet50320/php-chatgpt-client-api

Usage
-----

[](#usage)

To use the ChatGPT PHP Client, you'll need an API key from ChatGPT. Once you have the API key, you can create an instance of the `ChatGPTClient` class and call the `completePrompt` method with your desired prompt.

Here's a simple example:

```
