aboutcoders / file-distribution-bundle
File distribution Symfony2 bundle
Installs: 10 612
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- aboutcoders/file-distribution: ~1.0
- doctrine/doctrine-fixtures-bundle: ~2.0
- gedmo/doctrine-extensions: ~2.0
- symfony/symfony: ~2.6|~3.0
Requires (Dev)
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3
- phpunit/phpunit: ~4
- symfony/monolog-bundle: ~2
README
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.
Overview
This bundle provides the following features:
- 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.
Installation
Add the AbcFileDistributionBundle to your composer.json
file
{ "require": { "aboutcoders/file-distribution-bundle": "~1.1" } }
Then include the bundle in the AppKernel.php class
public function registerBundles() { $bundles = array( // ... new Abc\Bundle\FileDistributionBundle\AbcFileDistributionBundle(), ); return $bundles; }
Configuration
Configure doctrine orm
At the current point only doctrine is supported as ORM. However by changing the configuration you can use a different persistence layer.
abc_file_distribution: db_driver: orm filesystems: assets: type: LOCAL path: "%data_dir%/assets" options: create: true
Update the database schema
Finally you need to update your database schema in order to create the required tables.
php app/console doctrine:schema:update --force
Further Documentation
ToDo:
- Update docs
About
AbcFileDistributionBundle is a AboutCoders initiative.