Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sunnysideup/folder-info
- Owner: sunnysideup
- Created: 2022-01-13T22:41:07.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-13T23:17:18.000Z (almost 3 years ago)
- Last Synced: 2024-11-25T03:25:07.205Z (about 1 month ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);```