2017 © Pedro Peláez
 

library file-repository-bundle

Provides an interface to connect with `wolnosciowiec/image-repository` server

image

wolnosciowiec/file-repository-bundle

Provides an interface to connect with `wolnosciowiec/image-repository` server

  • Thursday, June 21, 2018
  • by blackandred
  • Repository
  • 2 Watchers
  • 2 Stars
  • 65 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 150 % Grown

The README.md

FileRepositoryBundle

Build Status Coverage Status, (*1)

A Symfony bundle that provides a files repository interface with error handling. Files repository allows to store static files on a cheapest storage (e.g. from $1/mo). The file repository responsibility is to redistribute the files, handle recognition and validation, de-duplication, so the main application could take only the minimum of sending files, and removing them if necessary., (*2)

Requirements:

  • Symfony

Setup

  1. Register the bundle
new Wolnosciowiec\FileRepositoryBundle\FileRepositoryBundle(),
  1. In configuration step you need to put your server address, secret token and cache class name

Configuration

    file_repository:
        cache_class: "Doctrine\\Common\\Cache\\VoidCache"
        url: "https://image-repository-test.herokuapp.com"
        token: "api-key-here-for-external-remote-control"

Example usage

// upload an image to the file repository
// the repository handles itself de-duplication, so we don't need to take care of it
// in the application
$this->uploader->uploadFromUrl($event->getBackgroundImage());

The Versions

21/06 2018

dev-master

9999999-dev

Provides an interface to connect with `wolnosciowiec/image-repository` server

  Sources   Download

LGPLv3 LGPL-3.0-or-later

The Requires

 

The Development Requires

13/02 2018

v2.1.0.1b

2.1.0.1-beta

Provides an interface to connect with `wolnosciowiec/image-repository` server

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

13/02 2018
13/02 2018

v2.0.0.1b

2.0.0.1-beta

Provides an interface to connect with `wolnosciowiec/image-repository` server

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires