PHPackages                             cherbert/laravel-docmail - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cherbert/laravel-docmail

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cherbert/laravel-docmail
========================

An laravel implementation for Docmail.

v0.1.1(10y ago)012MITPHPPHP &gt;=5.4.0

Since Sep 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/cherbert/laravel-docmail)[ Packagist](https://packagist.org/packages/cherbert/laravel-docmail)[ Docs](https://github.com/hpolthof/laravel-docmail)[ RSS](/packages/cherbert-laravel-docmail/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Laravel Package for Docmail
===========================

[](#laravel-package-for-docmail)

This packages provides an interface to the mail services of [Docmail](https://www.cfhdocmail.com/). The provide their services in many countries and are able to process mailings at fair rates.

Installing the package
----------------------

[](#installing-the-package)

You can install this package using [Composer](https://www.getcomposer.org/). Go to your commandline and run in the root of your project:

```
composer require hpolthof/laravel-docmail

```

Next, open your `config/app.php` file and add the following service provider:

```
\Hpolthof\Docmail\DocmailServiceProvider::class,

```

Then add the following facade to your list of aliases:

```
'Docmail'   => \Hpolthof\Docmail\DocmailFacade::class,

```

Usage
-----

[](#usage)

```
\Docmail::sendFile(storage_path('temp/test.pdf'), function(\Hpolthof\Docmail\DocmailService $docmail) {
    // Name the mailing, defaults to the OrderRef.
    $docmail->getMailing()->setMailingName('Test Mailing');

    // Change the filename.
    $docmail->getTemplate()->setFileName('MyPrettyLetterFilename.pdf');

    // Add all the addresses you want.
    $docmail->addBasicAddress('John Doe', 'Testersroad 3', '32444 Testersvalley');

    // If you have a discountcode you can apply it.
    $docmail->getMailing()->setDiscountCode('');
});

```

Important notice
----------------

[](#important-notice)

Although you can run the interaction with Docmail, within your controller. It is advised to make use of Jobs that are processed in the background. Although the processing is mostly done within a few seconds, the processing at the Docmail server can take up to a few minutes. Therefor background Jobs should be used to maintain optimal performance.

> Read more on creating Jobs in the [Laravel Documentation](http://laravel.com/docs/5.1/queues#writing-job-classes).

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

3939d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6245a066c7605cb46105317c2ad52dc201e41090288e29646969989d2eb7319f?d=identicon)[cherbert](/maintainers/cherbert)

---

Top Contributors

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

---

Tags

laraveldocmail

### Embed Badge

![Health badge](/badges/cherbert-laravel-docmail/health.svg)

```
[![Health](https://phpackages.com/badges/cherbert-laravel-docmail/health.svg)](https://phpackages.com/packages/cherbert-laravel-docmail)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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