Configuration and commands
A short tour of the moving parts, for developers who install, run or extend the bundle.
Packages
Section titled “Packages”| 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.
Installing without commands
Section titled “Installing without commands”composer require develogue/pimkit-forms: the plugin registers the bundles.- 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. - 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.
The pieces at runtime
Section titled “The pieces at runtime”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). Oncache:clearStudio unpacks it topublic/build/and loads it.bin/console assets:installcopies it topublic/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.storageFlysystem 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 dedicatedmessenger:consume pimkit_formsworker. Failures show in Studio (Submissions) and can be retried; after the last retrynotify_emailgets 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.
Database tables
Section titled “Database tables”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.
Configuration
Section titled “Configuration”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.
Commands
Section titled “Commands”| 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) |
Extending
Section titled “Extending”- 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.