Skip to content

zestic/secure-downloads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Secure Download Middleware

Set your route

    $app->get('/download', [
        Zestic\Download\Middleware\SecureDownloadMiddleware::class,
    ]);

Configure

Add to your config/config.php file

$aggregator = new ConfigAggregator([
    \Zestic\Download\ConfigProvider::class,
];

Configure flysystem

You can set up the configuration in the .env file In .env

FILES_SECUREDOWNLOADS_URL=https://amb-customer-signatures.s3.us-east-2.amazonaws.com

FLYSYSTEM_SECUREDOWNLOADS_ADAPTER=AwsS3V3
FLYSYSTEM_SECUREDOWNLOADS_BUCKET=bucket
FLYSYSTEM_SECUREDOWNLOADS_ENDPOINT=https://us-east-1.aws.com
FLYSYSTEM_SECUREDOWNLOADS_KEY=
FLYSYSTEM_SECUREDOWNLOADS_REGION=us-east-1
FLYSYSTEM_SECUREDOWNLOADS_SECRET=
FLYSYSTEM_SECUREDOWNLOADS_VISIBILITY=public

Run MySQL mutation

usage

save ( file, permissions)

download (file) checks permissions

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages