PHPackages                             knackline/laravel-listmonk - 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. knackline/laravel-listmonk

ActiveLibrary

knackline/laravel-listmonk
==========================

Laravel package for Listmonk API integration

1.1(8mo ago)470MITPHPPHP ^8.0

Since Sep 1Pushed 8mo agoCompare

[ Source](https://github.com/Knackline/laravel-listmonk)[ Packagist](https://packagist.org/packages/knackline/laravel-listmonk)[ RSS](/packages/knackline-laravel-listmonk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (4)Used By (0)

Laravel Listmonk
================

[](#laravel-listmonk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9bdbcf48fe6ff78779af57857163e40f978f47850c18d4b1a8374b7edeea6b02/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6e61636b6c696e652f6c61726176656c2d6c6973746d6f6e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/knackline/laravel-listmonk)[![GitHub Tests Action Status](https://camo.githubusercontent.com/64a49bdd6fe016dac4dc1b03ff353651b9f2adc2dc9bc661e8bccb70045fcb6f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b6e61636b6c696e652f6c61726176656c2d6c6973746d6f6e6b2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/knackline/laravel-listmonk/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/229d971ee7be739d995738cfdb81d1c07a5010d94fcd84c3d82f8baf0ef189d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6e61636b6c696e652f6c61726176656c2d6c6973746d6f6e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/knackline/laravel-listmonk)

A Laravel package to interact with the Listmonk API, providing a fluent interface to manage subscribers, lists, campaigns, and more.

Features
--------

[](#features)

- 🚀 Full API coverage for Listmonk
- 🔄 Fluent, object-oriented API
- 🛠 Built with Laravel best practices
- 📦 Easy installation and configuration
- 🔍 Comprehensive test suite
- 📝 Well-documented methods

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- Laravel 9.x or higher
- Listmonk 2.0 or higher

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

[](#installation)

You can install the package via Composer:

```
composer require knackline/laravel-listmonk
```

Publish the config file with:

```
php artisan vendor:publish --provider="Knackline\Listmonk\Providers\ListmonkServiceProvider" --tag="listmonk-config"
```

Configuration
-------------

[](#configuration)

Update your `.env` file with your Listmonk credentials:

```
LISTMONK_URL=https://your-listmonk-installation.com
LISTMONK_USERNAME=your-username
LISTMONK_PASSWORD=your-password
```

Or modify the `config/listmonk.php` file directly.

Usage
-----

[](#usage)

### Facade

[](#facade)

```
use Knackline\Listmonk\Facades\Listmonk;

// Get all subscribers
$subscribers = Listmonk::getSubscribers();

// Create a new subscriber
$subscriber = Listmonk::createSubscriber([
    'email' => 'user@example.com',
    'name' => 'John Doe',
    'status' => 'enabled',
    'lists' => [1, 2], // List IDs to subscribe to
]);
```

### Dependency Injection

[](#dependency-injection)

```
use Knackline\Listmonk\ListmonkClient;

class YourController
{
    protected $listmonk;

    public function __construct(ListmonkClient $listmonk)
    {
        $this->listmonk = $listmonk;
    }

    public function index()
    {
        $subscribers = $this->listmonk->getSubscribers();
        // ...
    }
}
```

### Available Methods

[](#available-methods)

#### Subscribers

[](#subscribers)

- `getSubscribers(array $filters = [])` - Get all subscribers
- `getSubscriber(int $id)` - Get a subscriber by ID
- `createSubscriber(array $data)` - Create a new subscriber
- `updateSubscriber(int $id, array $data)` - Update a subscriber
- `deleteSubscriber(int $id)` - Delete a subscriber
- `blocklistSubscriber(int $id)` - Blocklist a subscriber

#### Lists

[](#lists)

- `getLists(array $filters = [])` - Get all lists
- `getList(int $id)` - Get a list by ID
- `createList(array $data)` - Create a new list
- `updateList(int $id, array $data)` - Update a list
- `deleteList(int $id)` - Delete a list

#### Campaigns

[](#campaigns)

- `getCampaigns(array $filters = [])` - Get all campaigns
- `getCampaign(int $id)` - Get a campaign by ID
- `createCampaign(array $data)` - Create a new campaign
- `updateCampaign(int $id, array $data)` - Update a campaign
- `deleteCampaign(int $id)` - Delete a campaign
- `sendCampaign(int $campaignId, bool $sendNow = false)` - Send a campaign

#### Templates

[](#templates)

- `getTemplates()` - Get all templates
- `getTemplate(int $id)` - Get a template by ID
- `createTemplate(array $data)` - Create a new template
- `updateTemplate(int $id, array $data)` - Update a template
- `deleteTemplate(int $id)` - Delete a template

#### Transactional Emails

[](#transactional-emails)

- `sendTransactionalEmail(string $to, string $subject, string $body, array $data = [])` - Send a transactional email

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Rajkumar Samra](https://github.com/rjsamra)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance61

Regular maintenance activity

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Total

3

Last Release

243d ago

Major Versions

0.1 → 1.02025-09-01

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelapi clientnewsletterlistmonk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/knackline-laravel-listmonk/health.svg)

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M674](/packages/laravel-socialite)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[rahul900day/laravel-captcha

Different types of Captcha implementation for Laravel Application.

10715.9k](/packages/rahul900day-laravel-captcha)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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