PHPackages                             thinktomorrow/sling - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. thinktomorrow/sling

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

thinktomorrow/sling
===================

easy to use wrapper around Laravel Mail api

0.3.0(7y ago)21.7kMITPHPPHP &gt;=7.1

Since Nov 3Pushed 7y ago5 watchersCompare

[ Source](https://github.com/thinktomorrow/Sling)[ Packagist](https://packagist.org/packages/thinktomorrow/sling)[ Docs](https://github.com/thinktomorrow/sling)[ RSS](/packages/thinktomorrow-sling/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (4)Used By (0)

sling
=====

[](#sling)

[![Latest Version on Packagist](https://camo.githubusercontent.com/79b427ff20b9098e65b7194544de2a1c9c77bac3808a5d56e89be4ba752689f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696e6b746f6d6f72726f772f736c696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thinktomorrow/sling)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/45260eb276181a16069c2d13a4e165451021c7ed78bcd8b3f35e40a7a92f73a1/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468696e6b746f6d6f72726f772f736c696e672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thinktomorrow/sling)[![Coverage Status](https://camo.githubusercontent.com/48774905552033d51092486a83cf975bf4cbf0255e8e28e45798762f92b77906/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7468696e6b746f6d6f72726f772f736c696e672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thinktomorrow/sling/code-structure)[![Quality Score](https://camo.githubusercontent.com/d2696c1e83f6fe52000abe1ac281aaa95410b680444d17eb533a11062762f269/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7468696e6b746f6d6f72726f772f736c696e672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thinktomorrow/sling)[![Total Downloads](https://camo.githubusercontent.com/bad4016ac60b4154e0d544a1cf073fa38b98b820d62d9e2b24d1626f43676830/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696e6b746f6d6f72726f772f736c696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thinktomorrow/sling)

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
-------

[](#install)

Via Composer

```
$ composer require thinktomorrow/sling
```

Usage
-----

[](#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
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [bencavens](https://github.com/bencavens)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~525 days

Total

3

Last Release

2845d ago

PHP version history (2 changes)0.1PHP &gt;=5.5

0.2PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/497668?v=4)[Ben Cavens](/maintainers/BenCavens)[@BenCavens](https://github.com/BenCavens)

---

Top Contributors

[![BenCavens](https://avatars.githubusercontent.com/u/497668?v=4)](https://github.com/BenCavens "BenCavens (8 commits)")

---

Tags

thinktomorrowsling

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thinktomorrow-sling/health.svg)

```
[![Health](https://phpackages.com/badges/thinktomorrow-sling/health.svg)](https://phpackages.com/packages/thinktomorrow-sling)
```

###  Alternatives

[spatie/laravel-newsletter

Manage Mailcoach, MailChimp and MailerLite newsletters in Laravel

1.7k6.6M27](/packages/spatie-laravel-newsletter)[illuminate/notifications

The Illuminate Notifications package.

513.1M1.1k](/packages/illuminate-notifications)[fedeisas/laravel-mail-css-inliner

Inline the CSS of your HTML emails using Laravel

6084.8M3](/packages/fedeisas-laravel-mail-css-inliner)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4079.9M1](/packages/s-ichikawa-laravel-sendgrid-driver)[beyondcode/laravel-mailbox

Handle incoming emails in your Laravel application.

1.1k1.1M9](/packages/beyondcode-laravel-mailbox)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1712.2M11](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
