Skip to content

Commit 18c737e

Browse files
committed
Initial commit
0 parents  commit 18c737e

File tree

6 files changed

+119
-0
lines changed

6 files changed

+119
-0
lines changed

Assets/img/icon.png

31.9 KB
Loading

Config/config.php

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
return [
6+
'name' => 'Sparkpost Plugin',
7+
'description' => 'Sparkpost Mailer Plugin for Mautic',
8+
'version' => '1.0.0',
9+
'author' => 'Acquia',
10+
'routes' => [
11+
'main' => [],
12+
'public' => [],
13+
'api' => [],
14+
],
15+
'menu' => [],
16+
'services' => [
17+
'other' => [],
18+
'sync' => [],
19+
'integrations' => [],
20+
],
21+
];

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Mautic Sparkpost Plugin
2+
3+
This plugin enable Mautic 5 to run Sparkpost as a transport.

SparkpostBundle.php

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace MauticPlugin\SparkpostBundle;
6+
7+
use Mautic\IntegrationsBundle\Bundle\AbstractPluginBundle;
8+
9+
class SparkpostBundle extends AbstractPluginBundle
10+
{
11+
}

composer.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "mautic/sparkpost-plugin",
3+
"description": "Sparkpost Mailer Plugin for Mautic",
4+
"type": "mautic-plugin",
5+
"license": "GPL-3.0-or-later",
6+
"keywords": [
7+
"mautic",
8+
"plugin",
9+
"integration"
10+
],
11+
"extra": {
12+
"install-directory-name": "SparkpostBundle"
13+
},
14+
"minimum-stability": "dev",
15+
"require": {
16+
"php": ">=7.4.0",
17+
"mautic/core-lib": "^5.0",
18+
"sparkpost/sparkpost": "^2.3"
19+
},
20+
"scripts": {
21+
"test": [
22+
"@phpunit",
23+
"@csfixer"
24+
],
25+
"quicktest": [
26+
"@unit",
27+
"@csfixer"
28+
],
29+
"phpunit": "../../bin/phpunit -d memory_limit=2048M --bootstrap ../../vendor/autoload.php --configuration phpunit.xml --fail-on-warning --testsuite=all",
30+
"unit": "../../bin/phpunit -d memory_limit=2048M --bootstrap ../../vendor/autoload.php --configuration phpunit.xml --fail-on-warning --testsuite=unit",
31+
"functional": "../../bin/phpunit -d memory_limit=2048M --bootstrap ../../vendor/autoload.php --configuration phpunit.xml --fail-on-warning --testsuite=functional",
32+
"coverage": "../../bin/phpunit -d memory_limit=2048M --bootstrap ../../vendor/autoload.php --configuration phpunit.xml --fail-on-warning --testsuite=all --coverage-text --coverage-html=Tests/Coverage",
33+
"csfixer": "../../bin/php-cs-fixer fix . -v --dry-run --diff --using-cache=no --config=../../.php-cs-fixer.php",
34+
"fixcs": "../../bin/php-cs-fixer fix . -v --using-cache=no --config=../../.php-cs-fixer.php"
35+
}
36+
}

phpunit.xml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
6+
colors="true"
7+
failOnWarning="true"
8+
bootstrap="autoload.php">
9+
10+
<testsuites>
11+
<testsuite name="unit">
12+
<directory>Tests/Unit</directory>
13+
</testsuite>
14+
<testsuite name="functional">
15+
<directory>Tests/Functional</directory>
16+
</testsuite>
17+
<testsuite name="all">
18+
<directory>Tests/Unit</directory>
19+
<directory>Tests/Functional</directory>
20+
</testsuite>
21+
</testsuites>
22+
23+
<php>
24+
<env name="KERNEL_CLASS" value="AppTestKernel"/>
25+
<server name="KERNEL_DIR" value="app"/>
26+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
27+
</php>
28+
29+
<filter>
30+
<whitelist>
31+
<directory>*</directory>
32+
<exclude>
33+
<directory>Assets</directory>
34+
<directory>Config</directory>
35+
<directory>Tests</directory>
36+
<directory>Translations</directory>
37+
<directory>Views</directory>
38+
<directory>vendor</directory>
39+
</exclude>
40+
</whitelist>
41+
</filter>
42+
43+
<listeners>
44+
<listener class="\Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
45+
<listener class="\Mautic\CoreBundle\Test\Listeners\CleanupListener"/>
46+
</listeners>
47+
48+
</phpunit>

0 commit comments

Comments
 (0)