Skip to content

Configuration and commands

A short tour of the moving parts, for developers who install, run or extend the bundle.

Package What it holds
develogue/pimkit-core (free for subscribers) License check, settings store (with encrypted secrets), audit log, site resolver, problem+json API errors, the shared Studio parts (page layout, license banner, API helpers)
develogue/pimkit-forms (paid) Everything about forms: Studio screens, form definitions, rendering, submissions, actions, exports
develogue/pimkit-seo (paid) The SEO bundle, same structure

Forms requires core. Both are Symfony bundles. develogue/pimkit-core is also a small Composer plugin that adds the PimKit bundles to config/bundles.php on install and removes them on uninstall.

  1. composer require develogue/pimkit-forms: the plugin registers the bundles.
  2. Pimcore’s Composer scripts run cache:clear. A PimKit cache warmer (AutoInstaller) installs or updates every enabled PimKit bundle: tables (diffed against the schema definition, so updates add new columns), Studio permissions and Pimcore’s “installed” flag. A marker file in the cache folder remembers the installed versions.
  3. If the database was not reachable during the cache clear, the first request does the same.

bin/console pimkit:install runs the same steps by hand.

Studio (browser) Website visitor
| PimKit plugin (React) | {{ pimkit_form('contact') }} / areabrick
v v
/pimcore-studio/api/pimkit/forms/* /pimkit/forms/api/forms/{name}/submit
| Studio firewall, permissions | form token, honeypot, time trap, rate limit, captcha
v v
FormService ──> pimkit_form (draft) SubmissionHandler ──> pimkit_form_submission (+ files)
└─> pimkit_form_version |
(published, frozen) v one message per action
Messenger queue "pimkit_forms"
| Pimcore maintenance run, or messenger:consume pimkit_forms
v
Actions: email, confirmation email, webhook,
data object, copy files to Assets
(retries, result in pimkit_form_action_log)
  • Drafts and versions. Editing changes the draft. Publish freezes it as the next version. The website always renders and validates against the latest published version, and every submission remembers its version.
  • Studio plugin. The React screens are built into a zip in build-dist/ (shipped in release tags). On cache:clear Studio unpacks it to public/build/ and loads it. bin/console assets:install copies it to public/bundles/.
  • Studio API. JSON endpoints under /pimcore-studio/api/pimkit/forms, behind Studio’s login and the PimKit permissions. Errors are RFC 9457 problem+json.
  • Website. The Twig function or the areabrick renders the published version with a theme (plain, bootstrap5, tailwind, or your own). A 5 KB script adds live checks, conditions and sending without reload; the form also works without JavaScript. See Showing forms on the website and Conditional logic and the frontend script.
  • Submissions. Checked on the server with the same rules as in the browser, stored (unless turned off per form), then each action is queued. Files go to the pimkit_forms.storage Flysystem storage. See Submitting forms.
  • Actions. Run in the background with retries and backoff: by the Pimcore maintenance job (task pimkit_forms_queue, stops when the queue is empty) or, faster, by a dedicated messenger:consume pimkit_forms worker. Failures show in Studio (Submissions) and can be retried; after the last retry notify_email gets a message. See Actions.
  • License. Checked offline by core. Without a valid license on a live domain, Studio is read-only; the website never depends on it. See Licence key and updates.

pimkit_form_folder, pimkit_form, pimkit_form_version, pimkit_form_submission, pimkit_form_submission_file, pimkit_form_action_log, pimkit_form_doi_token, pimkit_form_preset. Core adds pimkit_setting and pimkit_audit_log. All are created by the bundle installers and Doctrine migrations.

Everything works without config. Optional keys in config/packages/pimkit_forms.yaml:

pimkit_forms:
default_theme: plain # plain, bootstrap5 or tailwind
frontend_script: true # false: include pimkit-forms.min.js yourself
frontend_styles: true # plain theme: add pimkit-forms.css with the first form
data_layer: false # push submit and error events to window.dataLayer (GTM)
webhook_allowed_hosts: [] # e.g. ['crm.example.com']; empty allows any host
notify_email: ~ # gets an email when an action failed for good
recaptcha_min_score: 0.5
captcha: # keys can also be saved in Studio (Forms settings)
turnstile: { site_key: '%env(TURNSTILE_SITE_KEY)%', secret_key: '%env(TURNSTILE_SECRET)%' }

Env variables, both optional: PIMKIT_SECRET_KEY (32+ characters, encrypts secrets; falls back to the app secret) and PIMKIT_LICENSE_KEY.

Command Does
pimkit:install Install or update the PimKit bundles by hand (normally automatic)
messenger:consume pimkit_forms Optional dedicated worker for actions and exports
pimkit:license:check [--host=...] License state per product
pimkit:forms:import-dachcom Import forms from DACHCOM FormBuilder (guide)
pimkit:forms:export / pimkit:forms:import Save a form as JSON and create a draft from such a file (guide)
  • Your own field types and actions: tagged services, see Field types and Actions.
  • Your own theme: copy a theme folder to templates/bundles/PimKitFormsBundle/themes/<name>/, see Showing forms on the website.
  • Creating forms from code: FormService (create, update, publish) is a public service. The sandbox demo (pimkit-core/sandbox/demo/setup-demo.php) is a working example.