Skip to content

joksnet/aws-sdk-php-symfony

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Service Provider for Symfony

@awsforphp on Twitter Build Status Latest Stable Version Total Downloads

A Symfony bundle for including the AWS SDK for PHP.

Installation

The AWS bundle can be installed via Composer by requiring theaws/aws-sdk-php-symfony package in your project's composer.json:

{
    "require": {
        "aws/aws-sdk-php-symfony": "~1.0"
    }
}

and adding an instance of Aws\Symfony\AwsBundle to your application's kernel:

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        return [
            ...
            new \Aws\Symfony\AwsBundle(),
        ];
    }
    
    ...
}

Configuration

Configuration is handled by the SDK rather than by the bundle, and no validation is performed at compile time. Full documentation of the configuration options available can be read in the SDK Guide.

To use a service for any configuration value, use @ followed by the service name, such as @a_service. This syntax will be converted to a service during container compilation. If you want to use a string literal that begins with @, you will need to escape it by adding another @ sign.

Sample configuration can be found in the tests/fixtures folder for YAML, PHP, and XML.

Usage

This bundle exposes an instance of the Aws\Sdk object as well as instances of each AWS client object as services to your symfony application. The services made available depends on which version of the SDK is installed. To view them, run the following command from your application's root directory:

php app/console container:debug | grep aws

Full documentation on each of the services listed can be found in the SDK API docs.

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 90.2%
  • Makefile 9.8%