Download the PHP package firebrandhq/s3fileupload without Composer

On this page you can find all versions of the php package firebrandhq/s3fileupload. 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 s3fileupload

Firebrand SilverStripe S3FileUpload

This SilverStripe plugin allows file to be uploaded directly to S3 and track as SilverStripe DataObjects.

Requirements

Installation

Install the module through composer:

Setting up your S3 bucket

To be able to do a direct up load to S3, your bucket must have CORS Configuration. To Set up your CORS configuration:

  1. Log into S3 and access your bucket.
  2. Select Properties to view your bucket properties.
  3. Under Permission, select Edit CORS Configuration.
  4. In the pop up, input your CORS configuration in XML format.

Sample CORS configuration

Note that you'll need a separate CORSRule entry for each domain from which you plan to upload files.

You'll also need a CORSRule entry for each protocol.

Getting an Access Key and a Secret

You'll need to generate an AWS Access Key ID and Secret Access Key to allow SilverStripe to communicate with S3.

For security reasons, it is STRONGLY RECOMMENDED to create a new user with limited access. This will minimise the damage should your Access Key and/or Secret ever be compromised.

Sample Policy for your AWS user

Configuring SilverStripe

You can use a YML config file to tell SilverStripe how to access your bucket.

Create a s3.yml file in mysite/_config.

You don't have to provide the Bucket or Region in YML file if you don't want to. Those can be manually set on your S3FileUploadField.

Adding an S3File to a SilverStripe DataObject/Page

Reference the file in your SS Template


All versions of s3fileupload with dependencies

PHP Build Version
Package Version
Requires silverstripe/framework Version >=3.1
composer/installers Version *
aws/aws-sdk-php Version 3.*
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 firebrandhq/s3fileupload contains the following files

Loading the files please wait ....