Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sunnysideup/folder-info

PHP Class to get info about folder
https://github.com/sunnysideup/folder-info

Last synced: 23 days ago
JSON representation

PHP Class to get info about folder

Awesome Lists containing this project

README

        

Use the PHP file as required

you can independently use any of these calls as you see fit
```php

$path = dirname(__FILE__) . '/../';
$path = realpath($path);

include $path .'/src/MyFolderInfo.php';
use Sunnysideup\FolderInfo\MyFolderInfo;

echo '

Count of Files '.$path.'

';
echo MyFolderInfo::countOfFilesRaw($path);
echo ' OR ';
echo MyFolderInfo::countOfFilesHuman($path);

echo '

Size of Files '.$path.'

';
echo MyFolderInfo::sizeOfFilesRaw($path);
echo ' OR ';
echo MyFolderInfo::sizeOfFilesHuman($path);

echo '

Last Updated '.$path.'

';
echo MyFolderInfo::lastUpdatedRaw($path);
echo ' OR ';
echo MyFolderInfo::lastUpdatedHuman($path);

echo '

Raw Data '.$path.'

';
$data = Sunnysideup\FolderInfo\MyFolderInfo::run($path);
print_r($data);

```