Download the PHP package autoframe/components-filemime without Composer
On this page you can find all versions of the php package autoframe/components-filemime. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download autoframe/components-filemime
More information about autoframe/components-filemime
Files in autoframe/components-filemime
Download autoframe/components-filemime
More information about autoframe/components-filemime
Files in autoframe/components-filemime
Vendor autoframe
Package components-filemime
Short Description Core File Mime Utils Autoframe Framework
License MIT
Homepage https://github.com/autoframe
Package components-filemime
Short Description Core File Mime Utils Autoframe Framework
License MIT
Homepage https://github.com/autoframe
Please rate this library. Is it a good library?
Informations about the package components-filemime
Autoframe is a low level framework that is oriented on SOLID flexibility
PHP server side file mime SOLID
Namespace:
- Autoframe\Component\FileMime
Class is a SINGLETON:
- AfrFileMimeClass + AfrFileMimeInterface + AfrFileMimeTrait
- Methods:
- getFileMimeTypes: array [... 'image/jpeg' => ['jpeg','jpg','jpe'], ...]
- getFileMimeExtensions: array [... 'jpeg' => 'image/jpeg', ...]
- getFileMimeFallback: string 'application/octet-stream'
- getAllMimesFromFileName: array Input: '/dir/test.wmz' Output: ['application/x-ms-wmz','application/x-msmetafile'] (wmz extension has multiple mimes)
- getMimeFromFileName: string Input: '/dir/test.jpg' Output: 'image/jpeg'
- getExtensionsForMime: array Input: 'image/jpeg' Output: ['jpeg','jpg','jpe']
- getExtensionFromPath: string Input: '/dir/test.jpg' Output: 'jpg'
Traits:
- AfrFileMimeTypes public static array $aAfrFileMimeTypes = [...]
- AfrFileMimeExtensions public static array $aAfrFileMimeExtensions = [...]
Utility class reads/updates the file 'mime.types' and writes new traits AfrFileMimeExtensions and AfrFileMimeTypes
- AfrFileMimeGeneratorClass
- Runs only in local tests (not from inside vendor dir)
- mime.types is updated from https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
All versions of components-filemime with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0
autoframe/components-exception Version ^1.0 || ^2.0
autoframe/design-patterns Version ^1.0
autoframe/components-exception Version ^1.0 || ^2.0
autoframe/design-patterns Version ^1.0
The package autoframe/components-filemime contains the following files
Loading the files please wait ....