PHP code example of status200 / php-mime
1. Go to this page and download the library: Download status200/php-mime library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
status200 / php-mime example snippets
$mime = new \Status200\Mime();
echo $mime -> get("/any/valid/file/path.txt");
// text/plain