Download the PHP package kreatif/statamic-forms without Composer

On this page you can find all versions of the php package kreatif/statamic-forms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statamic-forms

Kreatif Forms for Statamic

An configuration-driven addon for Statamic v5+ form submissions. Orchestrate complex post-submission workflows including emails, Iubenda consent tracking, and custom integrations—all from a central configuration file with priority-based execution, conditional logic, queue support, and comprehensive error handling.

Key Features

Core Architecture

Email Management

Advanced Features

Built-in Actions

Installation & Setup

  1. Copy Addon: Place the entire kreatif/statamic-forms directory into your project's addons/ folder.
  2. Autoload: Run composer dump-autoload from your project's root directory to make Statamic aware of the addon's classes.
  3. Publish Assets: Publish the configuration file. This is the only mandatory step. Publishing views and language files is optional for customization.
  4. Configure Environment: Add the necessary API keys and URLs to your project's .env file.

Configuration

All addon logic is controlled via the config/kreatif-statamic-forms.php file.

Global Settings

Disable Statamic's Default Email

By default, Statamic will send its own emails based on the form's YAML configuration. You can disable this globally or per-form:

Logging Configuration

Control how the addon logs form processing:

Email Settings

These settings act as the default for all form handlers:

Form Handlers

This is the core of the addon. Each key in the handlers array corresponds to a Statamic form handle.

Action Configuration Options

All actions support these common configuration options:

Option Type Default Description
enabled bool true Enable or disable the action
priority int Action-specific Execution priority (lower runs first)
queue bool false Queue the action for async execution
queue_connection string default Laravel queue connection to use
queue_name string default Queue name
delay int 0 Delay in seconds before queueing
when array null Conditional execution based on submission data
Queue Example

Queue an action for asynchronous processing:

Conditional Execution

Execute actions only when certain conditions are met:

Supported Operators:

Priority Control

Actions execute in priority order (lower numbers first). Default priorities:

Override the priority:

Rate Limiting

Prevent spam submissions with rate limiting:

Available Actions

SendAdminNotificationAction Sends a detailed notification email to administrators.

Configuration:

SendAutoresponderAction sends a confirmation email to the user who submitted the form.

AddToIubendaAction Sends consent data to the Iubenda Consent Database.

Consent values can be fixed booleans (true/false), a form field handle ('newsletter' => 'newsletter'), or an explicit field config with a fallback ('marketing' => ['field' => 'marketing_consent', 'default' => false]). Submitted checkbox values like true, 1, yes, on, or any non-empty selected array are treated as consent given.

Advanced Mapping Tip: If your form only has a single name field, you can map it like this. The addon will automatically split it into a first and last name.

Usage Examples

Example 1: Standard Contact Form

Your addon config controls everything. The form's YAML is minimal.

config/kreatif-statamic-forms.php:

resources/forms/a_form.yaml:

Example 2: Overriding with Form YAML

The form's YAML configuration takes priority over the addon's action config. This is useful for client-managed forms. config/kreatif-statamic-forms.php:

resources/forms/inquiries.yaml

Example 3: API-Only Form (Iubenda)

This setup uses the addon to send data to Iubenda but lets Statamic's default mailer handle the emails. This is achieved by not including the email actions in the handler.

config/kreatif-statamic-forms.php:

resources/forms/newsletter_signup.yaml:

Events System

The addon dispatches events throughout the form processing lifecycle. You can listen to these events to add custom logic:

Available Events

Example: Listen to Events

Create a listener in your application:

Register in EventServiceProvider:

Creating Custom Actions

You can easily create custom actions by implementing FormActionInterface or extending BaseAction:

Then use it in your config:

Email Preview Feature

Preview and test email templates before sending them to actual recipients.

Access Preview

Navigate to Tools → Form Email Preview in the Statamic Control Panel, or click "Preview Email Templates" from any form's submissions listing.

Permissions: Requires view kreatif-forms email previews permission.

Features

Quick Preview URLs

Add ?format=text to any preview URL to see the plain text version.

How It Works

The preview controller automatically generates intelligent sample data based on your form's blueprint:

How to Install

You can install this addon via Composer:


All versions of statamic-forms with dependencies

PHP Build Version
Package Version
Requires statamic/cms Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kreatif/statamic-forms contains the following files

Loading the files please wait ...