Skip to content

Commit 255831e

Browse files
committed
INT-10699 local_aws_sdk: add plugin skeleton
0 parents  commit 255831e

File tree

8 files changed

+551
-0
lines changed

8 files changed

+551
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
vendor/bin
2+
vendor/**/tests
3+
vendor/**/.gitignore
4+
vendor/**/.travis.yml
5+
vendor/**/phpunit.xml.dist

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Introduction
2+
3+
This plugin was contributed by the Blackboard Product Development team. Blackboard is an education technology company
4+
dedicated to bringing excellent online teaching to institutions across the globe. We serve colleges and universities,
5+
schools and organizations by supporting the software that educators use to manage and deliver instructional content to
6+
learners in virtual classrooms. We are proud to be a Moodle Partner company.
7+
8+
This plugin only serves as a way to distribute the AWS SDK for PHP.
9+
10+
# How to update the SDK
11+
12+
Make any necessary updates to the `composer.json` file. Usually nothing needs to change unless upgrading to the next
13+
major version. Then, from within this project, run this command:
14+
15+
composer update --prefer-dist --optimize-autoloader
16+
17+
Then stage changes:
18+
19+
git add -A vendor composer.*
20+
21+
If everything looks good, then commit the changes. Please include SDK version in the commit message. Lastly,
22+
update the `thirdpartylibs.xml` with new versions and any new libraries.

classes/aws_sdk.php

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
// This file is part of Moodle - http://moodle.org/
3+
//
4+
// Moodle is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// Moodle is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU General Public License
15+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16+
17+
/**
18+
* Utility to help use the AWS SDK.
19+
*
20+
* @package
21+
* @copyright Copyright (c) 2016 Blackboard Inc. (http://www.blackboard.com)
22+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23+
*/
24+
25+
namespace local_aws_sdk;
26+
27+
defined('MOODLE_INTERNAL') || die();
28+
29+
/**
30+
* Utility to help use the AWS SDK.
31+
*
32+
* @package local_aws_sdk
33+
* @copyright Copyright (c) 2016 Blackboard Inc. (http://www.blackboard.com)
34+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
35+
*/
36+
class aws_sdk {
37+
/**
38+
* Autoload the AWS SDK classes.
39+
*/
40+
public static function autoload() {
41+
require_once(__DIR__.'/../vendor/autoload.php');
42+
}
43+
}

composer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "moodlerooms/aws_sdk",
3+
"description": "AWS SDK",
4+
"type": "project",
5+
"require": {
6+
"aws/aws-sdk-php": "^3.19"
7+
},
8+
"license": "GPL"
9+
}

0 commit comments

Comments
 (0)