riclep / laravel-storyblok-forms
Use Storyblok as a form builder with riclep/laravel-storyblok
Requires
- php: ^8.1|^8.2|^8.3
- ext-json: *
- illuminate/support: ^9.0|^10.0|^11.0
- riclep/laravel-storyblok: ^2.20
Requires (Dev)
- mockery/mockery: ^1.2
- orchestra/testbench: ^8.0|^9.0
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2024-10-13 12:15:28 UTC
README
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
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
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.