Download the PHP package mozex/laravel-campaigns without Composer

On this page you can find all versions of the php package mozex/laravel-campaigns. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-campaigns

Laravel Campaigns

Laravel Campaigns

Latest Version on Packagist GitHub Checks Workflow Status Docs License Total Downloads

Laravel Campaigns lets an AI agent run your app's email marketing from inside the app. Your lists stay in step with your own users, every subscribe and unsubscribe is recorded with its basis and source, and campaigns go out through Mailgun, Amazon SES, any SMTP server, or a driver you write for another service, from your own queue, one message at a time, at a pace you set per campaign. Addresses that hard-bounce, report spam or unsubscribe stop getting mail on their own. Agents work through an MCP server the package adds to your app, so Claude Code, Codex or a chat app can draft, preview, test, start and watch a campaign without database access.

Read the full documentation at mozex.dev: searchable docs, version requirements, detailed changelog, and more.

Table of Contents

Support This Project

I maintain this package along with several other open-source PHP packages used by thousands of developers every day.

If my packages save you time or help your business, consider sponsoring my work on GitHub Sponsors. Your support lets me keep these packages updated, respond to issues quickly, and ship new features.

Business sponsors get logo placement in package READMEs. See sponsorship tiers →

What You Get

Agents do the work, you approve it. An MCP server with 48 tools lets an agent write, upload, preview and test an email, count its audience, and start, pace, pause and report on a campaign. Read-only and full tokens, or your own OAuth sign-in, decide who can do what, and the risky calls (starting, resuming or speeding up a campaign, a test email, archiving a list or template, unblocking an address, running an import) ask the person first in Claude Code.

Lists that are your users. A dynamic list follows one of your models, so sign-ups, address changes, bans and deletions reach it as they happen. Static lists hold everyone else: newsletter sign-ups, imports from another service.

Consent you can prove. Every subscribe, opt-out, block and confirmation is an append-only record with its source and basis. One unsubscribe stops all your marketing to that person, and only the person can undo it.

Sending that warms up. Each campaign starts small (100 emails on day one by default), grows each day, and goes out a few emails a minute from your own queue, engaged readers first, mailbox providers in turn.

Feedback that acts. Mailgun's webhooks and logs block hard bounces and spam reports and opt out unsubscribes, and Amazon SES's events through EventBridge block bounces and spam reports. The SMTP driver sends through any server and reads back only what it refuses on the spot, and another service plugs in as a driver that has to do no more than send. A stop-loss pauses a campaign, or a whole sending domain, past its bounce, complaint or unsubscribe limits, and emails you.

Opens and clicks on every driver. Your app serves each email's open pixel and the redirects behind its links, so tracking works the same whichever service sends. Apple's privacy prefetch, link scanners and anything that opens an email the second it arrives count as machines, never as a person reading. The report counts the people who clicked each link, so a link Gmail fetches again after a click still counts as one person.

The pages every email needs. One-click unsubscribe for mail apps, an unsubscribe page, double opt-in confirmation and a web version, each link holding a token that's stored only as a hash.

Installation

Requires PHP 8.2+ - see all version requirements

Then run the install command once. It publishes the config file and the migration, which you run with php artisan migrate.

Quick Start

Add a campaigns mailer on Mailgun's API to config/mail.php, on a domain kept for marketing:

Turn one of your models into a list. The source says who belongs on it and what to keep in step:

Add use Mozex\Campaigns\Concerns\HasCampaignSubscriber; to the User model, then bring in the accounts you already have (a dry run first, then with --force) and make a token for your agent:

Point Mailgun's webhooks at /campaigns/webhooks/mailgun, run a worker for the campaigns queue and the scheduler, and set CAMPAIGNS_ENABLED=true when you're ready to send. Then ask your agent to draft a campaign.

The documentation covers each piece: Mailgun's keys, OAuth for chat apps, consent on your sign-up form, named audiences, the pace and the stop-loss.

Resources

Visit the documentation site for searchable docs auto-updated from this repository.

License

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


All versions of laravel-campaigns with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2.0
ext-curl Version *
ext-dom Version *
ext-zip Version *
guzzlehttp/guzzle Version ^7.8.2|^8.0
guzzlehttp/psr7 Version ^2.4|^3.0
laravel/framework Version ^12.69|^13.30
laravel/mcp Version ^1.1
psr/http-message Version ^1.0|^2.0
spatie/laravel-package-tools Version ^1.16
symfony/http-client Version ^7.4|^8.0
symfony/mailgun-mailer Version ^7.4|^8.0
symfony/mime Version ^7.4|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mozex/laravel-campaigns contains the following files

Loading the files please wait ...