thinktomorrow/sling

easy to use wrapper around Laravel Mail api
1,675 2
Install
composer require thinktomorrow/sling
Latest Version:0.3.0
PHP:>=7.1
Laravel:5
License:MIT
Last Updated:Sep 18, 2018
Links: GitHub  ·  Packagist
Maintainer: BenCavens

sling

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

This is an basic wrapper around the Laravel Mailer and provides a chainable api for constructing a mail message. Please note that this package is in development and no stable version has been reached so far.

Install

Via Composer

$ composer require thinktomorrow/sling

Usage

$sling->to('user@example.com','Ben Cavens')
     ->from('user@example.com','Ben Cavens')
     ->subject('This is a mail for you!')
     ->template('mails.invite') // blade view
     ->data(['name' => 'Ben Cavens']) // parameters for view
     ->send();

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email cavensben@gmail.com instead of using the issue tracker.

Credits

License

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

Related Packages

thinktomorrow/squanto

Text manager for static laravel translations during and after development

44,007 0
thinktomorrow/locale

A Laravel package for lightweight route localization

8,328 2
thinktomorrow/assetlibrary

An extension on top of Spatie/laravel-medialibrary which provides extra function...

42,750 4
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959

Version History

Version Released PHP Laravel License
0.3.0 >=7.1 ~5.6.0|~5.7.0 MIT
0.2 >=7.1 ^5.6 MIT
0.1 >=5.5 ^5.1 MIT