{"id":19561839,"url":"https://github.com/valantic/pimcore-forms","last_synced_at":"2025-04-27T00:31:24.178Z","repository":{"id":40505450,"uuid":"333398566","full_name":"valantic/pimcore-forms","owner":"valantic","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-10T11:02:06.000Z","size":1091,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-13T04:26:33.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valantic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-01-27T11:29:15.000Z","updated_at":"2025-02-04T08:29:44.000Z","dependencies_parsed_at":"2023-10-12T16:32:30.467Z","dependency_job_id":"6b771728-59ef-435b-83b7-72d65b41a14d","html_url":"https://github.com/valantic/pimcore-forms","commit_stats":{"total_commits":188,"total_committers":4,"mean_commits":47.0,"dds":0.07446808510638303,"last_synced_commit":"75a16c06e9d6b49db5b1b9621d58d431b6277b2e"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valantic%2Fpimcore-forms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valantic%2Fpimcore-forms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valantic%2Fpimcore-forms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valantic%2Fpimcore-forms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valantic","download_url":"https://codeload.github.com/valantic/pimcore-forms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251072279,"owners_count":21532004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T05:12:41.140Z","updated_at":"2025-04-27T00:31:23.758Z","avatar_url":"https://github.com/valantic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pimcore Forms by valantic\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/valantic/pimcore-forms.svg?style=flat-square)](https://packagist.org/packages/valantic/pimcore-forms)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![PHP Checks](https://github.com/valantic/pimcore-forms/actions/workflows/php.yml/badge.svg)](https://github.com/valantic/pimcore-forms/actions/workflows/php.yml)\n\n**NO support is provided!**\n\nThis package is developed by [valantic CEC Schweiz](https://www.valantic.com/en/services/digital-business/) and is under active development.\n\n## Setup\n\n```\ncomposer require valantic/pimcore-forms\n```\n\nThen, activate the bundle in the Pimcore Admin UI.\n\n## Usage\n\n### Configuration: `app/config/forms.yml`\n\n```yaml\nvalantic_pimcore_forms:\n  forms:\n    contact:\n      outputs:\n        mail:\n          type: email\n          options:\n            to: info@example.com\n            document: /system/emails/\n        pimcore_object:\n          type: data_object\n          options:\n            class: ContactFormSubmission\n            path: '/Forms'\n      fields:\n        name:\n          type: TextType\n          options:\n            label: Name\n          constraints:\n            - NotBlank\n        email:\n          type: EmailType\n          options:\n            label: Email\n          constraints:\n            - NotBlank\n            - Email\n        message:\n          type: TextareaType\n          options:\n            label: Message\n          constraints:\n            - NotBlank\n            - Length:\n                min: 20\n        submit:\n          type: SubmitType\n```\n\n### Areabrick\n\nAn Areabrick is provided for use in CMS documents.\n\n### Controller + Twig\n\n#### Action\n\n```php\npublic function contactAction(\\Valantic\\PimcoreFormsBundle\\Service\\FormService $formService): \\Symfony\\Component\\HttpFoundation\\Response\n{\n    return $this-\u003erender('contact_form.html.twig', [\n        'form' =\u003e $formService-\u003ebuildForm('contact')-\u003ecreateView(),\n    ]);\n}\n```\n\n#### Twig\n\n```twig\n{% include '@ValanticPimcoreForms/form.html.twig' %}\n```\n\n### Twig (HTML)\n\n```twig\n{% include '@ValanticPimcoreForms/form.html.twig' with {'form': valantic_form_html('contact')} %}\n```\n\n### Twig (JSON)\n\n```twig\n{% include '@ValanticPimcoreForms/form.html.twig' with {'form': valantic_form_json('contact')} %}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalantic%2Fpimcore-forms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalantic%2Fpimcore-forms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalantic%2Fpimcore-forms/lists"}