PHPackages                             omarusman/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. omarusman/laravel-docmail

ActiveLibrary

omarusman/laravel-docmail
=========================

An laravel implementation for Docmail.

v2.1.0(9y ago)032MITPHPPHP &gt;=5.4.0

Since Sep 10Pushed 9y ago2 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (7)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 omarusman/laravel-docmail

```

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

```
\Oozman\Docmail\DocmailServiceProvider::class,

```

Then add the following facade to your list of aliases:

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

```

Usage
-----

[](#usage)

```
\Docmail::sendFile(storage_path('temp/test.pdf'), function(\Oozman\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('');
});

```

API Reference
-------------

[](#api-reference)

For the detailed API Reference please refer to the [API Documentation](http://hpolthof.github.io/laravel-docmail/docs/namespaces/Hpolthof.Docmail.html).

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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~107 days

Recently: every ~134 days

Total

6

Last Release

3360d ago

Major Versions

v0.1.1 → v1.02017-02-06

v1.0 → v2.02017-02-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7873525fae46bef18348acdec01485e6dc61f4fdf9cbdf4f3dc76ec65b2520b?d=identicon)[omarusman](/maintainers/omarusman)

---

Top Contributors

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

---

Tags

laravel-packagelaraveldocmail

### Embed Badge

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

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

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[glhd/linen

21135.6k](/packages/glhd-linen)

PHPackages © 2026

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