2017 © Pedro Peláez
 

symfony-bundle easy-admin-bundle

WandiEasyAdminBundle

image

wandi/easy-admin-bundle

WandiEasyAdminBundle

  • Monday, July 23, 2018
  • by jacquesndl
  • Repository
  • 2 Watchers
  • 3 Stars
  • 70 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 15 % Grown

The README.md

Wandi/EasyAdminBundle

Wandi/EasyAdminBundle is a Symfony 3 prepacked admin bundle. It includes : - javiereguiluz/EasyAdminBundle - dustin10/VichUploaderBundle - egeloen/IvoryCKEditorBundle - ckfinder/ckfinder-symfony3-bundle, (*1)

How to configure

Install via composer

$ composer require wandi/easy-admin-bundle

Registering the bundles

$bundles = [
    // ...
    new \Wandi\EasyAdminBundle\WandiEasyAdminBundle(),
    new \JavierEguiluz\Bundle\EasyAdminBundle\EasyAdminBundle(),
    new \Vich\UploaderBundle\VichUploaderBundle(),
    new \Ivory\CKEditorBundle\IvoryCKEditorBundle(),
    new \CKSource\Bundle\CKFinderBundle\CKSourceCKFinderBundle(),
];

Configuration

  • Add required config to app/config/config.yml:
# Easy Admin
easy_admin:
    design:
        assets:
            js:
                - '/bundles/cksourceckfinder/ckfinder/ckfinder.js'
                - '/bundles/wandieasyadmin/js/ckfinder.js'
    entities:
        - AppBundle\Entity\Post
        - AppBundle\Entity\Tag
        # ... 

# VichUploader
vich_uploader:
    db_driver: orm

# CKFinder
ckfinder:
    connector:
        authenticationClass: Wandi\EasyAdminBundle\Services\CKFinderAuthentication
  • Add route to app/config/routing.yml:
wandi_easy_admin:
    resource: "@WandiEasyAdminBundle/Resources/config/routing.yml"
    prefix:   /admin

Note: Here we use the prefix /admin for all our admin paths, (*2)

  • Update app/config/security.yml configuration:
security:
    encoders:
        # ...
        Wandi\EasyAdminBundle\Entity\User: bcrypt

    providers:
        # ...    
        wandi_easy_admin:
            entity: { class: 'Wandi\EasyAdminBundle\Entity\User' }

    firewalls:
        wandi_easy_admin:
            pattern: '^/admin'
            anonymous: true
            logout:
                path: wandi_easy_admin_logout
            guard:
                authenticators:
                    - wandi_easy_admin.form_authenticator
        # ...

    access_control:
        # ...
        - { path: '^/admin/login', role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: '^/admin/', role: ROLE_EASY_ADMIN }

Important: Make sure that no firewall declared before our, does not match with the prefix we use, (*3)

Update schema

The bundle uses its own User entity. So we need to update your database schema., (*4)

$ php bin/console doctrine:schema:update -f

Commands

  • Setup Wandi/EasyAdminBundle (required)

It's a shortcut for download and install all the assets for CKEditor and CKFinder php bin/console wandi:easy-admin:setup, (*5)

  • Create an admin, (*6)

    php bin/console wandi:easy-admin:user:create admin password
    
  • Change admin password, (*7)

    php bin/console wandi:easy-admin:user:change-password admin password2
    
  • Enable an admin, (*8)

    php bin/console wandi:easy-admin:user:enable admin
    
  • Disable an admin, (*9)

    php bin/console wandi:easy-admin:user:disable admin
    

The Versions

23/07 2018

v2.x-dev

2.9999999.9999999.9999999-dev https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

01/03 2018

1.0.5

1.0.5.0 https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

01/03 2018

v1.x-dev

1.9999999.9999999.9999999-dev https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

17/01 2018

dev-master

9999999-dev https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie
by Laurent Fouquet

bundle symfony wandieasyadminbundle easyadminbundle

19/12 2017

2.0.2

2.0.2.0 https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

19/12 2017

2.0.3

2.0.3.0 https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

14/12 2017

2.0.1

2.0.1.0 https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

13/12 2017

dev-trash

dev-trash https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

13/12 2017

2.0.0

2.0.0.0 https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

27/11 2017

1.0.4

1.0.4.0 https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

27/11 2017

0.9.0

0.9.0.0 https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

21/07 2017

1.0.3

1.0.3.0 https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

20/07 2017

1.0.2

1.0.2.0 https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

20/07 2017

1.0.1

1.0.1.0 https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle

20/07 2017

1.0.0

1.0.0.0 https://github.com/WandiParis/EasyAdminBundle

WandiEasyAdminBundle

  Sources   Download

MIT

The Requires

 

by Jacques N. de Lamballerie

bundle symfony wandieasyadminbundle easyadminbundle