curl -sS https://getcomposer.org/installer | php
vi composer.json
{
"require": {
"aws/aws-sdk-php": "2.*"
}
}
php composer.phar install
ls vendor/aws/ -1
test.php
<?php
require 'vendor/autoload.php';
use Aws\Ec2\Ec2Client;
$client = new Ec2Client([
'region' => 'ap-northeast-1',
'version' => '2016-09-15'
]);
$result = $client->describeInstances([
'Filters' => [
[
'Name' => 'tag:Name',
'Values' => ['website'],
],
]
]);
print $result['Reservations'][0]['Instances'][0]['PrivateIpAddress'];
yum install php-mbstring.x86_64
php -m | grep mb
rpm -qa | grep openssl
rpm -qa | grep mod_ssl
rpm -qa | grep php-pdo
curl -sS https://getcomposer.org/installer | php
mkdir ~/bin
mv composer.phar ~/bin/composer
which composer
composer
yum install php-xml
composer require aws/aws-sdk-php
wget https://getcomposer.org/download/1.0.0-alpha11/composer.phar
php -d memory_limit=-1 composer.phar require aws/aws-sdk-php
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme