bashy/laravel-campaignmonitor 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bashy/laravel-campaignmonitor

最新稳定版本:v6.0.3

Composer 安装命令:

composer require bashy/laravel-campaignmonitor

包简介

A Laravel wrapper for Campaign Monitor

README 文档

README

Total Downloads

A Laravel wrapper for CampaignMonitor APIs

Installation

Pull in the package through Composer;

composer require bashy/laravel-campaignmonitor 

If you have auto-discover for Laravel packages, please skip this. Add the service provider to config/app.php

Bashy\CampaignMonitor\CampaignMonitorServiceProvider::class, 

This package has a Laravel facade. You can register it in the aliases array in the config/app.php file

'CampaignMonitor' => Bashy\CampaignMonitor\Facades\CampaignMonitor::class, 

Publish the config file if you want to modify it.

$ php artisan vendor:publish --provider="Bashy\CampaignMonitor\CampaignMonitorServiceProvider" 

And set your own API key and Client ID via .env or similar to match these.

CAMPAIGNMONITOR_API_KEY=YourKey CAMPAIGNMONITOR_CLIENT_ID=123456789 

Usage

You can find all the methods in their package campaignmonitor/createsend-php package.

Some examples;

// Add a subscriber to a list $result = CampaignMonitor::subscribers('LIST_ID')->add([ 'EmailAddress' => 'email@example.com', 'Name' => 'Ben', 'ConsentToTrack' => 'No', // Yes, No, or Unchanged - now required by API v3.2 ]); 
// Create a list for your client $result = CampaignMonitor::lists()->create(config('campaignmonitor.client_id'), [ 'Title' => 'List name', ]); 

To send classic transactional emails

$data = [ 'From' => 'from@example.org', 'To' => 'to@example.org', 'ReplyTo' => 'replyto@example.org', 'CC' => 'cc@example.org', 'BCC' => 'bcc@example.org', 'HTML' => '<p>Hello there!</p>', 'Text' => 'Hello there!', 'ConsentToTrack' => 'No', // Yes, No, or Unchanged - now required by API v3.2 ]; CampaignMonitor::classicSend('CLIENT_ID')->send($data); 

统计信息

  • 总下载量: 361.96k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固