AWS SDK for PHP 落とした配下の場合
<?php
require'./vendor/autoload.php';
use Aws\Sns\SnsClient;
$config = array(
'key' => '***',
'secret' => '***',
'region' => 'ap-northeast-1'
);
$topic = 'arn***';
$client = SnsClient::factory($config);
$responce = null;
$messageId = null;
try
{
$client->publish(array('TopicArn'=>$topic, 'Subject'=>'Test', 'Message'=>'Test'));
}
catch (Exception $e)
{
print_r($e->getMessage());
}
?>


