The other day I released the first version of a small Open Source (MIT) PHP library that can be used to fetch system information; like for instance CPU usage, load average and memory usage (amongst other information). The library is available at GitHub and can be installed using composer (support for PEAR and phar will be added later).