Skip to content

๐Ÿ˜ PHP-based server-side example for handling S3-related requests (such as GET signature) from Fine Uploader

License

Notifications You must be signed in to change notification settings

wgenial/php-s3-server

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

30 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

PHP S3 Server

This project is a custom version from File Upload S3 PHP Server

  • PHP-based server-side example for handling signature, delete, etc endpoint requests from Fine Uploader S3.

Install

composer require wgenial/php-s3-server

Creation of the file containing the environment variables

cp vendor/wgenial/php-s3-server/.env_sample.php .env.php
vim .env.php

Default configuration

// AWS S3
define('AWS_REGION',''); // us-east-1
define('AWS_VERSION',''); // latest
define('AWS_CLIENT_SECRET_KEY', '');
define('AWS_SERVER_PUBLIC_KEY', '');
define('AWS_SERVER_PRIVATE_KEY', '');
define('S3_BUCKET_NAME', '');
define('S3_HOST_NAME', '');
define('S3_MAX_FILE_SIZE', '');
define('APP_DOMAIN_CORS', ''); // CORS, allowed domain
define('PRESIGNED_URL_EXPIRES_TIMESTAMP',''); // 15 minutes

Loading libraries

require('.env.php');
require('vendor/autoload.php');

Documentation

For a step-by-step getting started with PHP Fine Uploader S3, have a look at http://docs.fineuploader.com/.

About

๐Ÿ˜ PHP-based server-side example for handling S3-related requests (such as GET signature) from Fine Uploader

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%