A php package to get you the server information
Install
Via Composer
$ composer require ameetroy/server
Usage
use BubbleGum\Sweety;
$getTotalSpace = Sweety::setDiskPath('/var/www/html/')
// ->setRaw(true)
->getTotalSpace();
$getFreeSpace = Sweety::setDiskPath('/var/www/html/')
// ->setRaw(true)
->getFreeSpace();
License
The MIT License (MIT). Please see License File for more information.