PHPackages                             onemoreangle/llm-unchained - 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. onemoreangle/llm-unchained

ActiveLibrary[API Development](/categories/api)

onemoreangle/llm-unchained
==========================

A PHP library for interacting with different LLM providers

025PHPCI passing

Since Mar 15Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/onemoreangle/llm-unchained)[ Packagist](https://packagist.org/packages/onemoreangle/llm-unchained)[ RSS](/packages/onemoreangle-llm-unchained/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

llm-unchained
=============

[](#llm-unchained)

PHP library to incorporate LLMs (Large Language Models) into your applications.

> **Warning**
> This project is unstable and under development

Origin
------

[](#origin)

This project originates from a direct fork/clone of the [**llm-chain**](https://github.com/php-llm/llm-chain) project. The foundational work by the authors is gratefully acknowledged and appreciated.

`llm-unchained` was created primarily because the process of adding features for real-world use cases using `llm-chain` was found to be significantly hampered by overly restrictive design constraints (architectural as well as code style). These choices consistently slowed development progress. `llm-unchained` seeks to provide a balance that allows developers (myself included) to prototype more quickly and to provide the needed functionality and integrations more rapidly and with less friction.

Requirements
------------

[](#requirements)

- PHP 8.2 or higher

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

[](#installation)

The recommended way to install llm-unchained is through [composer](http://getcomposer.org/):

```
composer require onemoreangle/llm-unchained
```

Examples
--------

[](#examples)

See [examples](examples) folder to run example implementations using this library. Depending on the example you need to export different environment variables for API keys or deployment configurations or create a `.env.local` based on `.env` file.

Documentation
-------------

[](#documentation)

For documentation in addition to the examples, please consult the documentation of the original [**llm-chain**](https://github.com/php-llm/llm-chain) for now, but be aware that the APIs, classes, and methods may differ from the original `llm-chain` project.

> **Note**The examples within this repository should always be up to date with the current state of the codebase, so they are the best source of truth on how to use the library.

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

[](#contributing)

Currently, this project is maintained by the author but collaborations are definitely welcome, so please feel free to open issues or pull requests.

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

### Fixture Licenses (from original project)

[](#fixture-licenses-from-original-project)

For testing multi-modal features, the repository contains binary media content, with the following owners and licenses:

- `tests/Fixture/image.jpg`: Chris F., Creative Commons, see [pexels.com](https://www.pexels.com/photo/blauer-und-gruner-elefant-mit-licht-1680755/)
- `tests/Fixture/audio.mp3`: davidbain, Creative Commons, see [freesound.org](https://freesound.org/people/davidbain/sounds/136777/)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance54

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 53.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9eb88118cc923ecdc3876533235a1f30794daceaaeac087aced96a0a65726931?d=identicon)[onemoreangle](/maintainers/onemoreangle)

---

Top Contributors

[![chr-hertel](https://avatars.githubusercontent.com/u/2852185?v=4)](https://github.com/chr-hertel "chr-hertel (151 commits)")[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (93 commits)")[![onemoreangle](https://avatars.githubusercontent.com/u/109597356?v=4)](https://github.com/onemoreangle "onemoreangle (25 commits)")[![DZunke](https://avatars.githubusercontent.com/u/1244235?v=4)](https://github.com/DZunke "DZunke (9 commits)")[![odinuv](https://avatars.githubusercontent.com/u/4319320?v=4)](https://github.com/odinuv "odinuv (1 commits)")[![Iyadhfaleh](https://avatars.githubusercontent.com/u/3882551?v=4)](https://github.com/Iyadhfaleh "Iyadhfaleh (1 commits)")[![rglozman](https://avatars.githubusercontent.com/u/7976965?v=4)](https://github.com/rglozman "rglozman (1 commits)")

### Embed Badge

![Health badge](/badges/onemoreangle-llm-unchained/health.svg)

```
[![Health](https://phpackages.com/badges/onemoreangle-llm-unchained/health.svg)](https://phpackages.com/packages/onemoreangle-llm-unchained)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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