WP Manifestindependent plugin directory
manifest / developer / wpsymfonyform

WP Symfony Form

WordPress plugin to allow using Symfony form component with ease.

by LIN3S · github.com/lin3s/wpsymfonyform · website

0stars
1.1kcomposer installs
1forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/lin3s/wpsymfonyform/archive/refs/heads/master.zip

Also on Packagist as lin3s/wp-symfony-form:

composer require lin3s/wp-symfony-form

From the readme

WP Symfony Form WordPress plugin to allow using Symfony form component with ease      Installation If you are using composer run the following command: If your composer.json is properly set up you should find this package in plugins folder Usage First of all, enable this plugin in the WordPress admin panel. To create your first form extend as usual from the AbstractType class provided by Symfony component. To enable the Ajax calls for this form you need to subscribe to the wpsymfonyformwrappers WordPress hook. Rendering the form In case you want to use Twig for rendering a Bridge is provided, just run the following code line passing Twig instance component/form.twig is your custom form theme that will be used to render the forms. Check the docs about form customization for further info. Timber In case you are using Timber you should use twigapplyfilters hook. Also, you have to load the form base views inside Timber global locations variable: Important Submit event is binded to every element with .form class. In case you need to change it just do the following: Also error container for each form item can be changed using WPSymfonyForm.formErrors

Read the full README on GitHub →

Releases

TagPublished
v0.4.1 Jul 22, 2016
v0.4.0 Jun 3, 2016
v0.3.1 Apr 27, 2016
v0.3.0 Mar 28, 2016
v0.2.0 Mar 23, 2016

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.