PHPackages                             fnadalrod/chatgpt-open-api-wrapper - 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. fnadalrod/chatgpt-open-api-wrapper

AbandonedArchivedLibrary[API Development](/categories/api)

fnadalrod/chatgpt-open-api-wrapper
==================================

A simple PHP wrapper for the ChatGPT API

0.0.2(1y ago)12MITPHP

Since Dec 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fnadalrod/chatgpt-open-api-wrapper)[ Packagist](https://packagist.org/packages/fnadalrod/chatgpt-open-api-wrapper)[ RSS](/packages/fnadalrod-chatgpt-open-api-wrapper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

ChatGPT PHP Wrapper
===================

[](#chatgpt-php-wrapper)

This project is a **small PHP wrapper** designed to interact with the ChatGPT API in a **simple, maintainable, and extensible** way. It is currently in a **basic initial version**, but already provides a functional starting point for integrating the API into PHP projects.

Features
--------

[](#features)

- **Easy to use:** Minimal configuration required to start sending prompts and receiving responses.
- **Customizable:** Ability to define the HTTP client (e.g., Guzzle) and configure key API options.
- **Extensible:** Designed structure to easily add future improvements and new features.

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

[](#installation)

```
composer require fnadalrod/chatgpt-open-api-wrapper
```

Basic Usage
-----------

[](#basic-usage)

Here’s an example of how to use the wrapper to make a request to the ChatGPT model:

```
$config = [
    "http_client" => "guzzle",
    "api_key" => "****",
    "engine" => "gpt-3.5-turbo"
];

$openApiClient = new OpenApiClient($config);
$openApiResponse = $openApiClient->prompt('Is it working?');

echo $openApiResponse->getLastResponse();
```

### Notes

[](#notes)

- API Keys: You will need a valid OpenAI API key to use this library.
- Project Status: This wrapper is in its initial stage. New features and improvements are planned for future versions.
- More documentation is expected in the future

### Contributing

[](#contributing)

If you would like to contribute to the development, feel free to open an issue to report problems or discuss potential improvements in pull requests.

### License

[](#license)

This project is available under the MIT License, you can use this code however you wish.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

2

Last Release

518d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fcc654f842e27b7809c3b237c6556460b2c9c067c85efb6efe84cd9cc7f000f1?d=identicon)[fnadalrod](/maintainers/fnadalrod)

---

Top Contributors

[![fnadalrod](https://avatars.githubusercontent.com/u/17559956?v=4)](https://github.com/fnadalrod "fnadalrod (12 commits)")

### Embed Badge

![Health badge](/badges/fnadalrod-chatgpt-open-api-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/fnadalrod-chatgpt-open-api-wrapper/health.svg)](https://phpackages.com/packages/fnadalrod-chatgpt-open-api-wrapper)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
