Aws-sdk-php 설치

aws-sdk-php 설치

1 사전작업[ | ]

2 composer로 설치[ | ]

root@zetawiki:~/project1# composer require aws/aws-sdk-php
Using version ^3.19 for aws/aws-sdk-php
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing mtdowling/jmespath.php (2.3.0)
    Loading from cache

  - Installing guzzlehttp/promises (1.2.0)
    Loading from cache

  - Installing psr/http-message (1.0.1)
    Loading from cache

  - Installing guzzlehttp/psr7 (1.3.1)
    Loading from cache

  - Installing guzzlehttp/guzzle (6.2.1)
    Loading from cache

  - Installing aws/aws-sdk-php (3.19.12)
    Loading from cache

aws/aws-sdk-php suggests installing aws/aws-php-sns-message-validator (To validate incoming SNS notifications)
aws/aws-sdk-php suggests installing doctrine/cache (To use the DoctrineCacheAdapter)
Writing lock file
Generating autoload files

3 테스트[ | ]

  • aws-sdk-php_test.php 파일 작성
root@zetawiki:~/project1# vi aws-sdk-php_test.php
<?php
require 'vendor/autoload.php';
$s3 = new Aws\S3\S3Client(['version'=>'latest','region'=>'us-east-1']);
root@zetawiki:~/project1# php aws-sdk-php_test.php 
root@zetawiki:~/project1#

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}