Download the PHP package shopwarelabs/swag-media-s3 without Composer

On this page you can find all versions of the php package shopwarelabs/swag-media-s3. 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 swag-media-s3

Amazon S3 Adapter for Shopware

The Amazon S3 adapter allows you to manage your media files in shopware on an Amazon S3 account. In addition, you can use Amazon CloudFront for delivering your files.

Building a package

Just run ./build.sh.

Install

Download the plugin from the release page and enable it in shopware.

Usage

Update your config.php in your root directory and fill in your own values:

'cdn' => [
    'backend' => 's3',
    'adapters' => [
        's3' => [
            'type' => 's3',
            'mediaUrl' => 'YOUR_S3_OR_CLOUDFRONT_ENDPOINT',
            'key' => 'YOUR_AWS_KEY',
            'secret' => 'YOUR_AWS_SECRET',
            'region' => 'YOUR_S3_REGION',
            'bucket' => 'YOUR_S3_BUCKET_NAME',
            'prefix' => ''
        ]
    ]
]

Using IAM roles in EC2

To make use of your configured IAM roles, omit the array keys `key` and `secret` or leave them empty. The plugin will retrieve the credentials from the EC2 metadata service automatically.

Value explanation

type (required) Adapter type. Do not change.

mediaUrl (required) URL to access your media files. Usually your S3, CloudFront or custom domain endpoint

e.g.: https://your-bucket-name.s3-website.eu-central-1.amazonaws.com/

region (required) The S3 region, e.g. eu-central-1

bucket (required) Your S3 bucket name

key Your Access Key ID

secret Your Secret Access Key

prefix An optional path prefix for your media files

endpoint Sets the S3 endpoint specifically (e.g. non-AWS S3)

metaOptions Allows setting options per file specific to Flysystem S3 Adapter

License

The MIT License (MIT). Please see License File for more information.


All versions of swag-media-s3 with dependencies

PHP Build Version
Package Version
Requires league/flysystem-aws-s3-v3 Version 1.0.13
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 shopwarelabs/swag-media-s3 contains the following files

Loading the files please wait ....