PHP code example of obtao / amazon-webservices-bundle
1. Go to this page and download the library: Download obtao/amazon-webservices-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
obtao / amazon-webservices-bundle example snippets
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Obtao\AmazonWebServicesBundle\ObtaoAmazonWebServicesBundle(),
// ...
);
}
// in a controller
public function someAction()
{
// get the Simple Queue Service
$awsSQS = $this->container->get('obtao.aws_sqs');
// do something
}