Gummibeer / laravel-linfo by jrgp

This is a Laravel 5 Wrapper for the linfo package from jrgp
1,166
4
2
Package Data
Maintainer Username: jrgp
Maintainer Contact: gummibeer@astrotomic.info (Tom Witkowski)
Package Create Date: 2015-09-11
Package Last Update: 2020-03-01
Home Page: https://github.com/jrgp/linfo
Language: PHP
License: MIT
Last Refreshed: 2020-05-22 15:03:12
Package Statistics
Total Downloads: 1,166
Monthly Downloads: 12
Daily Downloads: 0
Total Stars: 4
Total Watchers: 2
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 - https://github.com/jrgp/linfo

Installation

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

Configuration

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

Linfo\Laravel\LinfoServiceProvider::class,

Publish config file linfo.php by running this command.

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

Usage

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).