- aws-sdk-php 설치
1 사전작업[ | ]
2 composer로 설치[ | ]
Console
Copy
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 파일 작성
Console
Copy
root@zetawiki:~/project1# vi aws-sdk-php_test.php
PHP
Copy
<?php
require 'vendor/autoload.php';
$s3 = new Aws\S3\S3Client(['version'=>'latest','region'=>'us-east-1']);
Console
Copy
root@zetawiki:~/project1# php aws-sdk-php_test.php
root@zetawiki:~/project1#
4 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.