Download the PHP package puz/dynamic-mail without Composer

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

Puz - Dynamic Mail

A laravel package for changing email setting in runtime.

Note: I have set the requirements to 5.4 because it's the latest version. Have not tried the others nor made tests yet. If you want to use this package for earlier versions of laravel, create a issue and i'll make it possible, if the technique works.

Install

  1. composer require puz/dynamic-mail
  2. Add \Puz\DynamicMail\DynamicMailServiceProvider::class, to your list of active providers.
  3. Add the facade to your list of aliases. You can either overwrite Laravels own facade (no worries, this package only extend the functionality) or you can add a new one specifically for dynamic mail configuration:

  4. You're almost ready!

How to use it

In the examples I have overwritten Laravel mailer facade with this packages facade.

Lets say you have these 3 situations:

  1. You use the mailgun driver, but need to send from another domain
  2. You use the smtp driver but need to change to a different driver which settings is already defined in config/services.php
  3. You use the smtp driver but need to change to another service which is not defined.

Here is how to do so!

Short about the methods:

via method allows you to change the driver. Each time you use the via method, it creates a new instance of the mailer. This is so you can still use the default mailer if you'ld like. It takes a the driver name (string) as first argument, but allows you to set the config directly (as with with) in the second argument.

with is the one to set the configuration. It takes an array and takes the same array as you would do it in config/services.php.

Supported drivers

I did set it to only allow some of the integrated mail services you can use with Laravel. These are as follow:


All versions of dynamic-mail with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
illuminate/support Version >=5.4.0
illuminate/mail Version >=5.4.0
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 puz/dynamic-mail contains the following files

Loading the files please wait ....