---
title: "Campaigns for Laravel — docs | Roundly"
description: "Developer docs for Campaigns for Laravel: fluent builder, queued job batches, progress tracking, email and notification delivery, events and persistence."
url: https://roundly-consulting.com/open-source/docs/campaigns-for-laravel
language: en
---

[All packages](https://roundly-consulting.com/open-source.md)

Open source

# Campaigns for Laravel

Install

`composer require roundly-consulting/campaigns-for-laravel`

Requires: PHP ^8.4 · Laravel ^12.0|^13.0

[GitHub](https://github.com/roundly-consulting/campaigns-for-laravel) [Packagist](https://packagist.org/packages/roundly-consulting/campaigns-for-laravel) [Donate (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Patreon](https://www.patreon.com/cw/roundly)

## Overview

Send one message to many recipients from any Laravel app. Campaigns for Laravel wraps Laravel’s own queues and job batches in a fluent builder: create a campaign, address it to email strings, contact records or model owners, and dispatch — one batch per campaign, one queued job per recipient, with progress tracking, lifecycle events and a cancel switch. Delivery is swappable (email, Laravel notifications or your own job), and so is storage: in-memory by default, database-backed with one config change. MIT-licensed and dependency-light — Laravel plus Roundly’s own contacts, options, enums and package-toolkit packages, no third-party mailing SDK.

### What you get

#### Facade, handle & fake

Campaigns::create()->to()->dispatch() in one chain, a per-campaign handle, DI or plain actions — and Campaigns::fake() records every write.

#### Queued job batches

One Laravel job batch per campaign and one queued job per recipient. A failed delivery never stops the rest, and a running send can be cancelled.

#### Progress & lifecycle events

Status with sent, failed, pending and total counters and percentage(), plus seven events for campaigns and individual recipients.

#### Swappable delivery

HTML email by default, Laravel notifications for SMS or push, or your own job for any other transport.

#### Recipients from contacts

\->to() accepts contacts-for-laravel records and HasContacts owners, with verified-only and contact-kind rules.

#### Runtime-editable defaults

Sender, sending queue, channel and recipient rules are typed options — stored values override config without a deploy.

#### Optional persistence

In-memory by default, a database store behind one env switch, or your own storage behind the CampaignStore contract.

### Documentation

#### [Installation](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/installation.md)

Install via Composer, run the options and contacts migrations, and publish the config and campaign tables only when you need them.

#### [Configuration](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/configuration.md)

Every config key, its default and env variable — store, sender, recipient rules, sending queue, delivery job and notification channel.

#### [The Campaigns facade](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/facade.md)

Everything through one facade — create, prepare, start, cancel, find, all, a per-campaign handle, settings() and fake().

#### [DI and actions](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/without-facade.md)

Inject CampaignManager instead of the facade, or run the prepare, start, cancel and recipient actions directly — with the facade-to-action map.

#### [Sending a campaign](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/sending-campaigns.md)

Create, address and dispatch a campaign with the fluent Campaigns facade — or prepare it now and start it later.

#### [Recipients](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/recipients.md)

Add recipients as strings, CampaignRecipient objects or iterables — including large lists streamed from a lazy query.

#### [Recipients from contacts](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/contacts.md)

Address campaigns from contacts-for-laravel records and HasContacts owners, with verified-only and contact-kind rules.

#### [Progress & lookup](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/progress.md)

Find campaigns by UUID, read status, counters and percentage, page through them and cancel a running send.

#### [Campaign status](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/campaign-status.md)

The CampaignStatus lifecycle from Created to a terminal state, the event each transition fires, and the enum helpers.

#### [Value objects](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/value-objects.md)

Campaign, CampaignRecipient and CampaignProgress — constructors, fields and their toArray() shapes.

#### [Delivery channels](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/delivery-channels.md)

Deliver by HTML email with SendCampaignEmail or through Laravel notifications with SendCampaignNotification.

#### [Custom delivery jobs](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/custom-jobs.md)

Implement ProcessesCampaignRecipient to deliver over SMS, push or any transport, with batch-safe cancellation and failure tracking.

#### [Send defaults](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/send-defaults.md)

Runtime-editable send defaults via options-for-laravel — option classes, registry keys, config seeds and precedence.

#### [Campaign stores](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/manager.md)

Where campaigns live — the CampaignStore contract, the in-memory and database stores, and plugging in your own storage.

#### [Database persistence](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/persistence.md)

Switch to the DatabaseCampaignStore — schema, Eloquent models, factories and the UUID rule for persisted campaigns.

#### [Queues & batches](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/queues.md)

How campaigns map to Laravel job batches — the sending queue, workers, failed deliveries, cancellation and the in-memory caveat.

#### [Events](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/events.md)

Seven lifecycle and recipient events with their payloads, for logging, dashboards, metrics and webhooks.

#### [Artisan commands](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/commands.md)

List campaigns with their progress, cancel one by UUID, and check the setup with php artisan about.

#### [Exceptions](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/exceptions.md)

CampaignNotFound, CampaignAlreadyExists, InvalidCampaignTransition, RecipientNotFound, config and builder argument errors — and when each occurs.

#### [Testing](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/testing.md)

Record every write with Campaigns::fake() and assert created, started, cancelled and delivered — or run the real flow on a fake batch.

#### [Requirements](https://roundly-consulting.com/open-source/docs/campaigns-for-laravel/requirements.md)

PHP 8.4+, Laravel 12 or 13, four Roundly companion packages, a queue with job batches and a mailer or notification channel.

## Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

[More ways to support, including crypto](https://roundly-consulting.com/support-us.md)

By donating, you agree to our [donation terms](https://roundly-consulting.com/donation-terms.md).

[Support our open source work (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Join us on Patreon (opens in a new tab)](https://www.patreon.com/cw/roundly)

## Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.

[Get a quote in 48 hours](https://roundly-consulting.com/contact.md) [Browse all packages](https://roundly-consulting.com/open-source.md)
