承接 iqual/symfony-extra-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

iqual/symfony-extra-bundle

最新稳定版本:1.0.3

Composer 安装命令:

composer require iqual/symfony-extra-bundle

包简介

README 文档

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.

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-07-01