Coder Social home page Coder Social logo

githubhubus / opensoftstoragebundle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opensoft/opensoftstoragebundle

0.0 2.0 0.0 24.99 MB

A bundle for tracking stored files across local and cloud based storages

License: MIT License

PHP 29.90% JavaScript 59.13% HTML 10.97%

opensoftstoragebundle's Introduction

Opensoft Storage Bundle

Build Status Scrutinizer Code Quality

Rationale

Many solutions for file storage already exist within the Symfony Bundle ecosystem, yet we found them all lacking some combination of requirements that we would need for our use cases. As part of our core business, we store and process many different kinds of files for customers involved in printing. Due to this requirement, we needed a system that accomplished the following considerations:

  1. A solid abstration layer for writing files to storage locations. Those storage locations should be either local or cloud based.
  2. Database level tracking for all our files. We should be able to easily query how many, what type, their sizes, which storage location they were stored in.
  3. Strong FK relationships between normal database objects and these stored files. This allows us to know exact how each file is linked to other relationships in the database, allowing for cascade related behaviors associated with those files. It also helps us prevent orphaned storage files that aren't linked properly to anything.
  4. A storage file write, deletion and movement policy between different storage locations over time.
  5. A "permanent url" concept that can resolve URL's to the stored files, no matter which storage system they exist on.

To accomplish this goal, we've designed the OpensoftStorageBundle to handle these use cases for us. It combines tools from knplabs/gaufrette, Doctrine entites for Storages, StorageFiles, and StoragePolicies, some administrative screens to create, update, review, and look at stored files, and some doctrine listeners

Your application then has access to a storage_manager service which handles most of these use cases for storing new files into the storage engine.

Documentation

Documentation for the bundle can be found in Resources/doc

License

This bundle is licensed under the permissive MIT license. We welcome pull requests to improve it!

opensoftstoragebundle's People

Contributors

gounlaf avatar ikhaldeev avatar rbunce avatar richardfullmer avatar scottdriscoll avatar scrutinizer-auto-fixer avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.