2017 © Pedro Peláez
 

symfony-bundle file-distribution-bundle

File distribution Symfony2 bundle

image

aboutcoders/file-distribution-bundle

File distribution Symfony2 bundle

  • Thursday, August 4, 2016
  • by aboutcoders
  • Repository
  • 3 Watchers
  • 1 Stars
  • 2,767 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 4 % Grown

The README.md

AbcFileDistributionBundle

The AbcFileDistributionBundle provides a database-backed file management system for Symfony. It gives you a flexible framework for storing and transferring files between various locations (Local, FTP, CDN). It is build on top of AbcFileDistribution library., (*1)

Build Status: Build Status, (*2)

Overview

This bundle provides the following features:, (*3)

  • Filesystem definitions can be stored via Doctrine ORM, MongoDB/CouchDB ODM or Propel
  • Filesystem definitions can be defined in configuration
  • Unit tested

We appreciate if you decide to use this bundle and we appreciate your feedback, suggestions or contributions., (*4)

Installation

Add the AbcFileDistributionBundle to your composer.json file, (*5)

{
    "require": {
        "aboutcoders/file-distribution-bundle": "~1.1"
    }
}

Then include the bundle in the AppKernel.php class, (*6)

public function registerBundles()
{
    $bundles = array(
        // ...
        new Abc\Bundle\FileDistributionBundle\AbcFileDistributionBundle(),
    );

    return $bundles;
}

Configuration

Configure doctrine orm, (*7)

At the current point only doctrine is supported as ORM. However by changing the configuration you can use a different persistence layer., (*8)

abc_file_distribution:
    db_driver: orm
    filesystems:
        assets:
            type: LOCAL
            path: "%data_dir%/assets"
            options:
                create: true

Update the database schema, (*9)

Finally you need to update your database schema in order to create the required tables., (*10)

php app/console doctrine:schema:update --force

Further Documentation

ToDo:

  • Update docs

About

AbcFileDistributionBundle is a AboutCoders initiative., (*11)

The Versions

04/08 2016