sbyaute / twigbootstrap-maker
TwigBootstrap Maker helps you create controllers and templates boostraped for twigbootstrap theme bundle
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:symfony-bundle
Requires
- php: >=7.1.3
- cnam/twigbootstrap-bundle: >=4.0
- doctrine/annotations: >=1.0
- kevinpapst/adminlte-bundle: >=3.2
- sensio/framework-extra-bundle: >=4
- symfony/console: >=4.4
- symfony/form: >=4.4
- symfony/maker-bundle: >=1.0
- symfony/security-bundle: >=4.4
- symfony/translation: >=4.4
- symfony/twig-bundle: >=4.4
- symfony/validator: >=4.4
README
This repository contains TwigBootstrapMaker bundle which helps you create controller skeletons and templates based on AdminLTE bundle, TwigBootstrap bundle and DataTables bundle.
Minimum requirements
- Symfony 4.4
- PHP 7.1
- Twig 2.0
- AdminLTE bundle
- TwigBootstrap bundle
Installation with Composer
Installation using composer :
composer require sbyaute/TwigBootstrap-Maker
Then, enable the bundle by adding it to the list of registered bundles in the config/bundles.php
file of your project:
<?php return [ // ... Sbyaute\TwigBootstrapMakerBundle\TwigBootstrapMakerBundle::class => ['all' => true], ];
Usage
This bundle provides several commands under the make: namespace. List them all executing this command:
php bin/console list make:twigbootstrap
make:twigbootstrap:controller Creates a new controller class
make:twigbootstrap:crud Creates TwigBootstrap CRUD for Doctrine entity class
make:twigbootstrap:crudmodal Creates TwigBootstrap CRUD (modal mode)for Doctrine entity class
Configuration
This bundle doesn't require any configuration. But, you can configure the base layout and several parameters :
php bin/console config:dump twig_bootstrap_maker
twig_bootstrap_maker:
base_layout: '@TwigBootstrap/layout.html.twig'
skeleton_dir: .../src/DependencyInjection/../Resources/skeleton/
Translation
The translation messages are located in messages and entity class domain. So yo can update it by using :
php bin/console translation:update fr --force --output-format=yaml --domain=messages php bin/console translation:update fr --force --output-format=yaml --domain=[entity class]
License and contributors
Published under the MIT, read the LICENSE file for more information.