themindoffice/formbuilder

Add formbuilder addon to Iris

dev-main 2022-11-30 10:22 UTC

This package is auto-updated.

Last update: 2024-04-29 04:54:09 UTC


README

Formbuilder is a Iris library for generating forms. Useless if you don't use Iris CMS.

Installation

  1. Run command:
composer require "themindoffice/formbuilder" @dev

(Stable version coming soon)

  1. Copy 'vendor/themindoffice/formbuilder/src/' to 'modules/Addons'
  2. Go to your-local-domain.test/formbuilder/install

This function add the needed tables and components.

  1. 'modules/Addons/Formbuiler/install' will be deleted automatically
  2. Remove method 'install' form 'modules/Addons/Formbuiler' manually

Usage

  1. Use the code below in your HTML:
<?= form(1)
    ->useBootstrap(5)
    ->addColumnClass('mb-3')
    ->addButtonClass('btn btn-green')
    ->showLabel(true)
    ->html(); ?>
  1. 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"