codervio / filesignature
Codervio Filesignature
1.0.x-dev
2018-08-25 09:49 UTC
Requires
- php: ^7.1
- codervio/filesignature: 1.*
Requires (Dev)
- phpunit/phpunit: 6.0.*
This package is not auto-updated.
Last update: 2024-11-10 06:33:27 UTC
README
A Filesignature
detects mime type, extension and type of file by reading a headers from a file.
It is possible to guess mime type, extension, vendor name and mime type using input arguments function.
Donations
Due I am working 100% alone without any helps, organizations and any others team I can be satisfy for receiving any amount of payment to improve, develop and continue building on origin idea of framework.
You can pay any amount to PayPal: https://www.paypal.me/codervio?locale.x=en_US
Installation
Changelog
Status of core:
PHP version above 7.1
.
Quality assurance: Unit tests provided
References
- [
Filesignature
] - A filesignature constructor
Fetching a result:
- [
getVendor()
] - Fetch a vendor by file - [
getExtension()
] - Get an extension type - [
getMime()
] - Get an extension type - [
getSignature()
] - Get a file signature headers - [
getVendor()
] - Fetch a vendor by file - [
getArrayResult()
] - Returns result as array
Guess by input arguments:
- [
recognizeByMime()
] - Return a result from mime type - [
recognizeByExtension()
] - Return a result from extension name