PHP code example of linfo / laravel

1. Go to this page and download the library: Download linfo/laravel 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/ */

    

linfo / laravel example snippets


use Linfo\Laravel\Linfo;

$linfo = new Linfo();

$os = $linfo->os; // string
$kernel = $linfo->kernel; // string
$model = $linfo->model; // string
$ram = $linfo->ram; // array
$cpu = $linfo->cpu; // array
$arc = $linfo->cpuarchitecture; // string

console
php artisan vendor:publish --provider="Linfo\Laravel\LinfoServiceProvider"