Download the PHP package twindots/email-service without Composer

On this page you can find all versions of the php package twindots/email-service. 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 email-service

Email service plugin for laravel 5|6|7|8

This package simplify compiling shortcodes and sending emails.

Requirements

Installation

Install this package with composer:

Service Provider & Facade will be discovered automatically by laravel. Publish the config file and views folder: (required)

This will publish the following:

Usage

This package consist of 2 classes: EmailService and EmailShortCodes.

1- EmailShortCodes:

Shortcodes

Shortcodes are defined inside the config file config/email_service.php under the shortcodes array. You can define shortcodes inside groups in order to load each group for different email templates.

Shortcodes can be inserted in your favorite text editor with this command:

P.S: This library will compile anything inside {}

You can add 3 types of shortcodes:

How to check which objects are required:

If you are working with a large list of shortcodes inside a template with multiple variables and views, you need to know what are the required objects, simply call for the function $shortcodes->objectsNeeded(), it will return an array that will tell you what objects are needed.

Reference

EmailShortCodes

Methods Parameters Definition
compile() - Will compile the body using the shortcodes list and objects
body() String $body Set the body
objects() Array $objects Set the objects
group() String $group Set the group
addGroup() String $group Add a new group to the group list
withUser() - Add the user shortcode group to the shortcodes list
getGroup() - Return the group
shortcodes() - Return the shortcodes list
objectsNeeded() - Return the objects needed to compile

EmailService

Methods Parameters Definition
email() Array,String $email Set the recipient email
replyTo() String $replyTo Set replyTo, will override the value in config.mail.reply_to
cc() Array,String $cc Set cc
bcc() Array,String $bcc Set bcc
body() String $body Set the body
subject() String $subject Set the subject
attach() Array $attachments Set the attachments
send() - Send the email

License

The MIT License (MIT). Please see License File for more information.


All versions of email-service with dependencies

PHP Build Version
Package Version
No informations.
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 twindots/email-service contains the following files

Loading the files please wait ....