webfactory / aws-sdk2-bundle
A simple Symfony (2.x, 3.x and beyond) bundle for including the AWS SDK v2.x
Requires
- php: >=5.5
- aws/aws-sdk-php: 2.*
- symfony/config: ~2.3|~3.0|~4.0
- symfony/dependency-injection: ~2.3|~3.0|~4.0
- symfony/http-kernel: ~2.3|~3.0|~4.0
Requires (Dev)
- phpunit/phpunit: ^4.8.35
This package is auto-updated.
Last update: 2024-10-10 22:49:04 UTC
README
Provides a simple Symfony Bundle to wrap the AWS PHP SDK v2.x.
This is a fork of the original platinumpixs/aws-symfony2-bundle
that we created to also allow the use of Symfony 3.x and above. Additionally, we've tried to limit
Composer dependencies to something more specific than using the whole symfony/symfony
stack.
Usage
The code calls \Aws\Common\Aws::factory(), which setups the ability to call all the services provided by the library.
There is a base class always setup under:
$this->get('webfactory_aws_sdk2.default');
This will call the factory method with blank config values
To provide custom setup for access, secret keys. Add a config options in your config.yml, like:
webfactory_aws_sdk2: base: region: us-east-1 key: my-access-key secret: my-secret-key
Then to access this setup call:
$this->get('webfactory_aws_sdk2.base');