PHPackages                             devtoolboxuk/aws - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. devtoolboxuk/aws

ActiveLibrary[HTTP &amp; Networking](/categories/http)

devtoolboxuk/aws
================

PHP Library to access the AWS SDK

1.0.7(6y ago)05.2kMITPHPCI failing

Since Feb 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/devtoolboxuk/aws)[ Packagist](https://packagist.org/packages/devtoolboxuk/aws)[ RSS](/packages/devtoolboxuk-aws/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

PHP AWS Connection
==================

[](#php-aws-connection)

Version: 1.0.0

Table of Contents
-----------------

[](#table-of-contents)

- [Summary](#summary)
- [Install](#install)
    - [Compile](#Compile)
- [Usage](#usage)
    - \[Call AWS Service\](#Call AWS Service)
    - *S3*
    - \[Call S3\](#Call S3)
    - \[Set S3 Bucket\](#Set S3 Bucket)
    - \[S3 List Objects\](#S3 List Objects)
    - \[S3 Stream Objects\](#S3 Stream Objects)
- [Maintainers](#maintainers)

Summary
-------

[](#summary)

PHP Library to connect to the AWS Services

Install
-------

[](#install)

Install Composer:

```
$ php -r "readfile('https://getcomposer.org/installer');" | php
```

Install dependencies:

```
$ php composer.phar install
```

Add to PHP

```
require 'vendor/autoload.php';
```

AWS Credentials
---------------

[](#aws-credentials)

The code here will not allow for the credentials to be added to the code. We'll use the environment variables, or if in AWS, use IAMS The AWS SDK will use this by default, you dont need to configure it

###### Bash

[](#bash)

```
$ export AWS_ACCESS_KEY_ID=
$ export AWS_SECRET_ACCESS_KEY=
$ export AWS_DEFAULT_REGION=
```

###### PowerShell

[](#powershell)

```
PS C:\> $Env:AWS_ACCESS_KEY_ID=""
PS C:\> $Env:AWS_SECRET_ACCESS_KEY=""
PS C:\> $Env:AWS_DEFAULT_REGION=""
```

Call AWS Service
----------------

[](#call-aws-service)

```
$this->aws = new aws();
```

S3
==

[](#s3)

#### Call S3

[](#call-s3)

```
$this->s3 = $this->aws->s3();
```

#### Set S3 Bucket

[](#set-s3-bucket)

```
$this->s3->setBucket('test-bucket');
```

#### S3 Commands

[](#s3-commands)

##### List Objects

[](#list-objects)

S3 List Objects in a "folder"

```
$list = $this->s3->listObjects('folder');
foreach ($list as $object) {
    print_r($object['Key']);
}
```

##### Get object

[](#get-object)

Get object ($s3filename) from S3 and save it locally $localFilename

```
$this->s3->getObject($localFilename, $s3filename)
```

### S3 Streaming

[](#s3-streaming)

##### Opening a streaming wrapper

[](#opening-a-streaming-wrapper)

You can

```
$awsS3 = $this->aws->s3();
$awsS3->setBucket('test-bucket');
$streamWrapper = $awsS3->getStreamWrapper()
```

\####= Download an object via a stream

```
$awsS3 = $this->aws->s3();
$awsS3->setBucket('test-bucket');

$objectName = 'folder/folder/file.xml';
$chunkCount =  $awsS3->countDownloadStreamChunks($objectName);

echo sprintf(
    "\nUsing a stream, there were %d chunks\n",
    $chunkCount
);

// Opens the file for Streaming
$awsS3->openDownloadStream($objectName);

//outputs the streamed data
for($i=0;$igetDownloadStream($i);
}

// Closes the streamed file
$awsS3->closeDownloadStream();
```

#### Upload an object via a stream

[](#upload-an-object-via-a-stream)

Coming soon

Thanks
------

[](#thanks)

[@halfer](https://github.com/halfer) for adding in the stream wrapper

Maintainers
-----------

[](#maintainers)

[@devtoolboxuk](https://github.com/devtoolboxuk/).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~38 days

Total

8

Last Release

2387d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11e7828108a460ad0b3dc92c08fa9e0e863168b8dae2b4d7041a6d699f936faa?d=identicon)[devtoolboxuk](/maintainers/devtoolboxuk)

---

Top Contributors

[![devtoolboxuk](https://avatars.githubusercontent.com/u/6337609?v=4)](https://github.com/devtoolboxuk "devtoolboxuk (7 commits)")[![halfer](https://avatars.githubusercontent.com/u/480975?v=4)](https://github.com/halfer "halfer (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devtoolboxuk-aws/health.svg)

```
[![Health](https://phpackages.com/badges/devtoolboxuk-aws/health.svg)](https://phpackages.com/packages/devtoolboxuk-aws)
```

###  Alternatives

[cybernox/amazon-webservices-bundle

A Symfony2 Bundle for interfacing with Amazon Web Services (AWS)

114248.6k](/packages/cybernox-amazon-webservices-bundle)[georgeboot/laravel-echo-api-gateway

Use Laravel Echo with API Gateway Websockets

10435.5k](/packages/georgeboot-laravel-echo-api-gateway)[meema/laravel-cloudfront

Easily &amp; quickly integrate your application with AWS CloudFront.

31113.4k](/packages/meema-laravel-cloudfront)[akhan619/laravel-ses-tracking

A Laravel artisan based package to create the AWS (SES + SNS) infrastructure to receive email event notifications with Http/Https endpoint.

149.9k](/packages/akhan619-laravel-ses-tracking)[akhan619/laravel-ses-event-manager

A Laravel package to manage incoming SES email events with http/s webhooks.

148.8k](/packages/akhan619-laravel-ses-event-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
