PHP code example of laramall / laravel-system-info

1. Go to this page and download the library: Download laramall/laravel-system-info library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

laramall / laravel-system-info example snippets

`
//获取服务器信息
Sysinfo::server();

//获取cpu信息
Sysinfo::cpu();

//获取总内存信息
Sysinfo::memory();

//获取laravel的版本信息
Sysinfo::laraver();

//获取时区信息
Sysinfo::timezone();

//是否为PHP安全模式
Sysinfo::safeMode();

//最大上传文件大小
Sysinfo::upload_max_filesize();

//获取mysql信息
Sysinfo::mysql();

//获取php版本信息
Sysinfo::php() ;

//获取服务器ip
Sysinfo::ip();