Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jun 13, 2020
1 parent a1af1d5 commit 7f4362a
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<a name="1.0.0"></a>
# [1.0.0](https://github.com/flextype-plugins/phpmailer) (2020-06-13)
* Initial Release
30 changes: 30 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

declare(strict_types=1);

/**
* @link https://flextype.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Flextype;

use function is_file;

/**
* Ensure vendor libraries exist
*/
! is_file($phpmailer_autoload = __DIR__ . '/vendor/autoload.php') and exit('Please run: <i>composer install</i> for phpmailer plugin');

/**
* Register The Auto Loader
*
* Composer provides a convenient, automatically generated class loader for
* our application. We just need to utilize it! We'll simply require it
* into the script here so that we don't have to worry about manual
* loading any of our classes later on. It feels nice to relax.
* Register The Auto Loader
*/
$phpmailer_loader = require_once $phpmailer_autoload;
30 changes: 30 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "flextype-plugins/phpmailer",
"type": "project",
"description": "PHP Mailer for Flextype.",
"keywords": ["phpmailer", "plugin", "flextype", "php"],
"homepage": "https://github.com/flextype-plugins/phpmailer",
"license": "MIT",
"authors": [
{
"name": "Sergey Romanenko",
"email": "[email protected]",
"homepage": "https://flextype.org"
}
],
"support": {
"issues": "https://github.com/flextype-plugins/phpmailer/issues"
},
"require": {
"php": ">=7.2.0",
"ext-json": "*",
"phpmailer/phpmailer": "~6.1"
},
"config": {
"apcu-autoloader": true,
"optimize-autoloader": true,
"platform": {
"php": "7.2.0"
}
}
}
14 changes: 14 additions & 0 deletions plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: PHP Mailer
version: 1.0.0
description: PHP Mailer plugins for Flextype.
icon: fas fa-envelope
author:
name: Sergey Romanenko
email: [email protected]
url: https://flextype.org
homepage: https://github.com/flextype-plugins/phpmailer
bugs: https://github.com/flextype-plugins/phpmailer/issues
license: MIT

dependencies:
flextype: 0.9.8
5 changes: 5 additions & 0 deletions settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# enabled: true or false to disable the plugin
enabled: true

# PHP Mailer plugin priority
priority: 80

0 comments on commit 7f4362a

Please sign in to comment.