Amazon PHP SDK 설치

AWS SDK 란?

Amazon Web Service 를 프로그래밍적으로 제어할 수 있게 Amazon에서 제공하는 개발 도구이다.
자세한 내용은 https://aws.amazon.com/ko/tools/ 을 참고 하도록 합니다.

개요

  • CentOS 6 을 기준으로 설치 하는 방법에 대해 알아보겠다.
  • 사전에 미리 개발환경(LAMP)은 구성되어 있다는 가정 하에 본 내용을 진행하겠습니다.
  • LAMP 환경 구성은 [[apache + php + mysql 설치]] 을 참고!

AWS PHP SDK 다운로드

# wget https://github.com/aws/aws-sdk-php/archive/master.zip
# unzip master.zip
# cd aws-sdk-php-master

위와 같이 SDK를 다운 받고 압축을 해제 합니다.
압축 해제한 디렉토리로 진입해 설치를 진행합니다.

AWS PHP SDK 설치

  • php 의존성 관리자 composer설치
# curl -sS https://getcomposer.org/installer | php

아래와 같은 화면이 출력되면 성공!

#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Composer successfully installed to: /home/tb.kwon/public_html/aws-sdk-php-master/composer.phar
Use it: php composer.phar
  • composer.json 파일에 기술된 SDK에 필요한 외부 라이브러리 설치
# php composer.phar install

아래와 같은 화면이 출력 되면 설치 완료 입니다.

#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Composer successfully installed to: /home/tb.kwon/public_html/aws-sdk-php-master/composer.phar
Use it: php composer.phar
[tb.kwon@localhost aws-sdk-php-master]$ /usr/local/php/bin/php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing psr/log (1.0.0)
    Downloading: 100%
  - Installing doctrine/cache (v1.3.0)
    Downloading: 100%
  - Installing symfony/event-dispatcher (v2.4.1)
    Downloading: 100%
  - Installing guzzle/guzzle (v3.8.0)
    Downloading: 100%
  - Installing monolog/monolog (1.4.1)
    Downloading: 100%
  - Installing symfony/yaml (v2.4.1)
    Downloading: 100%
  - Installing phpunit/php-text-template (1.1.4)
    Downloading: 100%
  - Installing phpunit/phpunit-mock-objects (1.2.3)
    Downloading: 100%
  - Installing phpunit/php-timer (1.0.5)
    Downloading: 100%
  - Installing phpunit/php-token-stream (1.2.1)
    Downloading: 100%
  - Installing phpunit/php-file-iterator (1.3.4)
    Downloading: 100%
  - Installing phpunit/php-code-coverage (1.2.13)
    Downloading: 100%
  - Installing phpunit/phpunit (3.7.28)
    Downloading: 100%
  - Installing symfony/class-loader (v2.4.1)
    Downloading: 100%
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
monolog/monolog suggests installing mlehner/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.0.5)
phpunit/phpunit suggests installing phpunit/php-invoker (>=1.1.0,<1.2.0)
Writing lock file
Generating autoload files

One thought on “Amazon PHP SDK 설치

  1. Not many blogs that contain such consistently readable and informative content as is on offer on this one, you deserve the time it has taken to write my admiration at your hard work. Many Many Thanks.

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다