egeloen/base64-file-bundle

Provides a base64 file support for your Symfony2 Project.

Installs: 26 533

Dependents: 1

Suggesters: 0

Security: 0

Stars: 8

Watchers: 3

Forks: 7

Open Issues: 2

Type:symfony-bundle

1.0.1 2017-02-27 20:13 UTC

This package is not auto-updated.

Last update: 2024-04-23 19:14:16 UTC


README

Travis Build Status AppVeyor Build Status Code Coverage Scrutinizer Code Quality Dependency Status

Latest Stable Version Latest Unstable Version Total Downloads License

Overview

The bundle provides a way to upload base64 file transparently through the Symfony2 form component. It adds a new form option named base64 on the file type which, when enabled, will convert you base64 input into a regular file. It is especially useful when you're using the FOSRestBundle.

For example, the following payload will be handled by the bundle:

{
    "field": {
        "name": "filename.png",
        "value": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABh0lEQVQ4T23TO8iPYR..."
    }
}

Documentation

  1. Installation
  2. Usage

Testing

The bundle is fully unit tested by PHPUnit with a code coverage close to 100%. To execute the test suite, check the travis configuration.

Contribute

We love contributors! Ivory is an open source project. If you'd like to contribute, feel free to propose a PR! You can follow the CONTRIBUTING file which will explain you how to set up the project.

License

The Ivory Base64 File Bundle is under the MIT license. For the full copyright and license information, please read the LICENSE file that was distributed with this source code.