PHPackages                             adari/adariai-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. [HTTP &amp; Networking](/categories/http)
4. /
5. adari/adariai-api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

adari/adariai-api
=================

A simple PHP wrapper for the OpenAI API

1.0.0(3y ago)05MITPHPPHP &gt;=7.0.0

Since Apr 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/allusernamestakenexceptthis/adariai-api)[ Packagist](https://packagist.org/packages/adari/adariai-api)[ Docs](https://gomilkyway.com)[ RSS](/packages/adari-adariai-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Adariai APi
===========

[](#adariai-api)

(Early version) Adariai APi is simple unofficial PHP wrapper for openai API.

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

[](#installation)

Download the repository or install via composer

```
composer require adari/adariai-api
```

Usage
-----

[](#usage)

```
require_once 'vendor/autoload.php';
use AdariaiApi\Wrapper;

//use environment variables for this, see examples
$api_key = "[YOUR OPENAI API KEY]";

$response = $openapi->getChat("gpt-3.5-turbo", "What's the capital of Peru?");

print_r($response);
```

Packages used
-------------

[](#packages-used)

[GuzzleHttp](https://github.com/guzzle/guzzle)

Version
-------

[](#version)

Early version 1.0.0

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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

Unknown

Total

1

Last Release

1129d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13194bc99a43f6e5e29740099b6d9eac00b3b1f93c444a3aebf9e7b21160723a?d=identicon)[allusernamestakenexceptthis](/maintainers/allusernamestakenexceptthis)

---

Top Contributors

[![allusernamestakenexceptthis](https://avatars.githubusercontent.com/u/26244062?v=4)](https://github.com/allusernamestakenexceptthis "allusernamestakenexceptthis (7 commits)")

---

Tags

apiGuzzlewrapperopenai

### Embed Badge

![Health badge](/badges/adari-adariai-api/health.svg)

```
[![Health](https://phpackages.com/badges/adari-adariai-api/health.svg)](https://phpackages.com/packages/adari-adariai-api)
```

###  Alternatives

[antoinelemaire/aircall-php

Aircall API client built on top of Guzzle 6

1049.6k](/packages/antoinelemaire-aircall-php)

PHPackages © 2026

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