PHPackages                             blockadelabs/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. blockadelabs/sdk

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

blockadelabs/sdk
================

Blockade Labs SDK for Laravel

1.0.3(3y ago)01.1k↓50%MITPHPPHP ^7.2.5|^8.0

Since Apr 6Pushed 3y ago3 watchersCompare

[ Source](https://github.com/Blockade-Games/BlockadeLabs-SDK-Laravel)[ Packagist](https://packagist.org/packages/blockadelabs/sdk)[ Docs](https://github.com/Blockade-Games/BlockadeLabs-SDK-Laravel)[ RSS](/packages/blockadelabs-sdk/feed)WikiDiscussions main Synced 1mo ago

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

Blockade Labs SDK for Laravel
=============================

[](#blockade-labs-sdk-for-laravel)

Laravel Versions Support
------------------------

[](#laravel-versions-support)

- &gt;= 7.0

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

[](#installation)

You can install the package via composer:

```
composer require blockadelabs/sdk
```

Getting Started
---------------

[](#getting-started)

Before you are able to use the SDK, you need to edit your `.env` file and add your Blockade Labs API key:

`BLOCKADE_LABS_API_KEY=YOUR_API_KEY`

Package will register a Facade that you can use in your app to make API calls, just make sure to include it at the top of the file:

```
use BlockadeLabs\SDK\Facades\BlockadeLabsClient;
```

Usage
-----

[](#usage)

All the methods and routes are also explained (in greater detail) in the Docs [here.](https://api-documentation.blockadelabs.com/)

### Skyboxes

[](#skyboxes)

#### getSkyboxStyles

[](#getskyboxstyles)

```
$skyboxStyles = BlockadeLabsClient::getSkyboxStyles();
```

#### generateSkybox

[](#generateskybox)

```
$skybox = BlockadeLabsClient::generateSkybox([
   'prompt' => 'PROMPT_GOES_HERE', // Required
   'skybox_style_id' => '2', // Required,
   'remix_imagine_id' => 1, // OR remix_obfuscated_id / Optional
   'webhook_url' => 'YOUR_WEBHOOK_URL', // Optional
]);
```

You can refer to the docs [here](https://api-documentation.blockadelabs.com/api/skybox.html#generate-skybox)and [here](https://api-documentation.blockadelabs.com/api/skybox.html#generate-skybox-remix)for more details on how to generate new skyboxes and how to generate skyboxes that are remixes of previously generated skyboxes.

### Imagine Requests

[](#imagine-requests)

#### getGenerators

[](#getgenerators)

```
$generators = BlockadeLabsClient::getGenerators();
```

#### generateImagine

[](#generateimagine)

```
$generateImagine = BlockadeLabsClient::generateImagine([
    'generator' => 'stable-skybox', // REQUIRED
    'prompt' => 'PROMPT_GOES_HERE', // REQUIRED
    'init_image' => $request->file('init_image') // example for the init_image file param
    ...other_generator_data_params, // Optional
    'webhook_url' => 'YOUR_WEBHOOK_URL', // Optional
]);
```

You can refer to the docs [here](https://api-documentation.blockadelabs.com/api/imagine-request.html#get-generators)and [here](https://api-documentation.blockadelabs.com/api/imagine-request.html#generate-imagine)on how to get and use generator data when generating imagines.

The `generateImagine` method can accept different types of generator data, which may include files.

When sending files it's enough to just pass the file from the request, like so:

```
'init_image' => $request->file('init_image'),
```

#### getImagineById

[](#getimaginebyid)

```
$generateImagine = BlockadeLabsClient::generateImagine([
    'generator' => 'stable-skybox',
    'prompt' => 'some prompt',
]);

$imagine = BlockadeLabsClient::getImagineById($generateImagine['request']['id']);
```

#### getImagineByObfuscatedId

[](#getimaginebyobfuscatedid)

```
$generateImagine = BlockadeLabsClient::generateImagine([
    'generator' => 'stable-skybox',
    'prompt' => 'some prompt',
]);

$imagine = BlockadeLabsClient::getImagineByObfuscatedId($generateImagine['request']['obfuscated_id']);
```

#### getImagineHistory

[](#getimaginehistory)

```
$myImagines = BlockadeLabsClient::getImagineHistory([
    'status' => 'IMAGINE_STATUS', // OPTIONAL
    'limit' => 10, // OPTIONAL
    'offset' => 0, // OPTIONAL
    'order' => 'ASC', // OPTIONAL
    'imagine_id' => 1, // OPTIONAL
    'query' => 'PROMPT', // OPTIONAL
    'generator' => 'GENERATOR', // OPTIONAL
]);
```

#### cancelImagine

[](#cancelimagine)

```
$generateImagine = BlockadeLabsClient::generateImagine([
    'generator' => 'stable-skybox',
    'prompt' => 'some prompt',
]);

$result = BlockadeLabsClient::cancelImagine($generateImagine['request']['id']);
```

#### cancelAllPendingImagines

[](#cancelallpendingimagines)

```
$result = BlockadeLabsClient::cancelAllPendingImagines();
```

#### deleteImagine

[](#deleteimagine)

```
$generateImagine = BlockadeLabsClient::generateImagine([
    'generator' => 'stable-skybox',
    'prompt' => 'some prompt',
]);

$result = BlockadeLabsClient::deleteImagine($generateImagine['request']['id']);
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Total

4

Last Release

1133d ago

PHP version history (2 changes)1.0.0PHP ^7.25|^8.0

1.0.2PHP ^7.2.5|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/676dd63d54f4cbe65b95b0a39b68e7e52efcfc2aaa84dad0b753b168daa27232?d=identicon)[blockadelabs](/maintainers/blockadelabs)

---

Top Contributors

[![goran-popovic](https://avatars.githubusercontent.com/u/10928632?v=4)](https://github.com/goran-popovic "goran-popovic (14 commits)")

---

Tags

laravelsdkblockade labs

### Embed Badge

![Health badge](/badges/blockadelabs-sdk/health.svg)

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

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[adrianorosa/laravel-geolocation

Laravel Geo Location package to get details for a given IP Address

6593.3k1](/packages/adrianorosa-laravel-geolocation)[bakame/laravel-domain-parser

Laravel package to integrate PHP Domain parser.

26534.8k4](/packages/bakame-laravel-domain-parser)

PHPackages © 2026

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