PHPackages                             thehocinesaad/stability-laravel - 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. thehocinesaad/stability-laravel

ActiveLibrary[API Development](/categories/api)

thehocinesaad/stability-laravel
===============================

Stability Laravel is a comprehensive Laravel API client designed for seamless interaction with the Stability AI API.

v0.1.0(2y ago)111.3kMITPHPPHP ^8.0

Since Nov 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/theHocineSaad/stability-laravel)[ Packagist](https://packagist.org/packages/thehocinesaad/stability-laravel)[ Docs](https://github.com/thehocinesaad/stability-laravel)[ RSS](/packages/thehocinesaad-stability-laravel/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

[![Stability PHP example code.](https://camo.githubusercontent.com/7d684c10e8343d7d5065597e8f627af0fc29785509f956d782c565a2b3ef8c16/68747470733a2f2f692e696d6775722e636f6d2f453553796533692e706e67 "Stability PHP example code.")](https://camo.githubusercontent.com/7d684c10e8343d7d5065597e8f627af0fc29785509f956d782c565a2b3ef8c16/68747470733a2f2f692e696d6775722e636f6d2f453553796533692e706e67)

Stability Laravel is a Laravel API client offering developers an intuitive and efficient interface to interact seamlessly with the [Stability AI API](https://platform.stability.ai/docs/api-reference "Stability AI API").

> **Note:** This package is built on top of [Stability PHP.](https://github.com/thehocinesaad/stability-php "Stability PHP.")

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

[](#installation)

You can install the package via composer:

```
composer require thehocinesaad/stability-laravel
```

Then, add your Stability AI API key to the .env file:

```
STABILIY_API_KEY=sk-fuYQ3VpweDSPu...

```

After that, you can start using it:

```
use TheHocineSaad\StabilityLaravel\Facades\Stability;

$response = Stability::generations()->textToImage(
    'stable-diffusion-xl-1024-v1-0',
    [
        'text_prompts' => [
            [
                'text' => 'A lighthouse on a cliff',
                'weight' => 0.5
            ],
        ],
        'samples' => 1,
    ]
);

dd($response['artifacts'][0]['base64']);
// "iVBORw0KGgoAAAANSUhEUgAABAAAAQACAIAAADwf7zUAAM8MmNhQlgAAzwya..."
//// An image encoded in base64.
```

Extra headers
-------------

[](#extra-headers)

You can add additional HTTP headers (which the API supports) to requests by adding them to the .env file:

```
STABILIY_ACCEPT_HEADER=image/png
STABILIY_ORGANIZATION=org-123456
STABILIY_CLIENT_ID=my-great-plugin
STABILIY_CLIENT_VERSION=1.2.1

```

Usage
-----

[](#usage)

Since this package is built on top of [Stability PHP](https://github.com/thehocinesaad/stability-php "Stability PHP"), it has the same usage, so for usage examples, have a look at [Stability PHP Usage](https://github.com/thehocinesaad/stability-php#usage "Stability PHP Usage").

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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

1006d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

clientlaravelaistabilitystable diffusionstability-phpstability-laravel

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/thehocinesaad-stability-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/thehocinesaad-stability-laravel/health.svg)](https://phpackages.com/packages/thehocinesaad-stability-laravel)
```

###  Alternatives

[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

76364.8k1](/packages/mozex-anthropic-laravel)[codedredd/laravel-soap

A SoapClient wrapper integration for Laravel

225564.5k3](/packages/codedredd-laravel-soap)[gemini-api-php/laravel

Gemini API client for Laravel

8917.7k](/packages/gemini-api-php-laravel)[jubaer/zoom-laravel

A comprehensive Zoom integration package for Laravel, providing easy-to-use API functionality to interact with the Zoom platform using PHP.

59131.6k](/packages/jubaer-zoom-laravel)[claude-php/claude-php-sdk-laravel

Laravel integration for the Claude PHP SDK - Anthropic Claude API

5226.7k](/packages/claude-php-claude-php-sdk-laravel)

PHPackages © 2026

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