egeloen / base64-file-bundle
Provides a base64 file support for your Symfony2 Project.
Installs: 26 621
Dependents: 1
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 7
Open Issues: 2
Type:symfony-bundle
Requires
- php: ^5.6|^7.0
- symfony/form: ^2.7|^3.0
- symfony/framework-bundle: ^2.7|^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: ^5.0
- symfony/phpunit-bridge: ^2.7|^3.0
- symfony/validator: ^2.7|^3.0
- symfony/yaml: ^2.7|^3.0
This package is not auto-updated.
Last update: 2024-11-19 21:48:50 UTC
README
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
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.