Download the PHP package sebastienheyd/boilerplate-email-editor without Composer
On this page you can find all versions of the php package sebastienheyd/boilerplate-email-editor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sebastienheyd/boilerplate-email-editor
More information about sebastienheyd/boilerplate-email-editor
Files in sebastienheyd/boilerplate-email-editor
Package boilerplate-email-editor
Short Description E-mail visual editor for sebastienheyd/boilerplate
License MIT
Informations about the package boilerplate-email-editor
E-mail editor for sebastienheyd/boilerplate
This package for sebastienheyd/boilerplate
allows developers to manage
emails for their applications. It allows you to create layouts and then define editors who will only be able to edit
texts without being able to modify the layouts.
Installation
-
In order to install Laravel Boilerplate Email Editor run :
- Then run :
You can go to the admin and start using the email management panel.
Optional : publish configuration file
Modify the default HTML layout
To edit the default HTML layout, you can use the following command
You will find the layout in /resources/views/vendor/boilerplate-email-editor/layout
Generating a new email layout
To generate a new layout, you can use the following artisan command :
This command will generate a new blade file in the resources/views/email-layouts
folder.
To change the default folder, change the value of layouts_path
in the email-editor
configuration file.
However, you must publish the configuration file in order to do so. To do this, use the following command:
You can also remove a layout by using the --remove
option
Defining editors
This package is provided with two permissions that can be used depending on the desired profile.
- Email development : to be reserved for developers, it allows to define the slug, the description and the layout.
- Email edition : for users who will be able to edit the content of emails.
Permissions and roles are manageable by default with sebastienheyd/boilerplate
Email variables
In the editing of the content of an e-mail, you will find a "Insert a variable" button. This button allows you to insert a variable in the e-mail and make it uneditable.
However, you can also enter the variables by hand by framing them with [ and ]. In this manner, you can also add variables to the subject line of the email.
Example : "Hello [first_name]"
Sending an email
Tests / Coding standards
This package is delivered with a Makefile
used to launch checks for the respect of coding standards and the unit tests
Just call make
to see the list of commands.
Credits
License
This package is free software distributed under the terms of the MIT license.
All versions of boilerplate-email-editor with dependencies
ext-dom Version *
sebastienheyd/boilerplate Version ^7.0.1|@dev
sebastienheyd/boilerplate-media-manager Version ^7.0|@dev