2017 © Pedro Peláez
 

library symfony-mime

Helper component for hooking metasyntactical/mime into Symfony2 File Validation

image

metasyntactical/symfony-mime

Helper component for hooking metasyntactical/mime into Symfony2 File Validation

  • Tuesday, September 11, 2012
  • by dkreuer
  • Repository
  • 1 Watchers
  • 1 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

README

Build Status, (*1)

What is MetaSyntactical/symfony-mime?

MetaSyntactical/symfony-mime is a tie-in component to use the MetaSyntactical/Mime MIME type detection in Symfony2 File Validation., (*2)

Requirements

MetaSyntactical/symfony-mime is only supported on PHP 5.3.10 and up., (*3)

Installation

The best way to install MetaSyntactical/symfony-mime is to use Composer (http://getcomposer.org). Add the following part to your composer.json and run php composer.phar install`:, (*4)

{
    "require": {
        "metasyntactical/symfony-mime": "dev-master"
    }
}

Documentation

It is easy to add MIME type detection to Symfony2 File Validation. Just use the following code snippet (assuming you have installed MetaSyntactical/symfony-mime with composer):, (*5)

use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser;
use MetaSyntactical\Symfony\Component\HttpFoundation\File\MimeType\PhpMimeTypeGuesser;

MimeTypeGuesser::getInstance()->register(new PhpMimeTypeGuesser);

Afterwards the MetaSyntactical/Mime MIME type detection will be used in File's mimeType validation., (*6)

Contributing

COMING SOON MetaSyntactical/symfony-mime is an open source project. If you'd like to contribute, please read the Contributing Code part of the documentation. If you're submitting a pull request, please follow the guidelines in the [Submitting a Patch][2] section., (*7)

The Versions

11/09 2012

dev-master

9999999-dev http://syntactical-sugar.com/projects/symfony-mime

Helper component for hooking metasyntactical/mime into Symfony2 File Validation

  Sources   Download

MIT

The Requires

 

by Daniel Kreuer

mime component library validation symfony tie-in

11/09 2012

1.0.0

1.0.0.0 http://syntactical-sugar.com/projects/symfony-mime

Helper component for hooking metasyntactical/mime into Symfony2 File Validation

  Sources   Download

MIT

The Requires

 

by Daniel Kreuer

mime component library validation symfony tie-in