{"id":16466859,"url":"https://github.com/matriphe/larinfo","last_synced_at":"2025-08-25T13:17:04.567Z","repository":{"id":23439016,"uuid":"99018576","full_name":"matriphe/larinfo","owner":"matriphe","description":"Display system information (IP address, OS, versions) for Laravel.","archived":false,"fork":false,"pushed_at":"2025-08-10T17:46:08.000Z","size":109,"stargazers_count":47,"open_issues_count":5,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T19:13:50.896Z","etag":null,"topics":["hacktoberfest","ipinfo","laravel","linfo","sysinfo"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matriphe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-01T15:52:49.000Z","updated_at":"2025-08-10T17:44:40.000Z","dependencies_parsed_at":"2024-03-17T21:26:50.877Z","dependency_job_id":"50365f51-30ae-456f-bac6-39774df15144","html_url":"https://github.com/matriphe/larinfo","commit_stats":{"total_commits":45,"total_committers":5,"mean_commits":9.0,"dds":0.1333333333333333,"last_synced_commit":"d493bee40846ce582f43bfdb33c37eab2964a1ae"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/matriphe/larinfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matriphe%2Flarinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matriphe%2Flarinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matriphe%2Flarinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matriphe%2Flarinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matriphe","download_url":"https://codeload.github.com/matriphe/larinfo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matriphe%2Flarinfo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272072180,"owners_count":24868379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","ipinfo","laravel","linfo","sysinfo"],"created_at":"2024-10-11T11:45:00.379Z","updated_at":"2025-08-25T13:17:04.542Z","avatar_url":"https://github.com/matriphe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Larinfo\n\n[![Larinfo](https://github.com/matriphe/larinfo/actions/workflows/master.yml/badge.svg)](https://github.com/matriphe/larinfo/actions/workflows/master.yml)\n[![Total Download](https://img.shields.io/packagist/dt/matriphe/larinfo.svg)](https://packagist.org/packages/matriphe/larinfo)\n[![Latest Stable Version](https://img.shields.io/packagist/v/matriphe/larinfo.svg)](https://packagist.org/packages/matriphe/larinfo)\n\nLarinfo provide system information for Laravel. \n\nIt wraps [Linfo](https://github.com/jrgp/linfo) to show IP address information on the server and client side, server software versions, and hardware information.\n\n## Requirements\n\n- **PHP version**: `^8.2`.\n- **Laravel version**: `^11.0`.\n\n### For Windows User\n\nIt is recommended to [enable `com_dotnet` extension](https://www.php.net/manual/en/com.installation.php) to get more accurate information.\n\nIn your `php.ini` file, add this line, and make sure you have `php_com_dotnet.dll` in your PHP `ext` directory.\n```ini\nextension=com_dotnet\n```\n\n## Installation\n\nTo install using [Composer](https://getcomposer.org/), just run this command below.\n\n```shell\ncomposer require matriphe/larinfo\n```\n### Versions\n\n| Larinfo                                                                  | Laravel                                             | Composer Command                          |\n|--------------------------------------------------------------------------|-----------------------------------------------------|-------------------------------------------|\n| [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`   |\n| [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` |\n| [4.0.0](https://github.com/matriphe/larinfo/releases/tag/4.0.0)          | `^9.0`                                              | `composer require matriphe/larinfo:4.0.0` |\n| [4.1.0](https://github.com/matriphe/larinfo/releases/tag/4.1.0)          | `^10.0`                                             | `composer require matriphe/larinfo:4.1.0` |\n| latest ([4.2.0](https://github.com/matriphe/larinfo/releases/tag/4.2.0)) | `^11.0`                                             | `composer require matriphe/larinfo`       |\n\n### Configuration\n\nTo publish the config (optional) run this command below.\n\n```shell\nphp artisan vendor:publish\n```\n\nThen select the number that points to `Matriphe\\Larinfo\\LarinfoServiceProvider` provider.\n\nThe new config will be placed in `config/larinfo.php`.\n\n#### Service Configuration\n\nIP 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.\n\n```php\n'ipinfo' =\u003e [\n    'token'  =\u003e 'your_ipinfo_token',\n]\n```\n\nIf you don't want to hit ipinfo.io rate limit, it is recommended to cache it using Laravel built-in cache.\n\n## Usage\n\nTo get all info, use facade `Larinfo` and call the `getInfo()` method. It will return this array example.\n\n```php\nuse Larinfo;\n\n$larinfo = Larinfo::getInfo();\n```\n\nThe result of that command is shown below.\n\n```php\n$larinfo = [\n   'host'=\u003e [\n       'city'=\u003e 'San Francisco',\n       'country'=\u003e 'US',\n       'hostname'=\u003e '',\n       'ip'=\u003e '104.20.8.94',\n       'loc'=\u003e '37.7697,-122.3933',\n       'org'=\u003e 'AS13335 Cloudflare, Inc.',\n       'phone'=\u003e '',\n       'postal'=\u003e '94107',\n       'region'=\u003e 'California',\n       'timezone' =\u003e 'America/Los_Angeles',\n   ],\n   'client'=\u003e [\n       'city'=\u003e 'Bekasi',\n       'country'=\u003e 'ID',\n       'hostname'=\u003e '',\n       'ip'=\u003e '180.252.202.108',\n       'loc'=\u003e '-6.2349,106.9896',\n       'org'=\u003e 'AS17974 PT Telekomunikasi Indonesia',\n       'phone'=\u003e '',\n       'postal'=\u003e '',\n       'region'=\u003e ''\n   ],\n   'server'=\u003e [\n       'software'=\u003e [\n           'os'=\u003e 'MacOS',\n           'distro'=\u003e 'MacOS 10.15.7',\n           'kernel'=\u003e '19.6.0',\n           'arc'=\u003e 'x86_64',\n           'webserver'=\u003e 'nginx/1.19.8',\n           'php'=\u003e '8.0.3'\n       ],\n       'hardware'=\u003e [\n           'cpu'=\u003e 'Intel® Core™ i5-3210M CPU @ 2.50GHz',\n           'cpu_count'=\u003e 4,\n           'model'=\u003e 'Apple device',\n           'virtualization'=\u003e '',\n           'ram'=\u003e [\n               'total'=\u003e 8589934592,\n               'free'=\u003e 8578883584,\n               'human_total' =\u003e '8.0 GiB',\n               'human_free' =\u003e '15.0 MiB',\n           ],\n           'swap'=\u003e [\n               'total'=\u003e 2147483648,\n               'free'=\u003e 426246144,\n               'human_total' =\u003e '2.0 GiB',\n               'human_free' =\u003e '406.5 MiB',\n           ],\n           'disk'=\u003e [\n               'total'=\u003e 2999590176768,\n               'free'=\u003e 1879852326912,\n               'human_total' =\u003e '2.7 TiB',\n               'human_free' =\u003e '1.7 TiB',\n           ]\n       ],\n       'uptime'=\u003e [\n           'uptime'=\u003e '2 days, 12 hours, 13 minutes, 43 seconds',\n           'booted_at'=\u003e '2021-04-02 15:27:54'\n       ]\n   ],\n   'database'=\u003e [\n       'driver'=\u003e 'MySQL',\n       'version'=\u003e '8.0.22'\n   ]\n];\n```\n\nOther method you can use are:\n\n* `getHostIpinfo` to get host IP info (`Larinfo::getHostIpinfo()`)\n* `getClientIpinfo` to get client IP info (`Larinfo::getClientIpinfo()`)\n* `getServerInfoSoftware` to get server software info (`Larinfo::getServerInfoSoftware()`)\n* `getServerInfoHardware` to get server hardware info (`Larinfo::getServerInfoHardware()`)\n* `getUptime` to get server uptime (`Larinfo::getUptime()`)\n* `getServerInfo` to get server info (`Larinfo::getServerInfo()`)\n* `getDatabaseInfo` to get database info (`Larinfo::getDatabaseInfo()`)\n\n### Artisan Command\n\nYou also can check using `larinfo` artisan command, by running this command below.\n\n```shell\nphp artisan larinfo\n```\n\nThe example of the result is shown below.\n\n```\nLarinfo\n=======\n\n+--------------------+------------------------------------------+\n| Application                                                   |\n+--------------------+------------------------------------------+\n| PHP version        | 8.1.12                                   |\n| Laravel version    | 10.4.1                                   |\n+--------------------+------------------------------------------+\n| Database                                                      |\n+--------------------+------------------------------------------+\n| Engine             | SQLite                                   |\n| Version            | 3.40.0                                   |\n+--------------------+------------------------------------------+\n| Operating System                                              |\n+--------------------+------------------------------------------+\n| Type               | MacOS                                    |\n| Name               | MacOS 13.2.1                             |\n| Architecture       | arm64                                    |\n| Kernel Version     | 22.3.0                                   |\n+--------------------+------------------------------------------+\n| Uptime                                                        |\n+--------------------+------------------------------------------+\n| Uptime             | 5 days, 13 hours, 38 minutes, 25 seconds |\n| First Boot         | 2023-03-19 22:36:46                      |\n+--------------------+------------------------------------------+\n| Server                                                        |\n+--------------------+------------------------------------------+\n| IP Address         | 79.224.166.123                           |\n| Private IP Address |                                          |\n| Hostname           | p5fe9ab9c.dip0.t-ipconnect.de            |\n| Provider           | AS3320 Deutsche Telekom AG               |\n| City               | Berlin                                   |\n| Region             | Berlin                                   |\n| Country            | DE                                       |\n+--------------------+------------------------------------------+\n| Timezone                                                      |\n+--------------------+------------------------------------------+\n| Application        | UTC                                      |\n| Server Location    | Europe/Berlin                            |\n+--------------------+------------------------------------------+\n| Hardware                                                      |\n+--------------------+------------------------------------------+\n| Model              | Mac mini                                 |\n| CPU count          | 8                                        |\n| CPU                | Apple M1                                 |\n+--------------------+------------------------------------------+\n| RAM                                                           |\n+--------------------+------------------------------------------+\n| Total              | 16.0 GiB                                 |\n| Free               | 54.0 MiB                                 |\n+--------------------+------------------------------------------+\n| SWAP                                                          |\n+--------------------+------------------------------------------+\n| Total              | 3.0 GiB                                  |\n| Free               | 964.7 MiB                                |\n+--------------------+------------------------------------------+\n| Disk Space                                                    |\n+--------------------+------------------------------------------+\n| Total              | 2.2 TiB                                  |\n| Free               | 1.0 TiB                                  |\n+--------------------+------------------------------------------+\n```\n\n## Running Tests\n\nTo run the unit tests, execute this following command.\n\n```shell\nvendor/bin/phpunit --group unit\n```\n\n### GitHub Actions\n\nOn the GitHub Actions, the tests run on the respective operating system, which are `ubuntu`, `macos`, and `windows` when a pull request is made.\n\nTo 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.\n\n```shell\nvendor/bin/phpunit --group ubuntu\n```\n\nTo 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.\n\n```shell\nvendor/bin/phpunit --group macos\n```\n\nTo 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.\n\n```shell\nvendor/bin/phpunit --group windows\n```\n\n## License\n\nPlease see [License File](LICENSE.md) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatriphe%2Flarinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatriphe%2Flarinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatriphe%2Flarinfo/lists"}