Gummibeer / laravel-linfo by jrgp

This is a Laravel 5 Wrapper for the linfo package from jrgp
2,614
6
5
Package Data
Maintainer Username: jrgp
Maintainer Contact: gummibeer@astrotomic.info (Tom Witkowski)
Package Create Date: 2015-09-11
Package Last Update: 2021-05-31
Home Page: https://github.com/jrgp/linfo
Language: PHP
License: MIT
Last Refreshed: 2024-11-17 03:01:58
Package Statistics
Total Downloads: 2,614
Monthly Downloads: 2
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 - 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).