• This repository has been archived on 01/Aug/2024
  • Stars
    star
    389
  • Rank 110,500 (Top 3 %)
  • Language
    PHP
  • License
    MIT License
  • Created almost 13 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This Symfony bundle aim to provide classes to build some form filters and then build a doctrine query from this form filter.

LexikFormFilterBundle

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 CI Tests

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 Symfony bundle is compatible with Symfony 4.3 or higher.

For Symfony 2.8/3.4 please use tags v5.*

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

  1. Installation
  2. Configuration
  3. Provided form types
  4. Example & inner workings
    1. Simple example
    2. Inner workings
  5. Working with the filters
    1. Customize condition operator
    2. Filter customization
    3. Working with entity associations and embeddeding filters
    4. Doctrine embeddables
    5. Create your own filter type
    6. Enable validation on your filter type
  6. The FilterTypeExtension
  7. Working with other bundles
    1. KNP Paginator example

Community Support

Please consider opening a question on StackOverflow using the lexikformfilterbundle tag, it is the official support platform for this bundle.

Github Issues are dedicated to bug reports and feature requests.

Symfony 2.8 and 3.4

Please use last tag v5.*

Credits

License

This bundle is under the MIT license.
For the whole copyright, see the LICENSE file distributed with this source code.

More Repositories

1

LexikJWTAuthenticationBundle

JWT authentication for your Symfony API
PHP
2,510
star
2

LexikTranslationBundle

This Symfony bundle allow to import translation files content into the database and provide a GUI to edit translations.
PHP
422
star
3

LexikMaintenanceBundle

This Symfony2 bundle allows you to place your website in maintenance mode by calling two commands in your console. A page with status code 503 appears to users, it is possible to authorize certain ips addresses stored in your configuration.
PHP
257
star
4

LexikWorkflowBundle

Simple workflow bundle for Symfony2
PHP
126
star
5

LexikMailerBundle

This Symfony2 bundle allow you to manage some HTML email templates stored in your database. Templates are written with Twig and use I18N. You can also create some layouts to decorate your email.
PHP
81
star
6

LexikMonologBrowserBundle

This Symfony2 bundle provides a Doctrine DBAL handler for Monolog and a web UI to display log entries
PHP
59
star
7

LexikCurrencyBundle

This Symfony2 bundle provide a service and a Twig extension to convert and display currencies.
PHP
58
star
8

LexikPayboxBundle

LexikPayboxBundle eases the implementation of the Paybox payment system
PHP
40
star
9

LexikCronFileGeneratorBundle

This symfony bundle provides service for generate cron file
PHP
23
star
10

LexikFixturesMapperBundle

This Symfony2 bundle provide some classes to easily load fixtures from CSV or Yaml files.
PHP
21
star
11

LexikColissimoBundle

This Symfony2 bundle provides services to access and consume the WSColiPosteLetterService using the Lexik WSColissimo library
PHP
17
star
12

LexikFrameworkAcceleratorBundle

PHP
16
star
13

ws-colissimo

This library is a client for the SOAP WSColiPosteLetterService
PHP
14
star
14

LexikDataLayerBundle

Manipulate the Google Tag Manager Data Layer from your Symfony application
PHP
13
star
15

lxJavascriptPlugin

lxJavascriptPlugin allows you to insert all your javascripts in a single place of your document, from partials, widgets, basically anywhere in your app.
PHP
6
star
16

lxErrorLoggerPlugin

lxErrorLoggerPlugin allow you to log PHP errors and exceptions that occur on a Symfony project into various format.
PHP
5
star
17

LiipMonitorExtraBundle

PHP
4
star