Download the PHP package lkt/mime without Composer

On this page you can find all versions of the php package lkt/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 mime

LKT MIME

A practical lib for check and detect MIME types.

Detect MIME by file extension

Check if a MIME represents certain type of content

Access to MIME constants

You can use any of this MIME with the Const column constant (see table below):

Supported MIME

Any extension not included in the following list will return application/octet-stream.

Const Extension MIME
::JSON json application/json
::JSONLD jsonld application/ld+json
::OCTET_STREAM bin application/octet-stream
::ABIWORD abw application/x-abiword
::ARCHIVE_DOCUMENT arc application/x-freearc
::KINDLE_EBOOK azw application/vnd.amazon.ebook
::BZIP bz application/x-bzip
::BZIP2 bz2 application/x-bzip2
::CDA cda application/x-cdf
::CSH csh application/x-csh
::MS_DOC doc application/msword
::MS_DOCX docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
::MS_EOT eot application/vnd.ms-fontobject
::EPUB epub application/epub+zip
::GZIP gzip application/gzip
::MS_ICO ico image/vnd.microsoft.icon
::JAR jar image/java-archive
::APPLE_INSTALLER_PACKAGE mpkg application/vnd.apple.installer+xml
::ODP odp application/vnd.oasis.opendocument.presentation
::ODS ods application/vnd.oasis.opendocument.spreadsheet
::ODT odt application/vnd.oasis.opendocument.text
::PDF pdf application/pdf
::PHP php application/x-httpd-php
::PPT ppt application/vnd.ms-powerpoint
::PPTX pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
::RAR rar application/vnd.rar
::RTF rtf application/rtf
::SH sh application/x-sh
::TAR tar application/x-tar
::MS_VISIO vsd application/vnd.visio
::XHTML xhtml application/xhtml+xml
::XLS xls application/vnd.ms-excel
::XLSX xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
::XML xml application/xml
::ZIP zip application/zip
::SEVEN_ZIP 7z application/x-7z-compressed
::AAC aac audio/aac
::MID mid audio/midi
::MIDI midi audio/x-midi
::MP3 mp3 audio/mpeg
::OGA oga audio/ogg
::OPUS opus audio/opus
::WAV wav audio/wav
::WEBA weba audio/webm
::OTF otf font/otf
::TTF ttf font/ttf
::WOFF woff font/woff
::WOFF2 woff2 font/woff2
::GIF gif image/gif
::PNG png image/png
::JPEG jpg, jpeg image/jpeg
::SVG svg image/svg+xml
::WEBP webp image/webp
::AVIF avif image/avif
::BMP bmp image/bmp
::TIFF tif, tiff image/tiff
::MS_ICO ico image/vnd.microsoft.icon
::CSS css text/css
::HTML html, htm text/html
::PLAIN txt text/plain
::CSV csv text/csv
::ICS ics text/calendar
::JS js, mjs text/javascript
::AVI avi video/x-msvideo
::MP4 mp4 video/mp4
::MPEG mpeg video/mpeg
::OGG ogg video/ogg
::MPEG_TS ts video/mp2t
::WEBM webm video/webm

All versions of mime with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.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 lkt/mime contains the following files

Loading the files please wait ....