snnick/laravel-file-downloader 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

snnick/laravel-file-downloader

Composer 安装命令:

composer require snnick/laravel-file-downloader

包简介

Laravel package for file download

README 文档

README

Run the following command to install the latest applicable version of the package:

composer require snnick/laravel-file-downloader

After installation, you can publish the package configuration using the vendor:publish command. This command will publish the file-downloader.php configuration file to your config directory:

php artisan vendor:publish --provider="Snnick\LaravelFileDownloader\LaravelFileDownloaderServiceProvider"

You may configure the file path in your .env file:

FILE_DOWNLOAD_PATH=app/public/files

Download

You can download files:

$strategy = new PdfDownloader(
            'pdf.invoices',
            'invoices',
            ['calculations' => new CalculationsDTO($calculations)]
        );
$service = new FileDownloaderService($strategy);
$filepath = $service->download();

统计信息

  • 总下载量: 47
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-13