Download the PHP package spacecatninja/imager-x-aws-storage-driver without Composer

On this page you can find all versions of the php package spacecatninja/imager-x-aws-storage-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package imager-x-aws-storage-driver

Imager X Storage Driver for AWS (S3)

External storage driver for Imager X that uploads transformed images to Amazon S3. Supports CloudFront cache invalidation and credential-less authentication for ECS/EC2 environments.

Requirements

Installation

Configuration

Add an aws key to storageConfig in your config/imager-x.php:

Point imagerUrl at your bucket (or CloudFront distribution):

Always flush your Imager transforms cache when adding or removing external storages, as existing cached transforms will not be re-uploaded.

Configuration options

Option Default Description
accessKey '' AWS access key ID. Supports environment variables (e.g. $AWS_ACCESS_KEY).
secretAccessKey '' AWS secret access key. Supports environment variables.
region '' AWS region (e.g. eu-west-1).
bucket '' S3 bucket name. Supports environment variables.
folder '' Folder prefix within the bucket.
storageType 'standard' S3 storage class. Accepts standard, rrs (Reduced Redundancy), or glacier.
requestHeaders [] Additional headers merged into the S3 putObject request (e.g. Content-Encoding).
disableACL false Set to true to skip setting an ACL on upload (required for buckets with ACLs disabled).
public true When ACL is enabled, sets objects to public-read. Set to false for private.
cloudfrontInvalidateEnabled false Send a CloudFront invalidation request after each upload.
cloudfrontDistributionId '' CloudFront distribution ID to invalidate.
useCredentialLessAuth false Skip access key credentials and rely on IAM roles instead (web identity, ECS, or EC2 instance profile).

Credential-less authentication

When running on AWS infrastructure (ECS, EC2, or with web identity federation), you can omit accessKey and secretAccessKey and let the SDK resolve credentials from the environment automatically:

The driver checks for AWS_WEB_IDENTITY_TOKEN_FILE/AWS_ROLE_ARN (web identity), AWS_CONTAINER_CREDENTIALS_RELATIVE_URI (ECS), and falls back to the EC2 instance metadata service.

Price, license and support

The plugin is released under the MIT license. It requires Imager X Pro, which is a commercial plugin available in the Craft plugin store.


All versions of imager-x-aws-storage-driver with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
craftcms/cms Version ^5.0.0
spacecatninja/imager-x Version ^6.0.0-beta
aws/aws-sdk-php Version ^3.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package spacecatninja/imager-x-aws-storage-driver contains the following files

Loading the files please wait ...