PHP code example of texxasrulez / server-dashboard

1. Go to this page and download the library: Download texxasrulez/server-dashboard library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

texxasrulez / server-dashboard example snippets

bash
curl -fsS "https://example.test/api/cron_mark.php?what=alerts"
curl -fsS "https://example.test/api/alerts_eval.php?probe=1"
curl -fsS "https://example.test/api/cron_heartbeat.php?id=custom_job"
bash
php scripts/nvme_collect.php
cron
*/1 * * * * php /path/to/server-dashboard/scripts/attack_monitor_collect.php >/dev/null 2>&1
cron
*/1 * * * * php /path/to/server-dashboard/scripts/opnsense_collect.php >/dev/null 2>&1
bash
php scripts/internet_exposure_collect.php
cron
*/5 * * * * php /path/to/server-dashboard/scripts/visitors_collect.php >/dev/null 2>&1
bash
bash bin/php-lint.sh
vendor/bin/phpunit --configuration phpunit.xml.dist
php bin/smoke-admin.php
npm run format:check:baseline
bash
bash bin/php-lint.sh
bash
php bin/smoke-admin.php