alaaelgndy/s3-fucker

This is a s3 downloader package

dev-master 2020-04-27 08:37 UTC

This package is auto-updated.

Last update: 2024-09-27 18:28:26 UTC


README

Installation

You can install it via composer:

composer require alaaelgndy/s3-fucker

and the package will automatically register itself.

Then publish config files

php artisan vendor:publish --provider="Elgndy\S3Fucker\S3FuckerServiceProvider"

The content of the published config file:

<?php

return [
    'folder_name' => 'course/', // that means you will find the dowloads in storage/app/downloads/course
    'urls' => [
      // urls to download
    ],
];

Add your links in urls to be downloaded.

Usage

Run the s3-fucker:

php artisan elgndy:s3-fucker

Note: it can be used for any public files even if not on s3.