PHP code example of vishalxtyagi / php-ghost-wall

1. Go to this page and download the library: Download vishalxtyagi/php-ghost-wall 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/ */

    

vishalxtyagi / php-ghost-wall example snippets


// config/app.php — providers array
Vishalxtyagi\PhpGhostWall\GhostWallServiceProvider::class,

return [
    'enabled'    => env('GHOSTWALL_ENABLED', true),
    'alert_via'  => ['log', 'email'],        // 'log' | 'email' | 'webhook'
    'ignore'     => ['storage/', '.env'],    // paths excluded from monitoring
    'webhook'    => env('GHOSTWALL_WEBHOOK_URL', ''),
];
bash
composer 
bash
php artisan vendor:publish --provider="Vishalxtyagi\PhpGhostWall\GhostWallServiceProvider"
php artisan ghostwall:init   # compute initial hash tree
bash
php artisan ghostwall:init      # build initial hash tree
php artisan ghostwall:check     # manual integrity check
php artisan ghostwall:reset     # accept current state as new baseline