Download the PHP package flobbos/laravel-system-info without Composer
On this page you can find all versions of the php package flobbos/laravel-system-info. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download flobbos/laravel-system-info
More information about flobbos/laravel-system-info
Files in flobbos/laravel-system-info
Package laravel-system-info
Short Description Minimalist package to expose Laravel system info via API
License MIT
Informations about the package laravel-system-info
Laravel System Info
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
-
Require the package via Composer:
-
Install the package (generates a token and publishes config):
This will add
SYSTEM_INFO_TOKEN=your-generated-tokento your .env file and publishconfig/laravel-system-info.php. Copy the token to your ServerSync dashboard for API authentication.
Usage
- The package adds a
/api/system-infoendpoint, protected by the generated token. -
Fetch info with a GET request using Bearer auth:
-
Response example:
- You can use this endpoint to fetch and display info for Laravel sites.
Configuration
-
config/laravel-system-info.php: - Regenerate token if needed by rerunning the install command.
Security
- The endpoint is protected by a custom middleware checking the Bearer token from .env.
- Ensure
APP_DEBUG=falsein production to avoid exposing sensitive info on errors. - The package doesn't access .env variables; it only runs Composer commands for package info.
Compatibility
- Laravel 9.0 and above.
License
MIT License. See LICENSE for more information.