aws-sdk-phpを入れようとします。
composer.json
"require": { "aws/aws-sdk-php": "3.*", }
[vagrant@localhost app]$ php composer.phar install aws/aws-sdk-php [Seld\JsonLint\ParsingException] "./composer.json" does not contain valid JSON Parse error on line 1: "aws/aws-sd --------^ Expected one of: 'EOF', '}', ',', ']'
あれ? JSONが違う
{ "require": { "aws/aws-sdk-php": "3.*" } }
再度インストールします。上手くいきそうです。
[vagrant@localhost app]$ php composer.phar install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 7 installs, 0 updates, 0 removals
– Installing mtdowling/jmespath.php (2.4.0): Loading from cache
– Installing ralouphie/getallheaders (2.0.5): Downloading (100%)
– Installing psr/http-message (1.0.1): Loading from cache
– Installing guzzlehttp/psr7 (1.5.2): Downloading (100%)
– Installing guzzlehttp/promises (v1.3.1): Loading from cache
– Installing guzzlehttp/guzzle (6.3.3): Loading from cache
– Installing aws/aws-sdk-php (3.82.6): Downloading (100%)
guzzlehttp/guzzle suggests installing psr/log (Required for using the Log middleware)
aws/aws-sdk-php suggests installing doctrine/cache (To use the DoctrineCacheAdapter)
aws/aws-sdk-php suggests installing aws/aws-php-sns-message-validator (To validate incoming SNS notifications)
Writing lock file
Generating autoload files