2017 © Pedro Peláez
 

library file-storage-bundle

This bundle provides an additional functionality for work with files

image

php-solution/file-storage-bundle

This bundle provides an additional functionality for work with files

  • Thursday, May 3, 2018
  • by olesav
  • Repository
  • 7 Watchers
  • 0 Stars
  • 59 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 5 % Grown

The README.md

Standard Library

Install

```` bash $ composer require php-solution/file-storage-bundle, (*1)


## Usage 1. Add bundle to your application 2. Create AbstractFile: ````PHP <?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use PhpSolution\Doctrine\Entity\IdGeneratedTrait; use PhpSolution\FileStorageBundle\Entity\AbstractUploadedFile; use PhpSolution\StdLib\FrequentField\Interfaces\IdentifiableInterface; /** * @ORM\Entity() * @ORM\Table(name="file") * @ORM\InheritanceType("SINGLE_TABLE") * @ORM\DiscriminatorColumn(name="type", type="string") */ abstract class AbstractFile extends AbstractUploadedFile implements IdentifiableInterface { use IdGeneratedTrait; }
  1. Create CustomFile. And implement getStorageBucket function
<?php

namespace AppBundle\Entity;

use AppBundle\Entity\AbstractFile;

/**
 * CustomFile
 */
class CustomFile extends AbstractFile
{
    /**
     * @return string
     */
    public function getStorageBucket(): string
    {
        return 'custom';
    }
}

The Versions

03/05 2018

dev-master

9999999-dev

This bundle provides an additional functionality for work with files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oleksandr Savchenko
by Nikita Kalinin

03/05 2018

v0.1.5

0.1.5.0

This bundle provides an additional functionality for work with files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oleksandr Savchenko
by Nikita Kalinin

10/04 2018

v0.1.4

0.1.4.0

This bundle provides an additional functionality for work with files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oleksandr Savchenko
by Nikita Kalinin

10/04 2018

v0.1.3

0.1.3.0

This bundle provides an additional functionality for work with files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oleksandr Savchenko
by Nikita Kalinin

16/01 2018

v0.1.2

0.1.2.0

This bundle provides an additional functionality for work with files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oleksandr Savchenko
by Nikita Kalinin

10/01 2018

v0.1.1

0.1.1.0

This bundle provides an additional functionality for work with files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oleksandr Savchenko
by Nikita Kalinin

26/09 2017

v0.1.0

0.1.0.0

This bundle provides an additional functionality for work with files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oleksandr Savchenko
by Nikita Kalinin