Skip to content

Commit 7f4362a

Browse files
committed
Initial commit
1 parent a1af1d5 commit 7f4362a

File tree

5 files changed

+82
-0
lines changed

5 files changed

+82
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<a name="1.0.0"></a>
2+
# [1.0.0](https://github.com/flextype-plugins/phpmailer) (2020-06-13)
3+
* Initial Release

bootstrap.php

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* @link https://flextype.org
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Flextype;
13+
14+
use function is_file;
15+
16+
/**
17+
* Ensure vendor libraries exist
18+
*/
19+
! is_file($phpmailer_autoload = __DIR__ . '/vendor/autoload.php') and exit('Please run: <i>composer install</i> for phpmailer plugin');
20+
21+
/**
22+
* Register The Auto Loader
23+
*
24+
* Composer provides a convenient, automatically generated class loader for
25+
* our application. We just need to utilize it! We'll simply require it
26+
* into the script here so that we don't have to worry about manual
27+
* loading any of our classes later on. It feels nice to relax.
28+
* Register The Auto Loader
29+
*/
30+
$phpmailer_loader = require_once $phpmailer_autoload;

composer.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "flextype-plugins/phpmailer",
3+
"type": "project",
4+
"description": "PHP Mailer for Flextype.",
5+
"keywords": ["phpmailer", "plugin", "flextype", "php"],
6+
"homepage": "https://github.com/flextype-plugins/phpmailer",
7+
"license": "MIT",
8+
"authors": [
9+
{
10+
"name": "Sergey Romanenko",
11+
"email": "support@flextype.org",
12+
"homepage": "https://flextype.org"
13+
}
14+
],
15+
"support": {
16+
"issues": "https://github.com/flextype-plugins/phpmailer/issues"
17+
},
18+
"require": {
19+
"php": ">=7.2.0",
20+
"ext-json": "*",
21+
"phpmailer/phpmailer": "~6.1"
22+
},
23+
"config": {
24+
"apcu-autoloader": true,
25+
"optimize-autoloader": true,
26+
"platform": {
27+
"php": "7.2.0"
28+
}
29+
}
30+
}

plugin.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: PHP Mailer
2+
version: 1.0.0
3+
description: PHP Mailer plugins for Flextype.
4+
icon: fas fa-envelope
5+
author:
6+
name: Sergey Romanenko
7+
email: support@flextype.org
8+
url: https://flextype.org
9+
homepage: https://github.com/flextype-plugins/phpmailer
10+
bugs: https://github.com/flextype-plugins/phpmailer/issues
11+
license: MIT
12+
13+
dependencies:
14+
flextype: 0.9.8

settings.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# enabled: true or false to disable the plugin
2+
enabled: true
3+
4+
# PHP Mailer plugin priority
5+
priority: 80

0 commit comments

Comments
 (0)