Download the PHP package riclep/laravel-storyblok-previews without Composer
On this page you can find all versions of the php package riclep/laravel-storyblok-previews. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download riclep/laravel-storyblok-previews
More information about riclep/laravel-storyblok-previews
Files in riclep/laravel-storyblok-previews
Package laravel-storyblok-previews
Short Description Artisan command for creating component preview images for Storyblok
License MIT
Homepage https://github.com/riclep/laravel-storyblok-previews
Informations about the package laravel-storyblok-previews
Laravel Storyblok - Artisan CLI
Artisan commands for working with the Storyblok API in Laravel.
Installation
You can install the package via composer:
Make sure you publish the config file with the following command:
Please ensure you have configured the Laravel Storyblok or Laravel Storyblok CLI package before using this package.
You will also need to set up Sidecar Browsershot.
If you would like to use a different screenshot driver, feel free to submit a PR.
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:
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Richard Le Poidevin
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
All versions of laravel-storyblok-previews with dependencies
hammerstone/sidecar Version ^0.6.1
riclep/laravel-storyblok-cli Version ^2.0
storyblok/php-client Version ^2.2
wnx/sidecar-browsershot Version ^2.3
ext-curl Version *