Priti's Technical Corner

December 6, 2013

Setup AWS S3 sdk on WAMP server

Today I explored how to install aws sdk on wampserver locally via composer.

1. Create project directory in your document root. In my case it’s “awstest”.
2. create a new file insider “awstest” and save as “composer.json”. Add following content
“require”: {
“aws/aws-sdk-php”: “2.*”

3. Go to c:\wamp\www\awstest> composer install

On first attempt it got failed as below

C:\wamp\www\awstest>composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
– aws/aws-sdk-php 2.4.0 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzz
le/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4].

Hence, I enabled the curl extension at c:/wamp/bin/php/php5.4.16/php.ini

C:\wamp\www\awstest>composer install

Warning: PHP Startup: Unable to load dynamic library ‘c:/wamp/bin/php/php5.4.16/
ext/php_zip.dll’ – The specified module could not be found.
in Unknown on line 0
Loading composer repositories with package information
Installing dependencies (including require-dev)
– Installing symfony/event-dispatcher (v2.4.0)
Downloading: 100%

– Installing guzzle/guzzle (v3.7.4)
Downloading: 100%

– Installing aws/aws-sdk-php (2.4.11)
Downloading: 100%

symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
aws/aws-sdk-php suggests installing doctrine/cache (Adds support for caching of
credentials and responses)
aws/aws-sdk-php suggests installing ext-apc (Allows service description opcode c
aching, request and response caching, and credentials caching)
aws/aws-sdk-php suggests installing monolog/monolog (Adds support for logging HT
TP requests and responses)
aws/aws-sdk-php suggests installing symfony/yaml (Eases the ability to write man
ifests for creating jobs in AWS Import/Export)
Writing lock file
Generating autoload files

After successful installation you will have


When we are using composer to install the SDK please add following line and start working with S3  api call
require ‘vendor/autoload.php’

let’s get started with S3 !!


Create a free website or blog at

%d bloggers like this: