For developers
Build plugins. Not workarounds.
AcelleMail is a Laravel 11+ email marketing platform that ships with full unencrypted PHP source — and a typed Hook system that lets your plugins add sending drivers, payment gateways, AI, custom UI, even REST APIs. Without forking core.
Real plugins shipping today
Why developers choose AcelleMail
Built on the framework you already know.
Extended through patterns you already use.
Full-source PHP / Laravel
Full unencrypted PHP source ships with every license. Modify any class, override any service, fork into your own namespace — your code, your rules. Built on Laravel 11+ so the framework you already know does the heavy lifting.
Plugin architecture
Drop a Composer-shaped folder under storage/app/plugins/<vendor>/<name>/ and the app autoloads it. ServiceProvider injects routes, views, migrations, hooks — activate, deactivate, delete cleanly.
Token-auth REST API
CRUD endpoints for campaigns, lists, subscribers, templates, automations. Webhook events for every domain-level happening. Drop-in for SaaS frontends, mobile apps, or other Laravel services. Same API plugins use is the same API external clients use — no second-class endpoints.
Self-hosted on your infra
Your server, your DB, your subscriber data. No vendor lock-in. Pay once for the license; pay only the underlying SMTP cost (e.g. Amazon SES at $0.10/1K). Deploy anywhere PHP runs — bare metal, Kubernetes, Forge, Laravel Vapor. Scale however your stack scales.
What you can build with plugins
14 extension surfaces.
Every one with a real production example today.
A plugin is a self-contained Laravel package that lives on disk, has its own namespace, its own database tables, routes, views, controllers, models — and integrates with core through a typed Hook system instead of include hacks.
Drivers & integrations · 4
UI & pages · 5
Data & lifecycle · 2
Behavior & flow · 3
A single plugin can mix any of these surfaces — acelle/ai uses 7 of 14 in one package.
The Hook system
Four typed extension patterns. No surprise overrides. No silent conflicts.
Core never imports plugin code — it only declares extension points. Plugins listen and react. Four patterns, each with a clear role. Conflicts throw immediately.
REGISTRY add() + collect()
Plugin contributes items to a list. Core asks "who has a sending driver?" and your plugin says "I have one."
Hook::add('register_sending_server_driver', fn () => [
'type' => 'myvendor-foo',
'driver' => \MyVendor\Foo\Driver::class,
]);
$drivers = Hook::collect('register_sending_server_driver');
EVENT on() + fire()
Plugin reacts to something happening. Return values discarded.
Hook::on('customer_added', function ($customer) {
LoyaltyPoints::award($customer, 100, 'welcome');
});
Hook::fire('customer_added', [$customer]);
BEHAVIOR set() + perform()
Plugin replaces a piece of core logic completely. Only one plugin can claim a given behavior — conflicts throw immediately.
Hook::set('dispatch_list_import_job',
fn ($list, $f) => new MyFasterImportJob($list, $f));
Hook::setIfEmpty('dispatch_list_import_job',
fn ($list, $f) => new DefaultImportJob($list, $f));
$job = Hook::perform('dispatch_list_import_job', [$list, $f]);
dispatch($job);
FILTER modify() + filter()
Plugin transforms a value through a chain of callbacks. Each callback receives the current value, returns the modified value.
Hook::modify('sidebar-menu-items', function (array $items) {
$items[] = [
'label' => 'Loyalty',
'url' => route('lp.dashboard'),
];
return $items;
});
$menu = Hook::filter('sidebar-menu-items', $defaultMenu);
Hello World in 5 minutes
A working plugin from zero in eight commands.
The scaffold creates everything — Composer metadata, ServiceProvider, sample model, sample migration, sample route, sample view. From there it's yours to grow.
-
1
Scaffold the plugin
Creates the standard folder layout + an inactive DB row.
-
2
Edit composer.json
Tell Composer about your namespace and the ServiceProvider.
-
3
Write a migration
Plugin-isolated table, vendor-prefixed name. Runs on activate, rolls back on delete.
-
4
Define a model
Standard Eloquent model in your own namespace.
-
5
Add a controller and view
Plain Laravel controller — view namespace is your plugin name.
-
6
Declare routes
Same Route::group you already use. Loaded by ServiceProvider::boot().
-
7
Wire it all up in ServiceProvider::boot()
Load views + routes; hook into
activate_plugin_…to migrate on activate. -
8
Activate from admin
Go to
/rui/admin/plugins. Migrations run automatically. Plugin lives at its prefix.
You now have a working plugin. Add as many models, controllers, hooks as your feature demands. Tests live in tests/; run them with php artisan test --testsuite='Plugin: myvendor/loyalty'. Source the canonical contract in the knowledge base.
Plugin lifecycle
Four states. Predictable transitions. No "did it run?" mystery.
Every plugin lives in exactly one of four states. The state you're in dictates which hooks fire, which migrations have run, and what happens on the next transition. Source-grounded against docs/plugin/SOURCE_OF_TRUTH.md.
Discovered, not running
Plugin folder exists, index.json indexed, DB row says inactive. ServiceProvider's register() ran, but boot()'s hooks are gated off until you click Activate.
Live, hooks firing
First activation fires activate_plugin_<name> once — this is where migrations run. After that all REGISTRY / EVENT / FILTER / BEHAVIOR hooks are live until deactivated.
Paused, data intact
Routes unmount, hooks gate off, but the folder + DB tables stay. Re-activate doesn't re-run migrations or the activate hook — safe to toggle in production.
Removed cleanly
Folder removed, DB row gone. If $keepData = false, plugin migrations roll back — vendor-prefixed tables drop. Core tables never touched.
Real plugin showcase
acelle/ai — a full AI subsystem in a single plugin folder.
The acelle/ai plugin ships a complete AI assistant layer: agent chatbox on every page, ✨ sparkle text rewrite on rich-text fields, KB-grounded coach personas (Deliverability, Segments, Campaigns, Forms), and an admin observability surface across 5 routes. It mounts via 3 layout hooks. Zero core changes.
What it ships
- → Floating chatbox — plain support mode + opt-in agent mode that calls tools
- → Sparkle popover — one-click rewrite / expand / simplify on every rich-text field
- → Coach personas — domain-aware LLM helpers, scoped per screen
- → Admin observability — usage, audit, conversations, feedback, self-improve
- → Engine flexibility — BYO OpenAI, Anthropic, or local Ollama
- → Plugin landing page at
/plugins/acelle/ai/dashboard
By the numbers
How it mounts — 3 hooks
3 layout REGISTRY hooks — that's it. Plus per-page injections, lifecycle event listeners, and a custom REST API namespaced at /api/v1/ai/*. Zero core changes; the plugin folder is drop-in deployable.
REST API
Token-authenticated endpoints. Same API plugins use.
Use the REST API to integrate AcelleMail into your own SaaS frontend, mobile app, or Laravel service. The same API plugins use is the same API external clients use — no second-class endpoints.
Resources
- Lists —
GET/POST/PATCH/DELETE /api/v1/lists[/:uid] - Subscribers —
/api/v1/subscribers· tags · sub/unsub - Campaigns —
/api/v1/campaigns[/:uid]· run/pause/resume · log CSVs - Automations —
/api/v1/automations[/:uid]· execute · api/call - Sending servers —
/api/v1/sending_servers[/:uid] - Customers (admin) —
/api/v1/customers[/:uid]· assign/change-plan · enable/disable - Subscriptions (admin) —
/api/v1/subscriptions[/:uid]
Webhook events
Lifecycle (configured in Admin → Webhooks): new_customer, new_subscription, change_plan, cancel_subscription, terminate_subscription, automation_webhook.
Per-recipient tracking (per campaign): open, click, unsubscribe.
# Create a list
$ curl -X POST \
https://your-acelle.example.com/api/v1/lists \
-H "Authorization: Bearer $ACELLE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Newsletter",
"from_email": "hi@example.com",
"from_name": "Hi Team",
"subject": "Weekly digest"
}'
# Add a subscriber
$ curl -X POST \
.../api/v1/lists/:uid/subscribers \
-H "Authorization: Bearer $ACELLE_TOKEN" \
-d '{"EMAIL":"alice@example.com"}'
# Send a campaign
$ curl -X POST \
.../api/v1/campaigns/:uid/send \
-H "Authorization: Bearer $ACELLE_TOKEN"
# Receive a webhook
POST /your-webhook-endpoint
{
"event": "campaign.sent",
"campaign_uid": "abc123",
"list_uid": "xyz789",
"sent_at": "2026-05-06T12:34:56Z"
}
Open-source ethos
Your code, forever. No black boxes, no recurring fees, no namespace squatting.
Unencrypted source
Every line of PHP that runs on your server. No ionCube, no SourceGuardian, no obfuscation. git diff your customizations. grep to find anything.
6 months of updates
Every release published in your first 6 months is yours to keep, and it keeps running after that with no subscription required. Pull what you want when you want it.
Your namespace, forever
Plugins live under MyVendor\MyPlugin\ — completely isolated from Acelle\* core. Composer-distributable to your team or marketplace.
One-time license
Pay $80 (Regular) or $199 (Extended for SaaS). No subscriptions, no per-subscriber, no per-email. The math doesn't change as you grow.
Resources & community
Docs, sample plugins, and a direct line to support.
Full developer documentation
Eleven source-grounded deep-dives. Jump straight to the page you need:
Plugin Development Guide
Five host-side files, the boot-and-load flow, the four lifecycle states, the two injection layers — the mental model the rest of the docs assume.
/developers/plugin-architecture →REST API Reference
Authentication, endpoint catalog, webhook payloads, error shapes — native landing page with examples.
/api →The Hook system — four patterns
REGISTRY / EVENT / BEHAVIOR / FILTER — the four extension shapes plugins use, with real call-sites grepped from core, conflict semantics, and six anti-patterns.
/developers/hook-system →Sending drivers — full plugin pattern
Ship a brand-new MTA backend without forking core. The register_sending_server_driver contract, nine capability markers, and five Postal-plugin pitfalls.
Plugin showcase — acelle/ai
The canonical complex plugin walked end-to-end. Eight models, fourteen migrations, eighteen locales, every hook surface, the chatbox UI, plus a four-step learning recipe.
/developers/showcase →Developer support
Stuck on a hook contract or plugin lifecycle question? Email us — typical response within 24h.
admin@acellesend.com →Browse all 11 deep-dives →
Foundation, Building, Quality, Reference — every page in one place, source-grounded against storage/app/plugins/acelle/ai/ and the canonical plugin docs.
Developer FAQ
The questions developers actually ask before buying.
Can I modify the core source code without losing updates? +
Yes, but the cleanest pattern is a plugin. Plugins live outside the core namespace and survive every upgrade automatically. Direct core edits work but require manually merging upstream changes each release. The plugin system exists exactly to avoid that toil.
Do plugins survive AcelleMail upgrades? +
Yes, by design. Core declares hook points; plugins react. As long as the hook name and signature stay stable (and we version-stamp breaking changes), your plugin keeps working. We test the AI plugin (acelle/ai) on every release.
Can I sell plugins commercially? +
Yes. The Extended License lets you distribute your own plugins under your own license. Plugins live in their own namespace; you own that code 100%. Several teams run private marketplaces for their internal plugin ecosystems.
How does the plugin system handle conflicts? +
REGISTRY hooks merge (every plugin contributes); EVENT hooks all fire (no conflict possible); FILTER chains accumulate; BEHAVIOR is the only "exclusive" pattern — if two plugins try to claim the same behavior, an exception throws immediately. No silent override surprises.
Can plugins talk to each other? +
Yes, via the same Hook system. Plugin A can fire events for Plugin B to listen on. Or expose a public class — MyVendor\PluginA\Service is a regular PHP class, importable like any other. The acelle/ai plugin exposes hooks for other plugins to register custom AI tools.
What's the difference between Regular and Extended for a developer? +
Regular ($80) covers your own use on a single domain. Extended ($199) adds the right to charge end-users (resell as SaaS), distribute white-label clones, and sell your own plugins. Both ship the same source code.
Do plugin migrations touch the main DB? +
They write to the same database, but in tables prefixed by your vendor name (e.g. myvendor_loyalty_accounts). Migrations run on plugin activate, roll back on plugin delete with $keepData = false. Zero risk to core tables.
Can I write plugins in something other than PHP? +
The plugin runtime is PHP/Laravel. But your plugin can shell out to anything — Node services, Python ML, Go binaries, external HTTP APIs. Several teams ship plugins that wrap external tools. The plugin is the integration shell; the heavy lifting can live anywhere.
How do plugins interact with the AI subsystem? +
acelle/ai exposes hooks that other plugins can use to register custom AI tools, swap engines, or hook into the observability layer. Read the AI plugin source for the contract. Your plugin can also fire events that the AI agent picks up as context.
Is there a plugin marketplace? +
Not yet. Today, plugins distribute via direct sale, GitHub, or your private registry. A community marketplace is on the roadmap once enough third-party plugins exist to make one worthwhile.
Ship your first plugin this afternoon.
Full PHP source code. 6 months of updates. The Hook system. Real production examples to copy from. One-time $199 for the Extended License (SaaS use: charge your end users).