PHPackages                             matriphe/larinfo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. matriphe/larinfo

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

matriphe/larinfo
================

Display system information (IP address, OS, versions) for Laravel.

4.3.0(9mo ago)4739.9k↓11.8%11[5 issues](https://github.com/matriphe/larinfo/issues)3MITPHPPHP ^8.2CI passing

Since Aug 1Pushed 9mo agoCompare

[ Source](https://github.com/matriphe/larinfo)[ Packagist](https://packagist.org/packages/matriphe/larinfo)[ RSS](/packages/matriphe-larinfo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (5)Versions (19)Used By (3)

Larinfo
=======

[](#larinfo)

[![Larinfo](https://github.com/matriphe/larinfo/actions/workflows/master.yml/badge.svg)](https://github.com/matriphe/larinfo/actions/workflows/master.yml)[![Total Download](https://camo.githubusercontent.com/9bba255a8bcbc4c02c1aa174b5be0dc827854a5d042d5fb88e4553c521688d31/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617472697068652f6c6172696e666f2e737667)](https://packagist.org/packages/matriphe/larinfo)[![Latest Stable Version](https://camo.githubusercontent.com/d25775329a219b1ad91e44b956fb2ebb7d29d14868e74647dd7976e94cf8c406/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617472697068652f6c6172696e666f2e737667)](https://packagist.org/packages/matriphe/larinfo)

Larinfo provide system information for Laravel.

It wraps [Linfo](https://github.com/jrgp/linfo) to show IP address information on the server and client side, server software versions, and hardware information.

Requirements
------------

[](#requirements)

- **PHP version**: `^8.2`.
- **Laravel version**: `^11.0`.

### For Windows User

[](#for-windows-user)

It is recommended to [enable `com_dotnet` extension](https://www.php.net/manual/en/com.installation.php) to get more accurate information.

In your `php.ini` file, add this line, and make sure you have `php_com_dotnet.dll` in your PHP `ext` directory.

```
extension=com_dotnet
```

Installation
------------

[](#installation)

To install using [Composer](https://getcomposer.org/), just run this command below.

```
composer require matriphe/larinfo
```

### Versions

[](#versions)

LarinfoLaravelComposer Command[2.2](https://github.com/matriphe/larinfo/releases/tag/2.2)`5.0`, `5.1`, `5.2`, `5.3`, `5.4`, `5.5`, and `5.6``composer require matriphe/larinfo:2.2`[3.0.0](https://github.com/matriphe/larinfo/releases/tag/3.0.0)`5.7.*`, `5.8.*`, `^6.0`, `^7.0`, and `^8.0``composer require matriphe/larinfo:3.0.0`[4.0.0](https://github.com/matriphe/larinfo/releases/tag/4.0.0)`^9.0``composer require matriphe/larinfo:4.0.0`[4.1.0](https://github.com/matriphe/larinfo/releases/tag/4.1.0)`^10.0``composer require matriphe/larinfo:4.1.0`latest ([4.2.0](https://github.com/matriphe/larinfo/releases/tag/4.2.0))`^11.0``composer require matriphe/larinfo`### Configuration

[](#configuration)

To publish the config (optional) run this command below.

```
php artisan vendor:publish
```

Then select the number that points to `Matriphe\Larinfo\LarinfoServiceProvider` provider.

The new config will be placed in `config/larinfo.php`.

#### Service Configuration

[](#service-configuration)

IP address information is taken using [ipinfo.io](http://ipinfo.io/) service. If you've registered and has access token, put your token in the `config/services.php` inside the `ipinfo` variable.

```
'ipinfo' => [
    'token'  => 'your_ipinfo_token',
]
```

If you don't want to hit ipinfo.io rate limit, it is recommended to cache it using Laravel built-in cache.

Usage
-----

[](#usage)

To get all info, use facade `Larinfo` and call the `getInfo()` method. It will return this array example.

```
use Larinfo;

$larinfo = Larinfo::getInfo();
```

The result of that command is shown below.

```
$larinfo = [
   'host'=> [
       'city'=> 'San Francisco',
       'country'=> 'US',
       'hostname'=> '',
       'ip'=> '104.20.8.94',
       'loc'=> '37.7697,-122.3933',
       'org'=> 'AS13335 Cloudflare, Inc.',
       'phone'=> '',
       'postal'=> '94107',
       'region'=> 'California',
       'timezone' => 'America/Los_Angeles',
   ],
   'client'=> [
       'city'=> 'Bekasi',
       'country'=> 'ID',
       'hostname'=> '',
       'ip'=> '180.252.202.108',
       'loc'=> '-6.2349,106.9896',
       'org'=> 'AS17974 PT Telekomunikasi Indonesia',
       'phone'=> '',
       'postal'=> '',
       'region'=> ''
   ],
   'server'=> [
       'software'=> [
           'os'=> 'MacOS',
           'distro'=> 'MacOS 10.15.7',
           'kernel'=> '19.6.0',
           'arc'=> 'x86_64',
           'webserver'=> 'nginx/1.19.8',
           'php'=> '8.0.3'
       ],
       'hardware'=> [
           'cpu'=> 'Intel® Core™ i5-3210M CPU @ 2.50GHz',
           'cpu_count'=> 4,
           'model'=> 'Apple device',
           'virtualization'=> '',
           'ram'=> [
               'total'=> 8589934592,
               'free'=> 8578883584,
               'human_total' => '8.0 GiB',
               'human_free' => '15.0 MiB',
           ],
           'swap'=> [
               'total'=> 2147483648,
               'free'=> 426246144,
               'human_total' => '2.0 GiB',
               'human_free' => '406.5 MiB',
           ],
           'disk'=> [
               'total'=> 2999590176768,
               'free'=> 1879852326912,
               'human_total' => '2.7 TiB',
               'human_free' => '1.7 TiB',
           ]
       ],
       'uptime'=> [
           'uptime'=> '2 days, 12 hours, 13 minutes, 43 seconds',
           'booted_at'=> '2021-04-02 15:27:54'
       ]
   ],
   'database'=> [
       'driver'=> 'MySQL',
       'version'=> '8.0.22'
   ]
];
```

Other method you can use are:

- `getHostIpinfo` to get host IP info (`Larinfo::getHostIpinfo()`)
- `getClientIpinfo` to get client IP info (`Larinfo::getClientIpinfo()`)
- `getServerInfoSoftware` to get server software info (`Larinfo::getServerInfoSoftware()`)
- `getServerInfoHardware` to get server hardware info (`Larinfo::getServerInfoHardware()`)
- `getUptime` to get server uptime (`Larinfo::getUptime()`)
- `getServerInfo` to get server info (`Larinfo::getServerInfo()`)
- `getDatabaseInfo` to get database info (`Larinfo::getDatabaseInfo()`)

### Artisan Command

[](#artisan-command)

You also can check using `larinfo` artisan command, by running this command below.

```
php artisan larinfo
```

The example of the result is shown below.

```
Larinfo
=======

+--------------------+------------------------------------------+
| Application                                                   |
+--------------------+------------------------------------------+
| PHP version        | 8.1.12                                   |
| Laravel version    | 10.4.1                                   |
+--------------------+------------------------------------------+
| Database                                                      |
+--------------------+------------------------------------------+
| Engine             | SQLite                                   |
| Version            | 3.40.0                                   |
+--------------------+------------------------------------------+
| Operating System                                              |
+--------------------+------------------------------------------+
| Type               | MacOS                                    |
| Name               | MacOS 13.2.1                             |
| Architecture       | arm64                                    |
| Kernel Version     | 22.3.0                                   |
+--------------------+------------------------------------------+
| Uptime                                                        |
+--------------------+------------------------------------------+
| Uptime             | 5 days, 13 hours, 38 minutes, 25 seconds |
| First Boot         | 2023-03-19 22:36:46                      |
+--------------------+------------------------------------------+
| Server                                                        |
+--------------------+------------------------------------------+
| IP Address         | 79.224.166.123                           |
| Private IP Address |                                          |
| Hostname           | p5fe9ab9c.dip0.t-ipconnect.de            |
| Provider           | AS3320 Deutsche Telekom AG               |
| City               | Berlin                                   |
| Region             | Berlin                                   |
| Country            | DE                                       |
+--------------------+------------------------------------------+
| Timezone                                                      |
+--------------------+------------------------------------------+
| Application        | UTC                                      |
| Server Location    | Europe/Berlin                            |
+--------------------+------------------------------------------+
| Hardware                                                      |
+--------------------+------------------------------------------+
| Model              | Mac mini                                 |
| CPU count          | 8                                        |
| CPU                | Apple M1                                 |
+--------------------+------------------------------------------+
| RAM                                                           |
+--------------------+------------------------------------------+
| Total              | 16.0 GiB                                 |
| Free               | 54.0 MiB                                 |
+--------------------+------------------------------------------+
| SWAP                                                          |
+--------------------+------------------------------------------+
| Total              | 3.0 GiB                                  |
| Free               | 964.7 MiB                                |
+--------------------+------------------------------------------+
| Disk Space                                                    |
+--------------------+------------------------------------------+
| Total              | 2.2 TiB                                  |
| Free               | 1.0 TiB                                  |
+--------------------+------------------------------------------+

```

Running Tests
-------------

[](#running-tests)

To run the unit tests, execute this following command.

```
vendor/bin/phpunit --group unit
```

### GitHub Actions

[](#github-actions)

On the GitHub Actions, the tests run on the respective operating system, which are `ubuntu`, `macos`, and `windows` when a pull request is made.

To run the tests on [Ubuntu 20.04 LTS (Focal Fossa)](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/linux/Ubuntu2004-Readme.md) and [Ubuntu 22.04 LTS (Jammy Jellyfish)](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/linux/Ubuntu2204-Readme.md), run this following command.

```
vendor/bin/phpunit --group ubuntu
```

To run the tests on [macOS Monterey (12)](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/macos/macos-12-Readme.md) and [macOS Ventura (13)](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/macos/macos-13-Readme.md), run this following command.

```
vendor/bin/phpunit --group macos
```

To run the tests on [Windows Server 2019](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/win/Windows2019-Readme.md) and [Windows Server 2022](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/win/Windows2022-Readme.md), run this following command.

```
vendor/bin/phpunit --group windows
```

License
-------

[](#license)

Please see [License File](LICENSE.md) for more information.

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance55

Moderate activity, may be stable

Popularity42

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 90.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~209 days

Recently: every ~260 days

Total

15

Last Release

281d ago

Major Versions

1.0.2 → 2.02019-10-20

2.x-dev → 3.0.02021-04-04

3.x-dev → 4.0.02022-04-24

PHP version history (6 changes)2.0PHP ^7.1

3.0.0PHP ^7.4|^8.0

4.0.0PHP ^8.0.2

4.0.x-devPHP ^8.0

4.1.0PHP ^8.1

4.2.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/809de97d088b0eff358f96141a31bd8897216a03175448192de140f2723bdea6?d=identicon)[matriphe](/maintainers/matriphe)

---

Top Contributors

[![matriphe](https://avatars.githubusercontent.com/u/277262?v=4)](https://github.com/matriphe "matriphe (60 commits)")[![repat](https://avatars.githubusercontent.com/u/516807?v=4)](https://github.com/repat "repat (3 commits)")[![moecasts](https://avatars.githubusercontent.com/u/37169906?v=4)](https://github.com/moecasts "moecasts (1 commits)")[![ryssbowh](https://avatars.githubusercontent.com/u/6736613?v=4)](https://github.com/ryssbowh "ryssbowh (1 commits)")[![zhichao-poper](https://avatars.githubusercontent.com/u/141097055?v=4)](https://github.com/zhichao-poper "zhichao-poper (1 commits)")

---

Tags

hacktoberfestipinfolaravellinfosysinfolaravelipinfosysinfolarinfolinfo

### Embed Badge

![Health badge](/badges/matriphe-larinfo/health.svg)

```
[![Health](https://phpackages.com/badges/matriphe-larinfo/health.svg)](https://phpackages.com/packages/matriphe-larinfo)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
