sandronimus/nelmio-form-get-parameter-plugin-bundle

Extends NelmioApiDocBundle by providing ability to auto-register simple forms items as GET parameters.

2.1.0 2024-12-27 10:44 UTC

This package is auto-updated.

Last update: 2025-06-27 11:56:43 UTC


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.