2017 © Pedro Peláez
 

symfony-bundle admin-theme-bundle

Admin Theme based on the AdminLTE Template for easy integration into symfony

image

avanzu/admin-theme-bundle

Admin Theme based on the AdminLTE Template for easy integration into symfony

  • Friday, May 11, 2018
  • by avanzu
  • Repository
  • 35 Watchers
  • 267 Stars
  • 105,924 Installations
  • PHP
  • 13 Dependents
  • 0 Suggesters
  • 162 Forks
  • 34 Open issues
  • 35 Versions
  • 9 % Grown

The README.md

AdminThemeBundle knpbundles.com

[PRs Welcome][3] ![Symfony 2.x & 3.x][2] Build Status Latest Stable Version Latest Unstable Version License, (*1)

Total Downloads Monthly Downloads Daily Downloads, (*2)

Throughput Graph, (*3)

Admin Theme based on the AdminLTE Template for easy integration into symfony. This bundle integrates several commonly used javascripts and the awesome AdminLTE Template., (*4)

Installation

Installation using composer is really easy: this command will add "avanzu/admin-theme-bundle": "~1.3" to your composer.json and will download the bundle:, (*5)

   php composer.phar require avanzu/admin-theme-bundle

Notice: if you prefer to stay with the AdminLTE theme v1.x, manually reference "avanzu/admin-theme-bundle": "~1.1" in composer.json "require" part and run php composer.phar update, (*6)

For unstable releases (based in master branch) use:, (*7)

   php composer.phar avanzu/admin-theme-bundle dev-master

Enable the bundle in your kernel:, (*8)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Avanzu\AdminThemeBundle\AvanzuAdminThemeBundle(),
    );
}

If you use 2.x branch or dev-master version of this bundle you need additionally:, (*9)

php bin/console avanzu:admin:initialize

Install assets (preferably using symlink method but hardcopy works as well)..., (*10)

    php app/console assets:install --symlink

Or symfony 3.x/4.x version:, (*11)

    php bin/console assets:install --symlink

... and fetch vendors:, (*12)

    php app/console avanzu:admin:fetch-vendor

Or symfony 3.x/4.x version:, (*13)

    php bin/console avanzu:admin:fetch-vendor

Additionaly, you can trigger fetch the vendor in each install or update of this bundle, for that edit your archive composer.json and add:, (*14)

    "scripts": {
        "post-install-cmd": [
            "Avanzu\\AdminThemeBundle\\Composer\\ScriptHandler::fetchThemeVendors"
        ],
        "post-update-cmd": [
            "Avanzu\\AdminThemeBundle\\Composer\\ScriptHandler::fetchThemeVendors"
        ]
    } 

Symfony 2.8 notice

This bundle requires assetic, but it isn't shipped with symfony anymore since version 2.8. To install assetic, follow these steps:, (*15)

php composer.phar require symfony/assetic-bundle

Enable the bundle in your kernel:, (*16)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Symfony\Bundle\AsseticBundle\AsseticBundle(),
    );
}

Add the following lines at app/config/config_dev.yml:, (*17)

assetic:
    use_controller: false

Changing default values from templates

If you want to change any default value as for example admin_skin all you need to do is define the same at app/config/config.yml under [twig] section. See example below:, (*18)

# Twig Configuration
twig:
    debug:            "%kernel.debug%"
    strict_variables: "%kernel.debug%"
    globals:
        admin_skin: skin-blue

You could also define those values at app/config/parameters.yml:, (*19)

admin_skin: skin-blue

and then use as follow in app/config/config.yml:, (*20)

# Twig Configuration
twig:
    debug:            "%kernel.debug%"
    strict_variables: "%kernel.debug%"
    globals:
        admin_skin: "%admin_skin%"

AdminLTE skins are: skin-blue (default for this bundle), skin-blue-light, skin-yellow, skin-yellow-light, skin-green, skin-green-light, skin-purple, skin-purple-light, skin-red, skin-red-light, skin-black and skin-black-light. If you want to know more then go ahead and check docs for AdminLTE here., (*21)

There are a few values you could change for sure without need to touch anything at bundle, just take a look under Resources/views. That's all., (*22)

Upgrade notice

Version >= 1.3 comes with pre packaged asset files located under Resources/public/static/[prod|dev]. So, there is no longer a strict requirement for bower and/or assetic. The assetic groups hovever, are still there and should work as usual., (*23)

If the assetic bundle is installed but you don't want the AdminThemeBundle to use it you can add following lines to config.yml:, (*24)

    avanzu_admin_theme:
        use_assetic: false

Next Steps

The Versions

11/05 2018

1.3.x-dev

1.3.9999999.9999999-dev

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

11/05 2018
02/03 2018

dev-experimental-symfony-3.4-4.x

dev-experimental-symfony-3.4-4.x

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

21/02 2018
19/02 2018
08/01 2018

dev-feature/2.0

dev-feature/2.0

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

24/11 2017
10/10 2017

dev-hotfix-1.3.5

dev-hotfix-1.3.5

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

10/10 2017
09/10 2017
28/09 2017
17/09 2017

2.0.0-beta.6

2.0.0.0-beta6

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

16/09 2017

dev-develop

dev-develop

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

23/07 2016

2.0.0-beta.5

2.0.0.0-beta5

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

23/07 2016

2.0.0-beta.4

2.0.0.0-beta4

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

18/06 2016

2.0.0-beta.3

2.0.0.0-beta3

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

16/06 2016

2.0.0-beta.2

2.0.0.0-beta2

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

30/12 2015

2.0.0-beta.1

2.0.0.0-beta1

Admin Theme based on the AdminLTE Template for easy integration into symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

30/12 2015
14/12 2015
19/09 2015
29/08 2015
21/03 2015
06/03 2015
27/10 2014
27/09 2014
27/09 2014
07/08 2014
07/08 2014
07/08 2014