Download the PHP package rollerworks/mail-bundle without Composer

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

RollerworksMailBundle

This bundle provides Templating and Attachment Decorating for SwiftMailer with Symfony2

Template

The SwiftMailer template decorator, handles e-mail messages using the Symfony Templating Component.

AttachmentDecorator

The SwiftMailer attachment decorator is similar to the Template decorator, but instead it handles mail attachments.

Installation

Step 1: Using Composer (recommended)

To install RollerworksMailBundle with Composer just add the following to your composer.json file:

NOTE: Please replace master-dev in the snippet above with the latest stable branch, for example 1.0.*.

Then, you can install the new dependencies by running Composer's update command from the directory where your composer.json file is located:

Now, Composer will automatically download all required files, and install them for you. All that is left to do is to update your AppKernel.php file, and register the new bundle:

Step 1 (alternative): Using deps file (Symfony 2.0.x)

First, checkout a copy of the code. Just add the following to the deps file of your Symfony Standard Distribution:

NOTE: You can add version tag in the snippet above with the latest stable branch, for example version=origin/1.0.

Then register the bundle with your kernel:

Make sure that you also register the namespace with the autoloader:

Now use the vendors script to clone the newly added repositories into your project:

Step3: Enable the bundle

Finally, enable the bundle in the kernel:

Congratulations! You're ready!

Basic Usage (Template decorator)

See http://swiftmailer.org/docs/plugins.html#decorator-plugin for more in-dept details.

When creating an new e-mail message add the following.

Basic Usage (Attachment decorator)

Note. This can be used in combination with the Template decorator.

Also see:

For more in-dept detail.

When creating an new e-mail message add the following.

Replacements must be an array or implementation of \Swift_Plugins_Decorator_Replacements Each key is an e-mail address and the value an array with attachments. An attachment is either a \Swift_Attachment object or an array with the following keys and data:

Note: data must not be base64 encoded but provided as-is.


All versions of mail-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/framework-bundle Version 2.*
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 rollerworks/mail-bundle contains the following files

Loading the files please wait ....