/IvoryBase64FileBundle

Provides a Base64 integration for your Symfony2 project.

Primary LanguagePHPMIT LicenseMIT

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.