Weave 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

Email Template Bundle Laravel Package

ccc/email-template-bundle

View on GitHub
Deep Wiki
Context7

CCCEmailTemplateBundle

Email template form type with Ajax (using jQuery) to populate a textarea field and list/insert/update/delete pages to manage email templates in a Doctrine-managed database. Highly experimental and subject to change. Use at your own risk.

Installation

Add the package to your dependencies

{
    "require": {
        "ccc/email-template-bundle": "dev-master"
        ...
    }
}

Register the bundle in your kernel

public function registerBundles()
{
    $bundles = array(
        // ...
        new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
        new CCC\EmailTemplateBundle\EmailTemplateBundle(),
        // ...
    );

Update your packages

$ php composer.phar update

Update your database schema

$ php app/console doctrine:schema:update

Add routes

# app/config/routing.yml
ccc_email_template:
    resource: "@CCCEmailTemplateBundle/Resources/config/routing.yml"
    prefix:   /

Translations

If you wish to use default text provided in this bundle, you have to make sure you have translator enabled in your config.

# app/config/config.yml

framework:
    translator: ~

Usage

After populating database with some templates you can use by:

$builder
    ->add('email_template', 'email_template_select', array(
        'required' => false,
        'label' => 'email'
    ));

See /email-template/select for an example

Routes

Available in config/routing/emailtemplate.yml

  • /email-template/ - lists all templates available
  • /email-template/new - create a new template
  • /email-template/{id}/show - show the details of a template
  • /email-template/{id}/edit - edit a template
  • /email-template/{id}/delete - delete a template
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.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel