Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Templatebundle Laravel Package

benmacha/templatebundle

Symfony bundle that generates nicely designed templates and CRUD scaffolding for your app, including auto-generated menus. Install via Composer, register the bundle, configure site name/logo/user settings, and extend BaseRepository for entities.

View on GitHub
Deep Wiki
Context7

Template Bundle

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

Support Palestine Latest Stable Version Total Downloads Latest Unstable Version License

Installation

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:


<?php
public function registerBundles()
{
    $bundles = array(
        // ...
            new Benmacha\TemplateBundle\BenmachaTemplateBundle(),
        // ...
    );
    ...
}

Configure the Bundle in your config.yml:

benmacha_template:
    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
    user:
        class: AppBundle\Entity\User
        picture: image

Usage

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


<?php

namespace AppBundle\Repository;

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

class UserRepository extends BaseRepository // make this extend
{
     // Your code   
}
        
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui