PHPackages                             laravel-notification-channels/lob - 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. laravel-notification-channels/lob

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

laravel-notification-channels/lob
=================================

Lob.com notifications channel for Laravel 5.3

1.2.0(6y ago)1145010[2 issues](https://github.com/laravel-notification-channels/lob/issues)MITPHPPHP &gt;=7.2.5CI failing

Since Aug 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/laravel-notification-channels/lob)[ Packagist](https://packagist.org/packages/laravel-notification-channels/lob)[ Docs](https://github.com/laravel-notification-channels/lob)[ RSS](/packages/laravel-notification-channels-lob/feed)WikiDiscussions master Synced 4w ago

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

Lob.com notifications channel for Laravel
=========================================

[](#lobcom-notifications-channel-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/851f83eb750c3590190306258bebdaed235fa3a50660e11743311b51babe39b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6c6f622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/lob)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/ddf9f2eecf317c679b6865498eff6fd3b555d2a77d3fbb185c843d720f8691fc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6c6f622f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/laravel-notification-channels/lob)[![StyleCI](https://camo.githubusercontent.com/abda758dcd3bd00e212042e2d966769dc0fbc21a2ea8765480ca288798fbfe41/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353635393836302f736869656c64)](https://styleci.io/repos/65659860)[![SensioLabsInsight](https://camo.githubusercontent.com/db6bb24cc9fe886211ae22c43818b24c574b9340228cff4a1debf120936d5968/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f64366235653338362d373833302d343632332d616664342d3265653661366562363561312e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/d6b5e386-7830-4623-afd4-2ee6a6eb65a1)[![Quality Score](https://camo.githubusercontent.com/fba63c68477c14b9b41260aecff73d29729b3bef3f31fd64c20b648915d98081/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6c6f622e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/lob)[![Code Coverage](https://camo.githubusercontent.com/515bc3ee7a28dfd88fe6395b4c64568dc2f9f9a62ec325cd289a1fed13a085f7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6c6f622f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/lob/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/5a3f029953895f6c7caca83ffcb4c69d0db23f1d34dc723348727aa69764f112/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6c6f622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/lob)

This package makes it easy to send notifications using [Lob.com](https://lob.com/) with Laravel 5.5, 6.x and 7.x

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the lob.com](#setting-up-lob)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require laravel-notification-channels/lob
```

You must install the service provider:

```
// config/app.php
'providers' => [
    ...
    NotificationChannels\Lob\LobServiceProvider::class,
],
```

### Setting up lob

[](#setting-up-lob)

- Register a new account on [Lob.com](https://lob.com)
- Check for [you API keys](https://dashboard.lob.com/#/settings/keys)
- Finally add your API key to your `config/services.php`

```
// config/services.php
...
'lob' => [
    'api_key' => env('LOB_API_KEY'),
],
...
```

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification:

```
use NotificationChannels\Lob\LobChannel;
use NotificationChannels\Lob\LobPostcard;
use NotificationChannels\Lob\LobAddress;
use Illuminate\Notifications\Notification;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return [LobChannel::class];
    }

    public function toLobPostcard($notifiable)
    {
        return LobPostcard::create()
            ->toAddress(
                LobAddress::create('300 BOYLSTON AVE E')
                    ->name('John Smith')
                    ->city('SEATTLE')
                    ->state('WA')
                    ->zip('98002');
            )
            ->front('https://path.to/my/image/postcardfront.png')
            ->message('Wishing you a wonderful weekend!');
    }
}
```

### Available Postcard methods

[](#available-postcard-methods)

- `fromAddress()` Address of the sender.
- `toAddress()` Address of the receiver.
- `country()` Set the country. `US` is default.
- `city()` required if country is `US`.
- `state()` required if country is `US`.
- `zip()` required if country is `US`.
- `front()` A 4.25"x6.25" or 6.25"x11.25" image to use as the front of the postcard.
- `message()` The message at the back of the card.

Changelog
---------

[](#changelog)

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

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

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

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Mohamed Said](https://github.com/themsaid)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~432 days

Total

4

Last Release

2307d ago

Major Versions

0.0.1 → 1.0.02016-08-23

PHP version history (3 changes)0.0.1PHP &gt;=5.6.4

1.1.0PHP &gt;=7.1

1.2.0PHP &gt;=7.2.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20937037?v=4)[Laravel Notification Channels](/maintainers/laravel-notification-channels)[@laravel-notification-channels](https://github.com/laravel-notification-channels)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (14 commits)")[![themsaid](https://avatars.githubusercontent.com/u/4332182?v=4)](https://github.com/themsaid "themsaid (11 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (7 commits)")[![irazasyed](https://avatars.githubusercontent.com/u/1915268?v=4)](https://github.com/irazasyed "irazasyed (3 commits)")[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (3 commits)")[![casperboone](https://avatars.githubusercontent.com/u/15815208?v=4)](https://github.com/casperboone "casperboone (2 commits)")[![zack6849](https://avatars.githubusercontent.com/u/1343898?v=4)](https://github.com/zack6849 "zack6849 (1 commits)")[![JayBizzle](https://avatars.githubusercontent.com/u/340752?v=4)](https://github.com/JayBizzle "JayBizzle (1 commits)")[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravel-notification-channels-lob/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-notification-channels-lob/health.svg)](https://phpackages.com/packages/laravel-notification-channels-lob)
```

###  Alternatives

[laravel-notification-channels/webpush

Web Push Notifications driver for Laravel.

8985.1M25](/packages/laravel-notification-channels-webpush)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2588.1M15](/packages/laravel-notification-channels-twilio)[illuminate/notifications

The Illuminate Notifications package.

483.0M1.1k](/packages/illuminate-notifications)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2022.1M6](/packages/laravel-notification-channels-apn)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2381.4M13](/packages/laravel-notification-channels-discord)[laravel-notification-channels/pusher-push-notifications

Pusher native Push Notifications driver.

281770.7k1](/packages/laravel-notification-channels-pusher-push-notifications)

PHPackages © 2026

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