yiisoft/yii-swiftmailer


CA CE CIS DIT
    yii\swiftmailer\Logger 1 2 3 0
    yii\swiftmailer\Mailer 0 9 5 2
    yii\swiftmailer\Message 1 11 35 2
    Yiisoft\Yii\SwiftMailer\Logger 1 2 3 0
    Yiisoft\Yii\SwiftMailer\Mailer 0 9 5 2
    Yiisoft\Yii\SwiftMailer\Message 1 11 35 2
CA (Afferent Coupling)
Number of unique incoming dependencies from other artifacts of the same type.
CE (Efferent Coupling)
Number of unique outgoing dependencies to other artifacts of the same type.
CID (Class Interface Size)
Number of non private methods and properties of a class: CIS = public(NOM + VARS)
Measures the size of the interface from other parts of the system to a class.
Depth of Inheritance Tree
Depth of inheritance to root class
{
    "name": "yiisoft/yii-swiftmailer",
    "description": "Yii Framework Swift Mailer Extension",
    "keywords": ["yii", "swift", "swiftmailer", "mail", "email", "mailer"],
    "type": "library",
    "license": "BSD-3-Clause",
    "support": {
        "source": "https://github.com/yiisoft/yii-swiftmailer",
        "issues": "https://github.com/yiisoft/yii-swiftmailer/issues",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii"
    },
    "authors": [
        {
            "name": "Paul Klimov",
            "email": "klimov.paul@gmail.com"
        }
    ],
    "minimum-stability": "dev",
    "prefer-stable": true,
    "require": {
        "yiisoft/arrays": "^3.0@dev",
        "yiisoft/yii-core": "^3.0@dev",
        "swiftmailer/swiftmailer": "~6.0"
    },
    "require-dev": {
        "phpunit/phpunit": "^7.3",
        "hiqdev/composer-config-plugin": "^1.0@dev",
        "yiisoft/di": "^3.0@dev",
        "yiisoft/log": "^3.0@dev",
        "yiisoft/cache": "^3.0@dev",
        "yiisoft/yii-web": "^3.0@dev"
    },
    "autoload": {
        "psr-4": {"Yiisoft\\Yii\\SwiftMailer\\": "src"}
    },
    "autoload-dev": {
        "psr-4": {"Yiisoft\\Yii\\SwiftMailer\\Tests\\": "tests"}
    },
    "extra": {
        "branch-alias": {
            "dev-master": "3.0.x-dev"
        },
        "config-plugin": {
            "common": "config/common.php",
            "tests": "config/tests.php"
        }
    }
}
yiisoft/yii-swiftmailer dependencies

Yii Framework Swift Mailer Extension


This extension provides a SwiftMailer mail solution for Yii framework.

For license information check the LICENSE-file.

Latest Stable Version Total Downloads Build Status

Installation

The preferred way to install this extension is through composer.

php composer.phar require --prefer-dist yiisoft/yii-swiftmailer

Usage

To use this extension, simply add the following code in your application configuration:

return [
    //....
    'mailer' => [
        '__class' => Yiisoft\Yii\SwiftMailer\Mailer::class,
    ],
];

You can then send an email as follows:

$app->get('mailer')->compose('contact/html')
     ->setFrom('from@domain.com')
     ->setTo($form->email)
     ->setSubject($form->subject)
     ->send();

For further instructions refer to the related section in the Yii Definitive Guide.