2017 © Pedro Peláez
 

library laravel-backtory-storage

Backtory Storage Driver for Laravel framework

image

backtory/laravel-backtory-storage

Backtory Storage Driver for Laravel framework

  • Tuesday, April 24, 2018
  • by amgir
  • Repository
  • 2 Watchers
  • 3 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 37 % Grown

The README.md

Laravel Backtory Storage Driver

A Backtory Storage filesystem for Laravel., (*1)

This package is a wrapper bridging backtory/storage-php into Laravel as an available storage disk., (*2)

Installation

composer require backtory/laravel-backtory-storage

Register the service provider in app.php (only in versions < 5.5), (*3)

'providers' => [
    // ...
    Backtory\Storage\Laravel\BacktoryStorageServiceProvider::class,
]

Add a new disk to your filesystems.php config, (*4)

'backtory' => [
    'driver' => 'backtory',
    'X-Backtory-Authentication-Id' => '',
    'X-Backtory-Authentication-Key' => '',
    'X-Backtory-Storage-Id' => '',
    'domain' => '' // [optional]
],

Usage

$disk = Storage::disk('backtory');

// create a file
$disk->put('avatars/file.jpg', $fileContents);

// check if a file exists
$exists = $disk->exists('file.jpg');

// get file modification date
$time = $disk->lastModified('file1.jpg');

// copy a file
$disk->copy('old/file1.jpg', 'newLocaltion');

// move a file
$disk->move('old/file1.jpg', 'newLocation');

// get url to file
$url = $disk->url('folder/my_file.txt');

// See https://laravel.com/docs/5.5/filesystem for full list of available functionality

The Versions

24/04 2018

dev-master

9999999-dev

Backtory Storage Driver for Laravel framework

  Sources   Download

MIT

The Requires

 

laravel cloud storage cloud-storage backtory backtory-sdk backtory-storage

24/04 2018

v1.0.4

1.0.4.0

Backtory Storage Driver for Laravel framework

  Sources   Download

MIT

The Requires

 

laravel cloud storage cloud-storage backtory backtory-sdk backtory-storage

21/04 2018

v1.0.3

1.0.3.0

Backtory Storage Driver for Laravel framework

  Sources   Download

MIT

The Requires

 

laravel cloud storage cloud-storage backtory backtory-sdk backtory-storage

21/04 2018

v1.0.2

1.0.2.0

Backtory Storage Driver for Laravel framework

  Sources   Download

MIT

The Requires

 

laravel cloud storage cloud-storage backtory backtory-sdk backtory-storage

21/04 2018

v1.0.1

1.0.1.0

Backtory Storage Driver for Laravel framework

  Sources   Download

MIT

The Requires

 

laravel cloud storage cloud-storage backtory backtory-sdk backtory-storage

23/09 2017

v1.0.0

1.0.0.0

Backtory Storage Driver for Laravel framework

  Sources   Download

MIT

The Requires

 

laravel cloud storage cloud-storage backtory backtory-sdk backtory-storage