1. Go to this page and download the library: Download pmvc-plugin/file_info 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/ */
pmvc-plugin / file_info example snippets
PMVC\Load::plug();
$fileInfo = \PMVC\plug('file_info');
$fileInfo->path('/abc/abc.php')->getExt(); // will return "php"
PMVC\Load::plug();
$fileInfo = \PMVC\plug('file_info');
$fileInfo->file('/abc/abc.php')->getExt(); // will return "php"
$fileInfo = \PMVC\plug('file_info');
$size = $fileInfo->file('/abc/abc.php')->getSize();
echo $size; //transafer to readable format automatically by __tostring()
$fileInfo = \PMVC\plug('file_info');
$accessTime = $fileInfo->file('/abc/abc.php')->getTime()->atime();
echo $accessTime; //transafer to readable format automatically by __tostring()
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.