PHPackages                             riclep/laravel-storyblok-previews - 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. [CLI &amp; Console](/categories/cli)
4. /
5. riclep/laravel-storyblok-previews

ActiveLibrary[CLI &amp; Console](/categories/cli)

riclep/laravel-storyblok-previews
=================================

Artisan command for creating component preview images for Storyblok

0.0.7(6mo ago)113MITPHPPHP ^8.0

Since Nov 7Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/RicLeP/laravel-storyblok-previews)[ Packagist](https://packagist.org/packages/riclep/laravel-storyblok-previews)[ Docs](https://github.com/riclep/laravel-storyblok-previews)[ RSS](/packages/riclep-laravel-storyblok-previews/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

Laravel Storyblok - Artisan CLI
===============================

[](#laravel-storyblok---artisan-cli)

[![Latest Version on Packagist](https://camo.githubusercontent.com/94cc2abcbee4d947d5efa61a5bd714221fe009ff2043d2f55e146795fc0c3610/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7269636c65702f6c61726176656c2d73746f7279626c6f6b2d70726576696577732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/riclep/laravel-storyblok-previews)[![Total Downloads](https://camo.githubusercontent.com/9bf80421af5d0a676ac0a6ad497194c22dd2e7eeb6b893e685091db8922d820e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7269636c65702f6c61726176656c2d73746f7279626c6f6b2d70726576696577732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/riclep/laravel-storyblok-previews)[![GitHub Actions](https://github.com/riclep/laravel-storyblok-previews/actions/workflows/main.yml/badge.svg)](https://github.com/riclep/laravel-storyblok-previews/actions/workflows/main.yml/badge.svg)

Artisan commands for working with the Storyblok API in Laravel.

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

[](#installation)

You can install the package via composer:

```
composer require riclep/laravel-storyblok-previews
```

Make sure you publish the config file with the following command:

```
php artisan vendor:publish --provider="Riclep\StoryblokPreviews\StoryblokPreviewsServiceProvider" --tag="config"
```

Please ensure you have configured the [Laravel Storyblok or Laravel Storyblok CLI](https://ls.sirric.co.uk) package before using this package.

You will also need to set up [Sidecar Browsershot](https://github.com/stefanzweifel/sidecar-browsershot).

If you would like to use a different screenshot driver, feel free to submit a PR.

Usage
-----

[](#usage)

This is a package you may wish you install outside of your main project and use it simply to generate screenshots of your Storyblok components for various websites or projects but adjust the configuration to suit your needs.

To specify the components you would like to generate screenshots for modify your `storyblok-previews.php` config file.

Each component will need an entry in the `components` item. The item’s key should match the component name in Storyblok. Each component should have a selector to target the component in the HTML. Optionally, you can specify a filename for the screenshot, a URL to navigate to and a delay in milliseconds to wait before taking the screenshot. If you leave the filename empty, the component name will be used. If you don't specify a URL it will try and find a published page in Storyblok that contains the component.

Example:

```
    [
        'hero' => [
            'selector' => '.hero',
        ],
        'grid' => [
            'delay' => 500,
            'filename' => 'grid.jpg',
            'selector' => ':has(> .grid),
            'url' => '/about',
        ],
    ];
```

### Changelog

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Richard Le Poidevin](https://github.com/riclep)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance69

Regular maintenance activity

Popularity7

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

Every ~61 days

Recently: every ~92 days

Total

7

Last Release

182d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cc0947c5075928ca6160ab3c81f608db980edaefafd50fd904d060ba5c40817?d=identicon)[ric@sirric.co.uk](/maintainers/ric@sirric.co.uk)

---

Top Contributors

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

---

Tags

cliricleplaravel clistoryblok cliartisan storybloklaravel-storyblokstryblok

### Embed Badge

![Health badge](/badges/riclep-laravel-storyblok-previews/health.svg)

```
[![Health](https://phpackages.com/badges/riclep-laravel-storyblok-previews/health.svg)](https://phpackages.com/packages/riclep-laravel-storyblok-previews)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.3k](/packages/symfony-console)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[wp-cli/php-cli-tools

Console utilities for PHP

68325.0M367](/packages/wp-cli-php-cli-tools)[socialengine/sniffer-rules

A Lumen 5 and Laravel 5 SquizLabs Code Sniffer 2.0 artisan command. Detect violations of a defined coding standard. It helps your code remains clean and consistent.

1248.2k1](/packages/socialengine-sniffer-rules)

PHPackages © 2026

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