Download the PHP package black-lamp/yii2-email-templates without Composer

On this page you can find all versions of the php package black-lamp/yii2-email-templates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-email-templates

Email templates module for Yii2

Module for adding templates for email letters across dashboard

Build Status Latest Stable Version Latest Unstable Version License

Installation

Run command

or add

to the require section of your composer.json.

Applying migrations

Add module to application config

Backend module for create, edit and delete email templates

languageProvider it's a class that implements LanguageProviderInterface. You can use language providers from this extension or create yours. This extension has two language providers.

Database language provider configuration properties
Option Description Type Default
tableName Name of table in database with languages string language
idField Name of field in language table with primary key string id
idName Name of field in language table with language name string name
Config language provider configuration properties
Option Description Type Default
languages Array with languages. Example [1 => 'English', 2 => 'Russian'] array -
defaultLanguage Array with default language. Array must contains one value. Example [1 => 'English'] array -

Add component to application config

Component for getting the templates from database

Using

1) Create the template with markers across dashboard

Email subject

New message from {sitename}

Email body

Hello, {username}!

Text...

Go to the link - {link}

2) Get template by key with component help

This method return a Template object.

3) You should to parse the markers in email subject and email body

4) Now you can using this template


All versions of yii2-email-templates with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
yiisoft/yii2 Version ^2.0.4
yiisoft/yii2-bootstrap Version ^2.0.0
2amigos/yii2-tinymce-widget Version ~1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package black-lamp/yii2-email-templates contains the following files

Loading the files please wait ....