No description, website, or topics provided.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
Annotations fix template Nov 9, 2018
Command fix template Nov 9, 2018
Model fix template Nov 9, 2018
Repository Update BaseRepository.php Nov 17, 2018
Resources Update builder.html.twig Dec 9, 2018
Services Update MenuExtractorService.php Nov 25, 2018
Twig Update MenuExtention.php Nov 25, 2018
template fix show and menu Nov 25, 2018
BenmachaTemplateBundle.php fix template Nov 9, 2018
composer.json update flatpicker Nov 19, 2018

Template Bundle

By D'Ali Ben Macha

Symfony bundle to generate template with a nice design in your Symfony application.

Latest Stable Version Total Downloads Latest Unstable Version License


The easiest way to install and configure the TemplateBundle with Symfony is by using Composer: Add the benmacha/templatebundle package to your require section in the composer.json file.

$ composer require benmacha/templatebundle ^1.0

Add the Bundle to your application's kernel:

public function registerBundles()
    $bundles = array(
        // ...
            new Benmacha\TemplateBundle\BenmachaTemplateBundle(),
        // ...

Configure the Bundle in your config.yml:

    site_name: 'Ben Macha' #required
    logo_path: 'bundles/benmachatemplate/img/logo-2.png' #required
    logo_path_mobile: 'bundles/benmachatemplate/img/logo-2-mob.png' #required
        class: AppBundle\Entity\User
        picture: image


To generate a CRUD, run this command NB: The menu will be generated

$  php bin/console benmacha:generate:crud

Don't forget to extend the repository like this


namespace AppBundle\Repository;

use Benmacha\TemplateBundle\Repository\BaseRepository; //add this line

class UserRepository extends BaseRepository // make this extend
     // Your code