Code Monkey home page Code Monkey logo

lexikformfilterbundle's Introduction

Overview

This Symfony2 bundle aims to provide classes to build a form filter and then build a doctrine query from this form filter.

Build Status Project Status

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 filter_text instead of text 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 filter_xxx type you will have to create a custom class to apply the filter for this type.

Documentation

The master branch is now compatible with Symfony 2.1, if you are using Symfony 2.0.x use the symfony2.0 branch.

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

zerkalica avatar jeremyb avatar inoryy avatar greg0ire avatar andreychernykh avatar garak avatar stephpy avatar lheurt avatar malian avatar lars-feyerabend avatar galan83 avatar grifx avatar nyholm avatar sroze avatar rvanlaak avatar gnat42 avatar matzz avatar joelwurtz avatar gilles-g avatar coma avatar xphere avatar tnajanssen avatar

Watchers

James Cloos avatar Rajesh Meniya 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.