Download the PHP package x-laravel/listmonk without Composer
On this page you can find all versions of the php package x-laravel/listmonk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download x-laravel/listmonk
More information about x-laravel/listmonk
Files in x-laravel/listmonk
Package listmonk
Short Description Laravel integration for Listmonk - Self-hosted newsletter and mailing list manager
License MIT
Informations about the package listmonk
Listmonk for Laravel
A Laravel package for integrating with Listmonk — the self-hosted newsletter and mailing list manager.
Provides a clean API wrapper for Listmonk's REST API, automatic model-to-subscriber synchronization, queue support, and Eloquent lifecycle hooks.
Requirements
- PHP 8.1+
- Laravel 10 or 11
- A running Listmonk instance
Installation
Publish the configuration file:
Add the following to your .env:
Configuration
Quick Start
1. Implement the interface and trait on your model
That's it. The package will automatically sync your model to Listmonk on created, updated, deleted, and restored events.
2. Customize (optional)
Override trait methods in your model to customize behavior:
API Usage
The package exposes three services through the Listmonk facade:
Subscribers API (raw wrapper)
Lists API (raw wrapper)
Newsletter Manager (business logic)
Helper function
Model Actions
Models using the InteractsWithNewsletter trait get these methods:
All respect the LISTMONK_QUEUE_ENABLED setting — when enabled, operations are dispatched as queued jobs.
Temporarily disable sync
Events
| Event | When |
|---|---|
SubscriberSubscribed |
New subscriber created in Listmonk |
SubscriberSynced |
Existing subscriber updated in Listmonk |
SubscriberUnsubscribed |
Subscriber deleted from Listmonk |
SubscriberSyncFailed |
Sync failed (with exception) |
Artisan Commands
Testing
The package provides a test trait for faking API calls:
Architecture
License
MIT
All versions of listmonk with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/queue Version ^10.0|^11.0|^12.0