2017 © Pedro Peláez
 

symfony-bundle query-parameter-bundle

image

ekreative/query-parameter-bundle

  • Wednesday, March 23, 2016
  • by ahonymous
  • Repository
  • 3 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Query parameter bundle

The Symfony Bundle for validation request query string parameters in the controllers., (*1)

Instaition

composer require ekreative/query-parameter-bundle

Requirements

The Bundle required sensio/framework-extra-bundle, Symfony components OptionResolver and PropertyAccess., (*2)

Configuring

app/AppKernel.php

...
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Ekreative\QueryParameterBundle\EkreativeQueryParameterBundle(),
            ...
        );
        ...

        return $bundles;
    }
...

Examples

QueryParameter

src/AppBundle/Controller/DefaultController.php

...
/**
 * @Route("/")
 * @QueryParameter("test", type="boolean", options={"required" = false})
 */
public function indexAction($test)
...

QueryModel

src/AppBundle/Controller/DefaultController.php

...
/**
 * @Route("/")
 * @QueryModel("testFilter", class="AppBundle\Filter\Filter", options={"required" = false, types={"test" = "boolean"}})
 */
public function indexAction(Filter $testFilter)
...

Variable types

  • integer
  • datetime
  • double
  • boolean

The Versions

23/03 2016

dev-1.x-dev

dev-1.x-dev

  Sources   Download

MIT

The Requires

 

annotations query query-parameter

23/03 2016

1.0-alpha3

1.0.0.0-alpha3

  Sources   Download

MIT

The Requires

 

annotations query query-parameter

23/03 2016

1.0-alpha2

1.0.0.0-alpha2

  Sources   Download

MIT

The Requires

 

annotations query query-parameter

07/03 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

annotations query query-parameter

07/03 2016

1.0-alpha1

1.0.0.0-alpha1

  Sources   Download

MIT

The Requires

 

annotations query query-parameter