Download the PHP package helsingborg-stad/modularity-frontend-form without Composer

On this page you can find all versions of the php package helsingborg-stad/modularity-frontend-form. 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 modularity-frontend-form

Modularity Frontend Form

A modular, accessible, and extensible multi-step frontend form system for WordPress, built with TypeScript, PHP, and SCSS. Supports custom field types, validation, REST API integration, and advanced admin configuration.


Features


Usage

1. Add a Form Module

2. Configure Submission Handlers

Webhook request formats

json is the default. It defaults to Content-Type: application/json and never attaches files. Select multipart to send fields to a compatible multipart receiver. The multipart body uses PHP-compatible field names such as title, acf[location][lat], and acf[image]; uploaded images use their destination field name as the file part. Multipart requests send Content-Type: multipart/form-data and X-ACF-Rest-Upload: true.

This profile makes exactly one HTTP transport attempt. It sends no idempotency key and does not retry or fall back to JSON.

A timeout does not prove that the receiver saved nothing. Manual or browser resubmissions are independent requests. They can duplicate posts, images, and notifications. This profile does not prevent duplicates or recover partial data after a crash. Check the destination before resubmitting.

Map an image with {{image}} as the complete value of an object property. Indexed placeholders such as {{image.0}} are rejected. The template determines the destination: {"image":"{{image}}"} sends a file part named image, while {"data":{"photo":"{{image}}"}} sends data[photo]. Image destinations can be nested objects, but cannot be inside arrays. In multipart mode, {{*}} includes ordinary field values but omits image fields. Only top-level image fields are supported. Wrap an optional value as {"$optional":"<field>","$value":...} to omit its whole subtree when the field is absent. Multipart cannot represent explicitly authored null, empty arrays, or empty objects.

3. Display the Form

4. REST API Endpoints

5. Customization


Example: Basic Usage

  1. Add a module:

    • Go to \"Add Module\" → \"Frontend Form\".
    • Configure steps and fields.
  2. Display in template:

    • Use Modularity's template system or shortcode to render the form.
  3. Handle submissions:
    • Data is stored, emailed, or sent to a webhook as configured.

Developer Guide


Accessibility & UX


Security


Extending the Plugin

Logging

Logging is disabled by default. Set WP_DEBUG_LOG to true to write logs via error_log().

Control the minimum log level with these constants (PSR-3 levels: emergency › alert › critical › error › warning › notice › info › debug):

At debug level, prepared multipart webhooks log top-level value types and the encoded field/file-part names. Field values, uploaded filenames, local paths, headers, and file contents are not included in this diagnostic.

Constant Default Description
MODULARITY_FRONTEND_FORM_LOG_LEVEL — Log level for this plugin. Overrides APP_LOG_LEVEL.
APP_LOG_LEVEL error Global fallback log level.

Actions

ModularityFrontendForm/afterInsertPost


Contribution Guidelines


License

MIT


For more details, see .github/copilot-instructions.md and the source code. All code, documentation, and contributions must follow workspace guidelines.


All versions of modularity-frontend-form with dependencies

PHP Build Version
Package Version
Requires helsingborg-stad/wpservice Version ^2.0
helsingborg-stad/acfservice Version ^1.3.0
adbario/php-dot-notation Version ^3.5
helsingborg-stad/psr-logger Version ^0.2.2
psr/log Version ^1.0 || ^2.0 || ^3.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 helsingborg-stad/modularity-frontend-form contains the following files

Loading the files please wait ...