valantic / pimcore-forms
Forms for Pimcore
Installs: 6 748
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 9
Forks: 0
Open Issues: 2
Type:pimcore-bundle
Requires
- php: ^8.1
- ext-json: *
- limenius/liform: ^0.19
- pimcore/pimcore: ^11.0
- ramsey/uuid: ^4.0
- symfony/form: ^6.0
- voku/portable-ascii: ^1.5 || ^2.0
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8.2
- phpstan/extension-installer: ^1.3.1
- phpstan/phpstan: ^1.10.58
- phpstan/phpstan-deprecation-rules: ^1.1.4
- phpstan/phpstan-strict-rules: ^1.5.2
- rector/rector: ^1.0.0
- roave/security-advisories: dev-latest
- symfony/dependency-injection: ^6.4.3
- dev-main
- 3.0.0
- 3.0.0-beta.3
- 3.0.0-beta.2
- 3.0.0-beta.1
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.1
- 2.0.0
- 1.0.0
- 0.3.16
- 0.3.15
- 0.3.14
- 0.3.13
- 0.3.12
- 0.3.11
- 0.3.10
- 0.3.9
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-feature/limenius-upgrade
- dev-feature/choice-context
- dev-pimcore-11
- dev-housekeeping
This package is auto-updated.
Last update: 2025-03-10 11:11:42 UTC
README
NO support is provided!
This package is developed by valantic CEC Schweiz and is under active development.
Setup
composer require valantic/pimcore-forms
Then, activate the bundle in the Pimcore Admin UI.
Usage
Configuration: app/config/forms.yml
valantic_pimcore_forms: forms: contact: outputs: mail: type: email options: to: info@example.com document: /system/emails/ pimcore_object: type: data_object options: class: ContactFormSubmission path: '/Forms' fields: name: type: TextType options: label: Name constraints: - NotBlank email: type: EmailType options: label: Email constraints: - NotBlank - Email message: type: TextareaType options: label: Message constraints: - NotBlank - Length: min: 20 submit: type: SubmitType
Areabrick
An Areabrick is provided for use in CMS documents.
Controller + Twig
Action
public function contactAction(\Valantic\PimcoreFormsBundle\Service\FormService $formService): \Symfony\Component\HttpFoundation\Response { return $this->render('contact_form.html.twig', [ 'form' => $formService->buildForm('contact')->createView(), ]); }
Twig
{% include '@ValanticPimcoreForms/form.html.twig' %}
Twig (HTML)
{% include '@ValanticPimcoreForms/form.html.twig' with {'form': valantic_form_html('contact')} %}
Twig (JSON)
{% include '@ValanticPimcoreForms/form.html.twig' with {'form': valantic_form_json('contact')} %}