Skip to content

RicLeP/laravel-storyblok-forms

Repository files navigation

An addon package for Laravel Storyblok that lets you use the Storyblok headless CMS as a form builder.

Latest Version on Packagist Build Quality Score Total Downloads Twitter

Installation

This page requires Laravel Storyblok

First install the package.

composer require riclep/laravel-storyblok-forms

Publish the package assets - this will copy stub views for each form component

php artisan vendor:publish

Tell Laravel Storyblok where to find the Form Block classes but editing your laravel-storyblok config file and adding the Riclep\StoryblokForms namespace.

'component_class_namespace' => ['Riclep\StoryblokForms\\', 'App\Storyblok\\'],

Install the components - this will create the required components and component groups in Storyblok. Ensure you have your management key and space ID set up in the .env, see Laravel Storyblok installation for details.

php artisan lsf:install

Documentation

Read the docs

Contribute to the docs

Key Features

  • Use the install Artisan command to create the required components in Storyblok
  • Add fields and validation rules in Storyblok
  • Simple validation
  • Outputs collected form data in a structured format

Future plans

More validation and field types.

Changelog

See it here

Contributing

Please feel free to help expand and improve this project. The package uses Git Flow but you can submit a pull request to be merged to the develop branch.

Security

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

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.