referly / better-aws-php-core
PHP library with Core Better_XXX AWS classes
Installs: 4 157
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 23
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.2
- aws/aws-sdk-php: 2.*
Requires (Dev)
- phpunit/phpunit: 4.8.*
This package is not auto-updated.
Last update: 2025-04-26 22:59:24 UTC
README
Core components used by multiple better aws php packages
Usage
This package includes classes that are used across multiple better_xxx_php packages relating to AWS services.
Classes
Configuration
The configuration object. It is passed to the AWS client to configure it properly for use.
Usually one would call the ConfigurationFactory instead of initializing this class directly.
ConfigurationFactory
Creates Configuration instances. Accepts an array of configuration key value pairs that are appropriately set on the Configuration instance.
$configFactory = new ConfigurationFactory; $configuration = $configFactory->createConfiguration([ 'region' => 'us-east-1', 'credentials' => [ 'key' => getenv('AWS_ACCESS_KEY_ID'), 'secret' => getenv('AWS_SECRET_ACCESS_KEY'), ], ]);