aboutcoders/file-distribution-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aboutcoders/file-distribution-bundle

最新稳定版本:1.1.11

Composer 安装命令:

composer require aboutcoders/file-distribution-bundle

包简介

File distribution Symfony2 bundle

README 文档

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.

Build Status: Build Status

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.

统计信息

  • 总下载量: 10.71k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-02