2017 © Pedro Peláez
 

project filesystembundle

Use different Filesystems

image

appsco/filesystembundle

Use different Filesystems

  • Thursday, October 9, 2014
  • by i3or1s
  • Repository
  • 5 Watchers
  • 0 Stars
  • 86 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

FilesystemBundle

It is used to browse, create, read and delete files and folders on different filesystems. Rackspace OpenCloud and Local file systems are supported., (*1)

Prerequisites

This version of bundle requires Symfony ~2.2 and Rackspace OpenCloud v1.10.0, (*2)

Installation

Step 1: Download appsco/filesystembundle with composer

Add appsco/filesystembundle to your composer.json requirements:, (*3)

``` json { "require": { "appsco/filesystembundle": "dev-master" } }, (*4)


Check bundle [releases](https://github.com/Appsco/FilesystemBundle/releases) for the latest stable release. Step 2: Load the bundle to kernel --------------------------------- Add Add AppscoFilesystemBundle to the kernel of your project: ``` php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Appsco\FilesystemBundle\AppscoFilesystemBundle(), ); }

Now you are ready to go. With this setup you can use Local filesystem., (*5)

Further Setup - Rackspace OpenCloud

Firs you need to acquire username and apiKey to use Cloud Files. When you acquire data you can continue on further setup. By default configuration is set to LON region. If you are using the same then bare minimum for configuration is ``` yml appsco_filesystem: rackspace: client: username: %username% apikey: %apikey%, (*6)


Here is the full configuration (config.json) for rackspace open cloud. ``` yml appsco_filesystem: rackspace: client: username: %username% apikey: %apikey% url: %url% objectstore: type: ~ name: ~ region: LON urlType: ~

Using The bundle

To use the bundle call the service appsco_ket_filesystem.filesystem then retrieve the Volume you would like to use along with the adapter that is used to manipulate the filesystem., (*7)

``` php // tmp folder must be create so that file system can mount it for further use $localFs = $this->get('appsco_filesystem.filesystem')->getVolume('/tmp', 'local');, (*8)

// Fere volume represents the container that you would like to use $rackspaceFs = $this->get('appsco_filesystem.filesystem')->getVolume('container', 'rackspace');, (*9)

```, (*10)

The Versions

09/10 2014

dev-master

9999999-dev

Use different Filesystems

  Sources   Download

MIT

The Requires

 

The Development Requires

25/09 2014

1.0.0-rc.3

1.0.0.0-RC3

Use different Filesystems

  Sources   Download

MIT

The Requires

 

The Development Requires

06/08 2014

1.0.0-rc.1

1.0.0.0-RC1

Use different Filesystems

  Sources   Download

MIT

The Requires

 

06/08 2014

1.0.0-rc.2

1.0.0.0-RC2

Use different Filesystems

  Sources   Download

MIT

The Requires