2017 © Pedro Peláez
 

library aws-wrapper

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

image

irap/aws-wrapper

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 9 % Grown

The README.md

AWS Wrapper for PHP

This package aims to wrap around Amazons PHP sdk so that it provides the developer with a more object-orientated interface. Thus the developer will spend less time looking up the parameters they can pass into an array. This version of the wrapper is based on version 3 of the SDK., (*1)

Installation

composer require irap/aws-Wrapper

Example Usage

<?php

require_once(__DIR__ . '/vendor/autoload.php');

define('S3_BUCKET', 'my-bucket-name');
define('AWS_KEY', 'someKeyValueHere');
define('AWS_SECRET', 'someAwsSecretHere');

$awsWrapper = new \iRAP\AwsWrapper\AwsWrapper(
    AWS_KEY,
    AWS_SECRET,
    iRAP\AwsWrapper\Enums\AwsRegion::create_EU_W1()
);

# Get the S3 client for interfacing with S3, rather than EC2
$s3Client = $awsWrapper->getS3Client();

# Create a private file in S3 called "test-file.txt" that contains the text
# "hello world" in our bucket.
$response = $s3Client->createFile(
    S3_BUCKET,
    "hello world",
    'test-file.txt',
    iRAP\AwsWrapper\S3\Acl::createAuthenticatedRead(),
    iRAP\AwsWrapper\S3\StorageClass::createStandard()
);

Debugging

I've occasionally had issues with running commands that would just block and never return. The solution for me was to install the php-xml package with, (*2)

sudo apt-get install php-xml

I will remove this note once I have figured out how to make composer require that for installation., (*3)

The Versions

21/07 2017

dev-master

9999999-dev http://www.irap.org/

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

  Sources   Download

MIT

The Requires

 

models mysql mysqli

21/07 2017

2.0.5

2.0.5.0 http://www.irap.org/

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

  Sources   Download

MIT

The Requires

 

models mysql mysqli

24/03 2017

dev-sp_aws_3

dev-sp_aws_3 http://www.irap.org/

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

  Sources   Download

MIT

The Requires

 

models mysql mysqli

27/02 2017

2.0.4

2.0.4.0 http://www.irap.org/

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

  Sources   Download

MIT

The Requires

 

models mysql mysqli

14/12 2016

2.0.3

2.0.3.0 http://www.irap.org/

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

  Sources   Download

MIT

The Requires

 

models mysql mysqli

02/12 2016

2.0.2

2.0.2.0 http://www.irap.org/

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

  Sources   Download

MIT

The Requires

 

models mysql mysqli

16/12 2015

2.0.1

2.0.1.0 http://www.irap.org/

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

  Sources   Download

MIT

The Requires

 

models mysql mysqli

30/10 2015

2.0.0

2.0.0.0 http://www.irap.org/

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

  Sources   Download

MIT

The Requires

 

models mysql mysqli

30/10 2015

1.0.3

1.0.3.0 http://www.irap.org/

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

  Sources   Download

MIT

The Requires

 

models mysql mysqli

30/10 2015

1.1.0

1.1.0.0 http://www.irap.org/

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

  Sources   Download

None

The Requires

 

models mysql mysqli

30/10 2015

1.0.0

1.0.0.0 http://www.irap.org/

Package for rapidly developing models that represent mysql tables. Tables must have an id field.

  Sources   Download

None

The Requires

 

models mysql mysqli