Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ofcold/os-info
Application easily parsing and displaying system information of the host.
https://github.com/ofcold/os-info
codeigniter fuelphp laravel os php7 symfony thinkphp yii2
Last synced: about 1 month ago
JSON representation
Application easily parsing and displaying system information of the host.
- Host: GitHub
- URL: https://github.com/ofcold/os-info
- Owner: ofcold
- License: mit
- Created: 2018-04-21T10:47:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-21T11:25:18.000Z (over 6 years ago)
- Last Synced: 2024-10-01T11:06:16.156Z (about 2 months ago)
- Topics: codeigniter, fuelphp, laravel, os, php7, symfony, thinkphp, yii2
- Language: PHP
- Size: 11.7 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Operating system information
Application easily parsing and displaying system information of the host.### Installer
```console
composer require olivia/os-info
```### Use
#### Basic
```php
$info = new Olivia\OsInfo\OSInfo(
new Linfo\Linfo
);// Cpu
echo $info->getCpu();
```#### Laravel or other PHP framework
```php
use Olivia\OsInfo\OSInfo;$info = app(OSInfo::class);
// Cpu
echo $info->getCpu();
```### API
* getCpu() : string
* getServer() : string
* getMemory() : string
* getMysqlVersion(string $host = '127.0.0.1', string $username = 'root', ?string password = null) : string
* getPHPVersion() : string
* getUploadMaxFileSize() : string