sludio/helper-bundle

This package is abandoned and no longer maintained. The author suggests using the vairogs/bundle package instead.

Helper Bundle for Symfony

Installs: 1 031

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 0

Forks: 1

Open Issues: 0

Type:symfony-bundle


README

Latest Stable Version Latest Unstable Version License Total Downloads Scrutinizer Code Quality Build Status SensioLabsInsightJoin the chat at https://gitter.im/EntityInk/HelperBundle

Installation

Add the sludio/helper-bundle package to your require section in the composer.json file.

$ composer require sludio/helper-bundle dev-master

Add the SludioHelperBundle to your application's kernel. Preferably after bundles overridden by this bundle:

<?php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Sludio\HelperBundle\SludioHelperBundle(),
        // ...
    );
    ...
}

Usage

WIP

Configure the sludio_helper client(s) in your config.yml:

sludio_helper:
    extensions:
        captcha:
            enabled: true|false
            clients:
                ...
        guzzle:
            profiler:
                enabled: true|false
                max_body_size: 0x10000
            logger:
                enabled: true|false
                service: ~
                format: clf|debug|short
                level: emergency|alert|critical|error|warning|notice|info|debug
            cache:
                enabled: true|false
                adapter: sludio_helper.guzzle.cache_adapter.redis
            clients:
                acme:
                    class: GuzzleHttp\Client
                    lazy: true|false
                    config: ~
                    middleware: ~
                    alias: ~
            mock:
                enabled: true|false
                storage_path: ~
                mode: replay
                request_headers_blacklist: ~
                response_headers_blacklist: ~
        lexik:
            enabled: true|false
            default_domain: messages
            empty_prefixes:
                - '__'
                - 'new_'
                - ''
            default_selections:
                non_translated_only: true|false
            editable:
                type: textarea
                emptytext: Empty
        oauth:
            enabled: true|false
            clients:
                ...
            custom_providers:
                ...
        openid:
            enabled: true|false
            clients:
                ...
        openidconnect:
            enabled: true|false
            clients:
                ...
        pagination:
            enabled: true|false
            behaviour:
                - small: 7
        position:
            enabled: true|false
            field:
                default: positon
                entities:
                    - AppBundle
        script:
            enabled: true|false
            short_functions: true|false
        translatable:
            enabled: true|false
            locales:
                - en
                - lv
            default_locale: en
            template: SludioHelperBundle:Translatable:translations.html.twig
            table: sludio_helper_translation
            manager: default
    other:
        redis:
            translation: session
            guzzle: session
        entity:
            manager: default
        locale: en