akondas / php-runtime
PHP Runtime class provides methods to get total and free memory
Installs: 1 797
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 0
Open Issues: 0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.58
- php-mock/php-mock-phpunit: ^2.10
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-12-01 00:20:08 UTC
README
PHP Runtime class provides methods to get total and free memory and number of available processors.
Usage
composer require akondas/php-runtime
use Akondas\Runtime; $runtime = new Runtime(); $runtime->totalMemory(); $runtime->freeMemory(); $runtime->availableProcessors();
License
PHPRuntime is released under the MIT Licence. See the bundled LICENSE file for details.