PHPackages                             flobbos/laravel-system-info - 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. [API Development](/categories/api)
4. /
5. flobbos/laravel-system-info

ActiveLibrary[API Development](/categories/api)

flobbos/laravel-system-info
===========================

Minimalist package to expose Laravel system info via API

1.0.2(7mo ago)010MITPHPPHP ^8.0

Since Sep 23Pushed 7mo agoCompare

[ Source](https://github.com/Flobbos/laravel-system-info)[ Packagist](https://packagist.org/packages/flobbos/laravel-system-info)[ RSS](/packages/flobbos-laravel-system-info/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Laravel System Info
===================

[](#laravel-system-info)

[![Laravel System Info](img/laravel-system-info.png)](img/laravel-system-info.png)

A minimalist Laravel package to expose system information (Laravel version, PHP version, installed packages, and outdated packages) via a secure API endpoint. This package is designed to allow centralized monitoring of Laravel sites. It uses its own token-based authentication middleware, independent of Sanctum or other auth systems.

The package supports Laravel 9+ for the moment.

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

[](#installation)

1. Require the package via Composer:

    ```
    composer require flobbos/laravel-system-info

    ```
2. Install the package (generates a token and publishes config):

    ```
    php artisan laravel-system-info:install

    ```

    This will add `SYSTEM_INFO_TOKEN=your-generated-token` to your .env file and publish `config/laravel-system-info.php`. Copy the token to your ServerSync dashboard for API authentication.

Usage
-----

[](#usage)

- The package adds a `/api/system-info` endpoint, protected by the generated token.
- Fetch info with a GET request using Bearer auth:

    ```
    curl -H "Authorization: Bearer your-token" https://your-laravel-site.com/api/system-info

    ```
- Response example:

    ```
    {
    	"laravel_version": "11.0.0",
    	"php_version": "8.3.1",
    	"installed_packages": [
    		{
    			"name": "laravel/framework",
    			"version": "11.0.0"
    			// ... other packages
    		}
    	],
    	"outdated_packages": [
    		{
    			"name": "some/package",
    			"version": "1.0.0",
    			"latest": "1.1.0"
    		}
    	]
    }
    ```
- You can use this endpoint to fetch and display info for Laravel sites.

Configuration
-------------

[](#configuration)

- `config/laravel-system-info.php`:

    ```
