riclep/laravel-storyblok-forms

Use Storyblok as a form builder with riclep/laravel-storyblok

0.3.6 2024-03-13 10:29 UTC

README

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 ric@wearebwi.com 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.