PHPackages                             ali1/cakephp-amazon-aws-sdk - 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. [API Development](/categories/api)
4. /
5. ali1/cakephp-amazon-aws-sdk

AbandonedArchivedCakephp-plugin[API Development](/categories/api)

ali1/cakephp-amazon-aws-sdk
===========================

A CakePHP component to use the Amazon SDK for PHP

87.0k3[2 issues](https://github.com/Ali1/cakephp-amazon-aws-sdk/issues)PHP

Since Aug 8Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Ali1/cakephp-amazon-aws-sdk)[ Packagist](https://packagist.org/packages/ali1/cakephp-amazon-aws-sdk)[ RSS](/packages/ali1-cakephp-amazon-aws-sdk/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Amazon SDK version 2 plugin for CakePHP 2.0+
============================================

[](#amazon-sdk-version-2-plugin-for-cakephp-20)

This plugin is a (*very*) thin veil over Amazon's [AWS SDK for PHP](https://github.com/aws/aws-sdk-php) for use in CakePHP controllers. Forked from many others but upgraded to support new sdk 2 and removed sdk Vendor from the plugin for a more composer-compatible installation.

Warning: the new sdk is very different. Old code may no longer work.

Installation
------------

[](#installation)

- Add to composer, this will also install the Amazon SDK for PHP as a dependency

    ```
      "ali1/cakephp-amazon-aws-sdk": "dev-master"

    ```
- Add the component to a controller

    ```
      public $components = array('Amazonsdk.Amazon');

    ```

Configuration
-------------

[](#configuration)

You must add configuration to bootstrap.php.

```
	Configure::write('Amazonsdk.credentials', array(
		'key' => 'YOUR KEY',
		'secret' => 'YOUR SECRET',
		'region' => 'us-east-1'
	));

```

Don't forget to replace the placeholder text with your actual keys!

Usage
-----

[](#usage)

At this point you have access to all of the methods available from the AWS SDK. The following is a small list. The full list can be found at ().

- Amazon CloudFront
- Amazon CloudWatch
- Amazon DynamoDB
- Amazon ElastiCache
- Amazon Elastic Compute Cloud (Amazon EC2)
- Amazon Elastic MapReduce
- Amazon Relational Database Service (Amazon RDS)
- Amazon Simple Notification Service (Amazon SNS)
- Amazon Simple Queue Service (Amazon SQS)
- Amazon Simple Storage Service (Amazon S3)
- Amazon Simple Workflow Service
- Amazon SimpleDB
- Amazon Simple Email Service
- Amazon Virtual Private Cloud (Amazon VPC)
- Auto Scaling
- AWS CloudFormation
- AWS Elastic Beanstalk
- AWS Import/Export
- AWS Identity and Access Management
- Elastic Load Balancing

Not all of the methods for each service has been thoroughly tested. If you run into any issues, feel free to open an issue here, on the repository.

The specific objects for each service can be accessed through the component as a member of it. Here are some examples:

- `$this->Amazon->Sns`
- `$this->Amazon->CloudFront`
- `$this->Amazon->CloudWatch`
- `$this->Amazon->Ec2`
- `$this->Amazon->ElasticBeanstalk`
- `$this->Amazon->Sqs`

Example
-------

[](#example)

- Add a job to the SQS queue

    ```
      $this->Amazon->Sqs->sendMessage(array(
      	'QueueUrl' => Configure::read('SQS.queueUrl'),
      	'MessageBody' => json_encode(array('jobtype'=>'SendEmails', 'data'=>array('id' => 5)))
      ));

    ```
- From a model or shell

    ```
      if (!isset($this->Amazon)) {
      	App::import('Component', 'Amazonsdk.Amazon');
      	$collection = new ComponentCollection();
      	$Controller =& new Controller();
      	$this->Amazon = new AmazonComponent($collection);
      	$this->Amazon->initialize($Controller);
      }
      $this->Amazon->Sqs->sendMessage(array(
      	'QueueUrl' => Configure::read('SQS.queueUrl'),
      	'MessageBody' => json_encode(array('jobtype'=>'SendEmails', 'data'=>array('id' => 5)))
      ));

    ```

Notes
-----

[](#notes)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/637933d952b260bfeeaf8ec8fda92a5acf7eda16df6044fe840f782058a4c7ae?d=identicon)[Ali1](/maintainers/Ali1)

---

Top Contributors

[![Ali1](https://avatars.githubusercontent.com/u/218558?v=4)](https://github.com/Ali1 "Ali1 (10 commits)")[![joebeeson](https://avatars.githubusercontent.com/u/25078?v=4)](https://github.com/joebeeson "joebeeson (6 commits)")[![mcallisto](https://avatars.githubusercontent.com/u/122379?v=4)](https://github.com/mcallisto "mcallisto (4 commits)")[![pekeq](https://avatars.githubusercontent.com/u/65699?v=4)](https://github.com/pekeq "pekeq (4 commits)")[![fukayatsu](https://avatars.githubusercontent.com/u/1041857?v=4)](https://github.com/fukayatsu "fukayatsu (1 commits)")[![paul-wagner](https://avatars.githubusercontent.com/u/1191468?v=4)](https://github.com/paul-wagner "paul-wagner (1 commits)")

### Embed Badge

![Health badge](/badges/ali1-cakephp-amazon-aws-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/ali1-cakephp-amazon-aws-sdk/health.svg)](https://phpackages.com/packages/ali1-cakephp-amazon-aws-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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