PHPackages                             tivins/llm-stack-sdk - 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. tivins/llm-stack-sdk

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

tivins/llm-stack-sdk
====================

0.1.0(1mo ago)04MITPHP

Since Jun 14Pushed 1mo agoCompare

[ Source](https://github.com/tivins/llm-stack-sdk)[ Packagist](https://packagist.org/packages/tivins/llm-stack-sdk)[ RSS](/packages/tivins-llm-stack-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

LLM Stack SDK
=============

[](#llm-stack-sdk)

PHP wrapper for the [LLM Stack CLI](https://github.com/tivins/llm-stack).

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

[](#installation)

```
composer require tivins/llm-stack-sdk
```

Setup
-----

[](#setup)

Point the SDK to your LLM Stack executable:

```
export LLM_STACK_PROGRAM=/path/to/llm-stack
```

Or pass the path directly to the constructor.

Usage
-----

[](#usage)

```
use Tivins\LlmStackSdk\Stack;

$stack = new Stack();

// List models
$stack->list();
$stack->listJson();

// Start and wait until ready (default)
$stack->start('llm_main');
$stack->status('llm_main'); // e.g. "ready"
$stack->stop('llm_main');

// Start without waiting
$stack->start('llm_main', noWait: true);
while ($stack->status('llm_main') !== 'ready') {
    sleep(2);
}

// Switch models (starting one stops the previous one)
$stack->start('llm_main');
$stack->start('llm_flash'); // stops llm_main, starts llm_flash
```

License
-------

[](#license)

MIT

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance91

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity23

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

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13aae62b30274178dfd8d18ce4b6bee1a7d7bcbc9db17c2d22b2be5c7b51edc4?d=identicon)[Tivins](/maintainers/Tivins)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tivins-llm-stack-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/tivins-llm-stack-sdk/health.svg)](https://phpackages.com/packages/tivins-llm-stack-sdk)
```

###  Alternatives

[norkunas/youtube-dl-php

youtube-dl / yt-dlp wrapper for php

514356.8k18](/packages/norkunas-youtube-dl-php)[theodo-evolution/legacy-wrapper-bundle

40124.9k](/packages/theodo-evolution-legacy-wrapper-bundle)

PHPackages © 2026

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