PHPackages                             2amigos/yii-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. 2amigos/yii-aws

AbandonedArchivedYii-extension[Utility &amp; Helpers](/categories/utility)

2amigos/yii-aws
===============

Amazon Web Services SDK PHP 2 Wrapper.

v1.0(12y ago)2121.0k15[3 issues](https://github.com/2amigos/yiiaws/issues)BSD-3-ClausePHPPHP &gt;=5.3.2

Since Jun 1Pushed 12y ago11 watchersCompare

[ Source](https://github.com/2amigos/yiiaws)[ Packagist](https://packagist.org/packages/2amigos/yii-aws)[ RSS](/packages/2amigos-yii-aws/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Yii-AWS
=======

[](#yii-aws)

Provides a simple way to configure and use **Amazon AWS SDK PHP 2**. For more information regarding its services, please go to .

### Before you start

[](#before-you-start)

The wrapper is in **alpha** version. Obviously, I couldn't test all the possibilities of Amazon SDK, I have tested just a couple. But being just a wrapper, it should not have any issues whatsoever but those related to the SDK itself.

I published, in order to get good feedback from you guys and again, provide another utility to the Yii framework. If you wish to collaborate, comment, whatever, please, do not hesitate to add your two cents [via its github repository](https://github.com/2amigos/yii-aws). Everybody welcome.

### Overview

[](#overview)

The main purpose of this extension was to be able to configure the sdk in a very easy way, and then be able to make use of its classes with an easy and configurable import at my main config file.

### Install

[](#install)

I assume that if you wish to use this extension, you already have your [AWS credentials](http://aws.amazon.com/es/).

Since [schmunk](https://github.com/schmunk42) convinced me about [composer](http://getcomposer.org) wonders. From now on, you will be able to install my extensions using composer ().

#### Via Composer

[](#via-composer)

- Add `2amigos/yii-aws` as a dependency in your project's `composer.json` file.

```
	{
   		"require": {
      		"2amigos/yii-aws": "dev-master"
   		}
	}

```

- Download and install Composer.

```
curl -s "http://getcomposer.org/installer" | php

```

- Install your dependencies.

```
php composer.phar install

```

- Require Composer's autoloader. Composer also prepares an autoload file that's capable of autoloading all of the classes in any of the libraries that it downloads. To use it, just add the following line to your code's bootstrap process.

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

```

You can find out more on how to install Composer, configure autoloading, and other best-practices for defining dependencies at getcomposer.org.

#### The Old Fashion Way

[](#the-old-fashion-way)

If you do not work with composer, then simply download or clone from its [repository](https://github.com/tonydspaniard/yii-aws) and place it wherever you wish.

After you do that, make sure you **import** on your `main.php` config file, the classes within the `yii-aws/components/*` folder.

#### Configuration

[](#configuration)

The library has a `config` folder where you will find a file named "aws-config" to setup the configuration options for the services. For more information about configuring your services, please have a look at [http://docs.aws.amazon.com/awssdkdocsphp2/latest/gettingstartedguide/sdk-php2-using-the-sdk.html ](http://docs.aws.amazon.com/awssdkdocsphp2/latest/gettingstartedguide/sdk-php2-using-the-sdk.html)

***Note*** do not forget to add your `AWS credentials` there :)

\###How to use it

```
// This import is better to be included in your main
// config file. For those newbies to the framework,
// please recall that this is a path alias, you should
// write exactly where it is
Yii::import('path.to.amazon.components.*');

$s3 = new A2S3();
$response = $s3->listBuckets(); // we are going to list the buckets

// just for the sake of the example
print_r($response);

$result = $s3->putObject(array(
    'Bucket' => 'YOUR-BUCKET,
    'Key'    => 'data.txt',
    'Body'   => 'Hello!'
));

// Fancier options (such as waiters - http://docs.aws.amazon.com/aws-sdk-php-2/guide/latest/feature-waiters.html)
// require calling the S3 getClient() method.  If you don't use the getClient() method, you will get an error
// something like "Command was not found matching WaitUntilObjectExists"
$s3->getClient()->waitUntilObjectExists(array(
    'Bucket' => 'YOUR-BUCKET',
    'Key'    => 'data.txt',
));

```

\###Requirements

- [Fulfill the requirements of the new SDK](http://docs.aws.amazon.com/awssdkdocsphp2/latest/gettingstartedguide/sdk-php2-prep-for-using-the-sdk.html)
- [aws.phar file](http://docs.aws.amazon.com/awssdkdocsphp2/latest/gettingstartedguide/sdk-php2-installing-the-sdk.html#sdk-php2-installing-via-phar) *(already included)*

\###Resources

- [Yii-Aws Github repository](https://github.com/tonydspaniard/yii-aws)
- [Download latest ZIPball](https://github.com/2amigos/yii-aws/archive/master.zip)
- [2amigOS Packagist Profile](https://packagist.org/packages/2amigos/)

> [![2amigOS!](https://camo.githubusercontent.com/9fd8f1de41dc23003bb2a54034cb6658dde5be97092e195a62d629d0d7fa7f6c/687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f35353336333339346437323934356666376564333132353536656330343165302e706e67)](http://www.2amigos.us)
> *web development has never been so fun*
> [www.2amigos.us](http://www.2amigos.us)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

4728d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/566016?v=4)[Antonio Ramirez](/maintainers/tonydspaniard)[@tonydspaniard](https://github.com/tonydspaniard)

---

Top Contributors

[![acorncom](https://avatars.githubusercontent.com/u/802505?v=4)](https://github.com/acorncom "acorncom (1 commits)")[![jordigg](https://avatars.githubusercontent.com/u/404331?v=4)](https://github.com/jordigg "jordigg (1 commits)")[![zmilan](https://avatars.githubusercontent.com/u/302135?v=4)](https://github.com/zmilan "zmilan (1 commits)")

---

Tags

amazonawsyii

### Embed Badge

![Health badge](/badges/2amigos-yii-aws/health.svg)

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

###  Alternatives

[aws/aws-crt-php

AWS Common Runtime for PHP

416300.1M4](/packages/aws-aws-crt-php)[aws/aws-sdk-php-symfony

A Symfony bundle for v3 of the AWS SDK for PHP

36517.7M22](/packages/aws-aws-sdk-php-symfony)[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[async-aws/async-aws-bundle

Configure all your AsyncAws services and enjoy the autowire greatness.

243.6M2](/packages/async-aws-async-aws-bundle)

PHPackages © 2026

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