Skip to content

Commit

Permalink
2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Apr 19, 2020
1 parent 1839de2 commit 7277bc5
Show file tree
Hide file tree
Showing 38 changed files with 982 additions and 755 deletions.
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
.idea
vendor
*.phar
scratch*
.DS_Store
vendor/*
releases
wp-content
*.zip

wordpress
src/vendor/
src/dependencies/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

[![WordPress tested 5.2](https://img.shields.io/badge/WordPress-v5.2%20tested-0073aa.svg)](https://wordpress.org/) [![PHPCS WPCS](https://img.shields.io/badge/PHPCS-WordPress%20Coding%20Standards-8892BF.svg)](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) [![License: GPL v2 or later](https://img.shields.io/badge/License-GPL%20v2%20or%20later-bd0000.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) [![PHPUnit ](https://img.shields.io/badge/PHPUnit-32%25%20coverage-dc3545.svg)]()
[![WordPress tested 5.4](https://img.shields.io/badge/WordPress-v5.4%20tested-0073aa.svg)](https://wordpress.org/) [![PHPCS WPCS](https://img.shields.io/badge/PHPCS-WordPress%20Coding%20Standards-8892BF.svg)](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) [![License: GPL v2 or later](https://img.shields.io/badge/License-GPL%20v2%20or%20later-bd0000.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) [![PHPUnit ](https://img.shields.io/badge/PHPUnit-31%25%20coverage-dc3545.svg)]()

# EA WP AWS SNS - Client REST Endpoint

A [WordPress](https://wordpress.org/) plugin providing a REST API endpoint to receive messages from [Amazon Web Services Simple Notification Service](https://aws.amazon.com/sns/) for other plugins to consume.

## Purpose

We are using [AWS Transcribe](https://aws.amazon.com/transcribe/) to transcribe videos on [AnabolicTV.com](https://anabolictv.com) and when it completes, AWS SNS communicates to our WordPress instance that the job is finished so we can retrieve the output.
We send emails from WordPress via [AWS SES](https://aws.amazon.com/ses/) (using [WP SES plugin](https://wordpress.org/plugins/wp-ses/)). A sister plugin of this, [EA WP AWS SES Bounce Handler](https://github.com/EnhancedAthlete/EA-WP-AWS-SES-Bounce-Handler) uses this plugin to receive the notifications before processing them itself.

If emails from WordPress are sent via [AWS SES](https://aws.amazon.com/ses/) (using [WP SES plugin](https://wordpress.org/plugins/wp-ses/)) a plugin to delete accounts whose email addresses bounce could use this plugin to receive the notifications.
We are using [AWS Transcribe](https://aws.amazon.com/transcribe/) to transcribe videos on [AnabolicTV.com](https://anabolictv.com) and when it completes, AWS SNS communicates to our WordPress instance that the job is finished so we can retrieve the output.

## How To Use

Expand Down
66 changes: 61 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,85 @@
{
"url": "https://github.com/WordPress/wordpress-develop",
"type": "git"
},
{
"url": "https://github.com/BrianHenryIE/WPPB-lib",
"type": "git"
},
{
"url": "https://github.com/pablo-sg-pacheco/wp-namespace-autoloader",
"type": "git"
},
{
"url": "https://github.com/BrianHenryIE/composer-phpstorm",
"type": "git"
}
],
"require": {
"brianhenryie/wppb-lib": "dev-master",
"pablo-sg-pacheco/wp-namespace-autoloader": "dev-master"
},
"require-dev": {
"wordpress/wordpress": "dev-master",
"10up/wp_mock": "0.4.2",
"10up/wp_mock": "0.4.0",
"dealerdirect/phpcodesniffer-composer-installer": "*",
"wp-coding-standards/wpcs": "*",
"phpunit/phpcov": "^5.0",
"kporras07/composer-symlinks": "dev-master"
"kporras07/composer-symlinks": "dev-master",
"brianhenryie/composer-phpstorm": "dev-master",
"cweagans/composer-patches": "~1.0",
"coenjacobs/mozart": "0.5.1",
"phpunit/phpunit" : ">=7.5",
"phpcompatibility/phpcompatibility-wp": "*"
},
"extra": {
"patches": {
"coenjacobs/mozart": {
"Allow default packages" : "https://github.com/coenjacobs/mozart/pull/34.patch",
"Add config option to disable deleting vendor directories": "https://github.com/coenjacobs/mozart/pull/38.patch"
}
},
"mozart": {
"dep_namespace": "EA_WP_AWS_SNS_Client_REST_Endpoint\\",
"dep_directory": "/src/vendor/",
"classmap_directory": "/src/dependencies/",
"classmap_prefix": "EA_WP_AWS_SNS_Client_REST_Endpoint_",
"delete_vendor_directories": false
},
"symlinks": {
"trunk": "wp-content/plugins/ea-wp-aws-sns-client-rest-endpoint",
"src": "wp-content/plugins/ea-wp-aws-sns-client-rest-endpoint",
"wp-content/plugins": "vendor/wordpress/wordpress/src/wp-content/plugins",
"vendor/wordpress/wordpress/src": "wordpress"
},
"phpstorm": {
"exclude_folders": {
"folders": [
"vendor/wordpress/wordpress/src",
"vendor/wordpress/wordpress/build",
"wordpress/wp-content/plugins",
"wp-content/plugins/ea-wp-aws-sns-client-rest-endpoint"
],
"include_folders": [
"vendor/wordpress/wordpress/"
],
"composer-symlinks": false
}
}
},
"scripts": {
"post-install-cmd": [
"Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks"
"\"vendor/bin/mozart\" compose",
"Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks",
"mkdir -p vendor/wordpress/wordpress/src/wp-content/uploads",
"BrianHenryIE\\ComposerPhpStorm\\ExcludeFolders::update",
"BrianHenryIE\\ComposerPhpStorm\\PHPUnitRunConfigurations::update"
],
"post-update-cmd": [
"Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks"
"\"vendor/bin/mozart\" compose",
"Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks",
"mkdir -p vendor/wordpress/wordpress/src/wp-content/uploads",
"BrianHenryIE\\ComposerPhpStorm\\ExcludeFolders::update",
"BrianHenryIE\\ComposerPhpStorm\\PHPUnitRunConfigurations::update"
]
},
"license": "GPL-2.0+-or-later",
Expand Down
Loading

0 comments on commit 7277bc5

Please # to comment.