themindoffice / formbuilder
Add formbuilder addon to Iris
dev-main
2022-11-30 10:22 UTC
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2025-04-29 01:17:32 UTC
README
Formbuilder is a Iris library for generating forms. Useless if you don't use Iris CMS.
Installation
- Run command:
composer require "themindoffice/formbuilder" @dev
(Stable version coming soon)
- Copy 'vendor/themindoffice/formbuilder/src/' to 'modules/Addons'
- Go to your-local-domain.test/formbuilder/install
This function add the needed tables and components.
- 'modules/Addons/Formbuiler/install' will be deleted automatically
- Remove method 'install' form 'modules/Addons/Formbuiler' manually
Usage
- Use the code below in your HTML:
<?= form(1)
->useBootstrap(5)
->addColumnClass('mb-3')
->addButtonClass('btn btn-green')
->showLabel(true)
->html(); ?>
- Add this in your .env file with the right credentials. Make sure the domain is whitelisted at Mandrill.
MAIL_FROM_ADDRESS=example@mail.com
MAIL_FROM_NAME="Example"