PHPackages                             diversen/tiny-gpt-client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. diversen/tiny-gpt-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

diversen/tiny-gpt-client
========================

A tiny GPT client for PHP

v1.0.2(2y ago)2792MITPHP

Since Apr 1Pushed 2y ago1 watchersCompare

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

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

shell-gpt-php
=============

[](#shell-gpt-php)

A tiny GPT client with no dependencies.

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

[](#installation)

```
composer require diversen/tiny-gpt-client

```

Usage
-----

[](#usage)

The API has methods for completions and chat completions

- /completions
- /chat/completions

For both endpoints there is streaming and non-streaming responses.

When streaming the response the token usage is calculated using a `Token` class. This may not be an exact calculation.

When using the non-streaming response the usage of tokens should be exact.

Usage example
-------------

[](#usage-example)

See: [example](example/index.php)

License
-------

[](#license)

MIT © [Dennis Iversen](https://github.com/diversen)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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 ~156 days

Total

3

Last Release

831d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23ed91d104f16d10414811ecdafbd5c80a660e658d80ccaadf84f512cfb50629?d=identicon)[diversen](/maintainers/diversen)

---

Top Contributors

[![diversen](https://avatars.githubusercontent.com/u/142675?v=4)](https://github.com/diversen "diversen (6 commits)")

---

Tags

gptgpt-php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/diversen-tiny-gpt-client/health.svg)

```
[![Health](https://phpackages.com/badges/diversen-tiny-gpt-client/health.svg)](https://phpackages.com/packages/diversen-tiny-gpt-client)
```

###  Alternatives

[aryehraber/statamic-splash

Browse Unsplash images right from the CP.

125.8k](/packages/aryehraber-statamic-splash)

PHPackages © 2026

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