PHPackages                             hpolthof/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. [API Development](/categories/api)
4. /
5. hpolthof/laravel-docmail

ActiveLibrary[API Development](/categories/api)

hpolthof/laravel-docmail
========================

An laravel implementation for Docmail.

v0.1.1(10y ago)25.1k↑244.4%3MITPHPPHP &gt;=5.4.0

Since Sep 10Pushed 9y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (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('');
});

```

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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

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

3898d ago

### Community

Maintainers

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

---

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/hpolthof-laravel-docmail/health.svg)

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)

PHPackages © 2026

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