Gummibeer / laravel-linfo by jrgp

This is a Laravel 5 Wrapper for the linfo package from jrgp
Package Data
Maintainer Username: jrgp
Maintainer Contact: (Tom Witkowski)
Package Create Date: 2015-09-11
Package Last Update: 2021-05-31
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-06-19 03:06:00
Package Statistics
Total Downloads: 2,597
Monthly Downloads: 37
Daily Downloads: 0
Total Stars: 6
Total Watchers: 5
Total Forks: 3
Total Open Issues: 0

Laravel Linfo

GitHub Author GitHub release GitHub license GitHub issues

Travis branch StyleCI Code Climate Code Climate Code Climate

This is a Laravel 5 Wrapper for the linfo package from jrgp -


Open composer.json and add this line below.

    "require": {
        "linfo/laravel": "~1.1"

Or you can run this command from your project directory.

composer require linfo/laravel


Open the config/app.php and add this line in providers section.


Publish config file linfo.php by running this command.

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


You can use the function like this.

use Linfo\Laravel\Models\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

You can see other data using dump($linfo) or var_dump($linfo).