Download the PHP package distilleries/mailersaver without Composer

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

Scrutinizer Code Quality Code Coverage Build Status Total Downloads Latest Stable Version

Laravel 5 MailerSaver

Mailer saver extend the laravel 5 mailer.

Table of contents

  1. Installation
  2. Config file
  3. View
  4. Send an email

Installation

Add on your composer.json

run composer update.

Add Service provider to config/app.php:

And Facade (also in config/app.php) replace the laravel facade Mail

You need to provide a model of data, simply add on your register method a new instance of your model in your app/Providers/AppServiceProvider.php:

In this case I return a Email model instance. This model just implement the contract Distilleries\MailerSaver\Contracts\MailModelContract.

To Publish the model:

To Publish the migration:

Config file

You can publish the config file with the command line:

Field Description
template Global template when you put the content of your mail.
override An array with all the config to hoock the mail send.
enabled Enable the override of the mail. If in true that send the email with the to, cc, bcc
to Use to send an email when the override parameter is set to true
cc Use to send an email when the override parameter is set to true
bcc Use to send an email when the override parameter is set to true

View

To override the view you can give a new template on the configuration or modify the current one. Before modify it you have to publish it:

Send an email

It's exactly the same than the laravel mailer.

Example:

If the override is set to true email is send to another to email address.

Troubleshooting

If composer update --require-dev refuse to install, remove illuminate/* from vendor before the install or just remove vendor and start fresh.


All versions of mailersaver with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
illuminate/support Version 5.7.*
illuminate/database Version 5.7.*
illuminate/view Version 5.7.*
illuminate/mail Version 5.7.*
illuminate/filesystem Version 5.7.*
wpb/string-blade-compiler Version dev-laravel-5.7#d9cc177760727fa7ac4df0a322cc3e28c0c074c7
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 distilleries/mailersaver contains the following files

Loading the files please wait ....