Git Product home page Git Product logo

lexikformfilterbundle's Introduction

Overview

This Symfony bundle aims to provide classes to build some form types dedicated to filter an entity. Once you created your form type you will be able to update a doctrine query builder conditions from a form type.

Build Status Latest Stable Version SensioLabsInsight

The idea is:

  1. Create a form type extending from Symfony\Component\Form\AbstractType as usual.
  2. Add form fields by using provided filter types (e.g. use TextFilterType::class instead of a TextType::class type) (*).
  3. Then call a service to build the query from the form instance and execute your query to get your result :).

(*): In fact you can use any type, but if you want to apply a filter by not using a XxxFilterType::class type you will have to create a custom listener class to apply the filter for this type.

Documentation

This Symfony3.0 branch is compatible with Symfony 2.8/3.0 or higher.

For installation and how to use the bundle refer to Resources/doc/index.md

Running the test suite

composer install
bin/phpunit

lexikformfilterbundle's People

Contributors

cedric-g avatar zerkalica avatar jeremyb avatar garak avatar spackmat avatar inoryy avatar greg0ire avatar andreychernykh avatar rvanlaak avatar kostychev avatar webdevilopers avatar stephpy avatar timo-linde avatar lerox avatar lheurt avatar gnat42 avatar mbartok avatar gilles-g avatar petkopara avatar sroze avatar vitaliitsilnyk avatar malian avatar lars-feyerabend avatar galan83 avatar padam87 avatar grifx avatar descomplica-me avatar bdecarne avatar norkunas avatar nyholm avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.