2017 © Pedro Peláez
 

library base64-encoded-file

Provides handling base64 encoded files, and the integration of symfony/form

image

hshn/base64-encoded-file

Provides handling base64 encoded files, and the integration of symfony/form

  • Sunday, April 8, 2018
  • by hshn
  • Repository
  • 1 Watchers
  • 14 Stars
  • 29,667 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 2 Open issues
  • 6 Versions
  • 19 % Grown

The README.md

base64-encoded-file

Provides handling for base64 encoded files, (*1)

tests Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Installation

$ php composer.phar require hshn/base64-encoded-file

Usage

<?php

use Hshn\Base64EncodedFile\HttpFoundation\File\Base64EncodedFile;

$file = new Base64EncodedFile(base64_encode($data));

$file->getPathname(); // "/path/to/file"
$file instanceof Symfony\Component\HttpFoundation\File\File; // true

Integration for symfony/form

<?php

use Hshn\Base64EncodedFile\Form\Type\Base64EncodedFileType;

$form = $formBuilder
    ->add('file', Base64EncodedFileType::class)
    ->getForm();

Integration in a Symfony project (manual install)

Use this bundle in a Symfony project requires the following libraries:, (*3)

  • symfony/dependency-injection
  • symfony/http-kernel
  • symfony/config

Then, you can load the bundle through the following configuration:, (*4)

<?php

// bundles.php

Hshn\Base64EncodedFile\Bridge\Symfony\Bundle\Base64EncodedFileBundle::class => ['all' => true],

The Versions

08/04 2018

dev-master

9999999-dev

Provides handling base64 encoded files, and the integration of symfony/form

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shota Hoshino

13/02 2018

dev-sf4-support

dev-sf4-support

Provides handling base64 encoded files, and the integration of symfony/form

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shota Hoshino

17/02 2016

1.x-dev

1.9999999.9999999.9999999-dev

Provides handling base64 encoded files, and the integration of symfony/form

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shota Hoshino

17/02 2016

v1.2.0

1.2.0.0

Provides handling base64 encoded files, and the integration of symfony/form

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shota Hoshino

03/11 2015

v1.1.0

1.1.0.0

Provides handling base64 encoded files, and the integration of symfony/form

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shota Hoshino

06/02 2015

v1.0.0

1.0.0.0

Provides handling base64 encoded files, and the integration of symfony/form

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shota Hoshino