sandronimus / nelmio-form-get-parameter-plugin-bundle
Extends NelmioApiDocBundle by providing ability to auto-register simple forms items as GET parameters.
Installs: 823
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- nelmio/api-doc-bundle: ^4.0
- symfony/form: ^6.1
- symfony/framework-bundle: ^6.1
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/asset: ^6.4
- symfony/debug-bundle: ^6.4
- symfony/flex: ^2.4
- symfony/runtime: ^6.4
- symfony/twig-bundle: ^6.4
- symfony/web-profiler-bundle: ^6.4
- twig/twig: ^3
README
This bundle extends NelmioApiDocBundle by providing ability to auto-register forms as GET parameters.
Installation
Install with composer:
composer require sandronimus/nelmio-form-get-parameter-plugin-bundle
Add Sandronimus\NelmioFormGetParameterPluginBundle\NelmioFormGetParameterPluginBundle
to your bundles.
How To Use
Add attribute to your controller action:
#[FormGetParameter(SomeFormType::class)]
And you will get whole form mapped as GET parameters in API documentation.