承接 flowan/laravel-filesystem-http 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

flowan/laravel-filesystem-http

最新稳定版本:v0.3.0

Composer 安装命令:

composer require flowan/laravel-filesystem-http

包简介

Filesystem HTTP Adapter for Laravel

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package provides a filesystem adapter for Laravel that allows you to use an HTTP API as a filesystem.

Installation

You can install the package via composer:

composer require flowan/laravel-filesystem-http

Usage

Put the following in your config/filesystems.php file:

<?php

return [
    'disks' => [
        // ...
        
        'warehouse' => [
            'driver' => 'http',
            'token' => env('WAREHOUSE_TOKEN'),
            'url' => env('WAREHOUSE_URL'),
            'public_url' => env('WAREHOUSE_PUBLIC_URL', env('WAREHOUSE_URL')),
            'bucket' => env('WAREHOUSE_BUCKET'),
            'include_bucket_prefix_in_url' => env('WAREHOUSE_INCLUDE_BUCKET_PREFIX_IN_URL', true),
            'include_bucket_in_url' => env('WAREHOUSE_INCLUDE_BUCKET_IN_URL', true),
            'throw' => false,
        ],
        
    ],
];

And add the following to your .env file:

WAREHOUSE_TOKEN=your-token
WAREHOUSE_URL=https://cdn.example.com

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Todo

  • Implement readStream and writeStream methods.
  • Implement setVisibility method.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-31