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 |
This is a Laravel 5 Wrapper for the linfo package from jrgp - https://github.com/jrgp/linfo
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.
Linfo\Laravel\LinfoServiceProvider::class,
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)
.