Download the PHP package vincoweb/easy-php-file-info without Composer
On this page you can find all versions of the php package vincoweb/easy-php-file-info. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download vincoweb/easy-php-file-info
More information about vincoweb/easy-php-file-info
Files in vincoweb/easy-php-file-info
Download vincoweb/easy-php-file-info
More information about vincoweb/easy-php-file-info
Files in vincoweb/easy-php-file-info
Vendor vincoweb
Package easy-php-file-info
Short Description Get file information from local and also remote file(mime type, extension, file name ...).
License Unlicensed
Package easy-php-file-info
Short Description Get file information from local and also remote file(mime type, extension, file name ...).
License Unlicensed
Please rate this library. Is it a good library?
Informations about the package easy-php-file-info
easy-php-file-info
Get easily file information from local and also remote file (mime, extension, file name ...)
Installation
Usage
Variable "$file_link" can contains path and also URL.
Variable "$return_object" is optional. Set to true for return object instead of array.
Laravel support
add provider and alias in config/app.php
and in laravel you use it
Example
Code
Result
Result returns array with these keys:
- link - where file was finded (if there was redirection, it contains reditected location)
- location - location of $file_link ( return string "URL" or "path")
- mime - mime type (only from header, if $link is URL).
- size - file size (if is taken from header, it can contain value "-1")
- last_modified - date of last modified
- etag - file header etag from ULR (can be empty) or md5 hash of file from path
- basename - basename, name of file
- extension - file extension got from header(if file is image, it contains real extension )
- type - mime type or string "image" if file is normal image
- [width] - width dimension, this key exists only if file is image
- [height] - height dimension, this key exists only if file is image
It can return boolean false (i.e. if file not exist).
Features
IF YOU WANT NEW FEATURES WRITE NEW ISSUE PLS :)
Licence
Unlicense. You can do what you want. Be free!
All versions of easy-php-file-info with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.0
The package vincoweb/easy-php-file-info contains the following files
Loading the files please wait ....