iqual/symfony-extra-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.0.3) of this package.

Maintainers

Package info

github.com/iqual-ch/symfony-extra-bundle

pkg:composer/iqual/symfony-extra-bundle

Statistics

Installs: 21

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.3 2016-07-30 19:26 UTC

This package is auto-updated.

Last update: 2025-10-02 09:11:57 UTC


README

Provides common additions to Symfony.

Installation

composer require mpom/symfony-extra-bundle

Add to your AppKernel.php:

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new SymfonyExtraBundle\SymfonyExtraBundle,
            // ...
        )
    }

Configuration

In your parameters.yml file add 2 new options:

locale: en # default locale
locales: [en, de, it, fr] # all supported locales

What's inside?

Locale autodetector

Detects user's locale using different strategies (in this order):

  • Query
  • Cookie
  • Accept Header

Provides LocaleManger service (@se_locale_manager)

Twig

Pagination function

Provides pagination function for rendering paginations ;D

{{ pagination(totalItems, itemsPerPage, route, currentPage = 1, template ='SymfonyExtraBundle::pagination.html.twig') }}

Money filter

Formats string as money appending currency symbol (locale-based).

{{ value|money }} # CHF 1'200.00

SwiftMailer

####Transports:

#####Mandrill Requires installation of "hipaway-travel/mandrill-bundle"

#####File Requires parameter "mailer_local_dir" to be set.

####Plugins: #####CssToInline Extracts styles external css file into inline styles for every html message, requires "tijsverkoyen/css-to-inline-styles".
Set option "email_css_file" of section "symfony_extra" of "config.yml" to valid *.less file.