Download the PHP package metasyntactical/symfony-mime without Composer

On this page you can find all versions of the php package metasyntactical/symfony-mime. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package symfony-mime

README

Build Status

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.

Requirements

MetaSyntactical/symfony-mime is only supported on PHP 5.3.10 and up.

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`:

{
    "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):

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.

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 section.


All versions of symfony-mime with dependencies

PHP Build Version
Package Version
Requires php Version ~7.2|~7.3|~7.4|~8.0
metasyntactical/mime Version ^2.1.0
symfony/filesystem Version ~4.4.0|~5.0
symfony/http-foundation Version ^2.8.52|^3.4.34|~4.2.12|~4.3.8|^4.4|^5.0
symfony/mime Version ~4.4.0|~5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package metasyntactical/symfony-mime contains the following files

Loading the files please wait ....