PHPackages                             makg/symfony-utils-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. makg/symfony-utils-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

makg/symfony-utils-bundle
=========================

Useful twig extensions and other utils for Symfony 4+ apps.

v0.1.3(5y ago)071[3 PRs](https://github.com/MakG10/symfony-utils-bundle/pulls)MITPHPPHP &gt;=7.1

Since Oct 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MakG10/symfony-utils-bundle)[ Packagist](https://packagist.org/packages/makg/symfony-utils-bundle)[ RSS](/packages/makg-symfony-utils-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (14)Versions (9)Used By (0)

Symfony Utils Bundle
====================

[](#symfony-utils-bundle)

[![Build Status](https://camo.githubusercontent.com/adba31a5a6edf13be41352e13f56ffd3d63767d456500543daec1b1585d93b77/68747470733a2f2f7472617669732d63692e6f72672f4d616b4731302f73796d666f6e792d7574696c732d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/MakG10/symfony-utils-bundle)

Bundle for Symfony 4.x with various useful stuff. It includes:

- `QueryFilter` for Doctrine ORM to support custom search string queries like `symfony bundle site:github.com in-title:API`
- `@CsrfTokenRequired` annotation to force presence of a valid CSRF token in HTTP header when dispatching controller action
- Twig Functions: `path_js`, `light_colors`
- Twig Filters: `color`
- Validators: `UniqueEntityField`, `PhoneNumber`
- Doctrine Types: `\Money\Money` (embeddable), `money_currency`
- Form Types: `MoneyPhpType`

Author: Maciej Gierej -

Installation
------------

[](#installation)

```
composer req makg/symfony-utils-bundle

```

@CsrfTokenRequired annotation
-----------------------------

[](#csrftokenrequired-annotation)

Usage:

```
