escolalms/mailerlite 问题修复 & 功能扩展

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

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

escolalms/mailerlite

最新稳定版本:0.4.2

Composer 安装命令:

composer require escolalms/mailerlite

包简介

Escola LMS MailerLite integration.

README 文档

README

codecov phpunit downloads downloads downloads Maintainability Test Coverage

What does it do

This package is used for integration with MailerLite after dispatching events.

Installing

  • composer require escolalms/mailerlite

Example

You can set the package status and api key using the Facade

Config::set('escolalms_mailer_lite.package_status', PackageStatusEnum::ENABLED);
Config::set('escolalms_mailer_lite.api_key', '1234);

or Settings package

$this->actingAs($this->user, 'api')->postJson(
    '/api/admin/config',
    [
        'config' => [
            [
                'key' => 'escolalms_mailer_lite.package_status',
                'value' => PackageStatusEnum::ENABLED,
            ],
            [
                'key' => 'escolalms_mailer_lite.api_key',
                'value' => '1234',
            ],
        ]
    ]
);

Group names are also configurable.

$this->actingAs($this->user, 'api')->postJson(
    '/api/admin/config',
    [
        'config' => [
            [
                'key' => 'escolalms_mailer_lite.group_registered_group',
                'value' => 'registered users',
            ],
            [
                'key' => 'escolalms_mailer_lite.group_order_paid',
                'value' => 'order paid',
            ],
            [
                'key' => 'escolalms_mailer_lite.group_left_cart',
                'value' => 'left cart',
            ],
        ]
    ]
);

Tests

Run ./vendor/bin/phpunit to run tests.

Test details codecov phpunit

Listeners

Handling events

  • EscolaLms\Auth\Events\AccountConfirmed => add to group of registered users (escolalms_mailer_lite.group_registered_group)
  • EscolaLms\Cart\Events\ProductBought => add to group of users with paid orders (escolalms_mailer_lite.group_order_paid)
  • EscolaLms\Auth\Events\AccountBlocked => remove from all groups
  • EscolaLms\Cart\Events\AbandonedCartEvent => add to the group of users with abandoned carts (escolalms_mailer_lite.group_left_cart)
  • EscolaLms\Cart\Events\OrderCreated => remove from the group of users with abandoned carts (escolalms_mailer_lite.group_left_cart)

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固