PHPackages                             vishalxtyagi/php-ghost-wall - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. vishalxtyagi/php-ghost-wall

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

vishalxtyagi/php-ghost-wall
===========================

A package for monitoring code integrity, alerting on tampering, and sending server information on boot.

v1.0.0(1y ago)08MITPHPCI passing

Since Aug 26Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/vishalxtyagi/php-ghost-wall)[ Packagist](https://packagist.org/packages/vishalxtyagi/php-ghost-wall)[ RSS](/packages/vishalxtyagi-php-ghost-wall/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

 [![PHP Ghost Wall](https://camo.githubusercontent.com/b7ffe617c2b3adf323c948b4b520a0537868ed03ab1d928c34a11862c8d207b1/68747470733a2f2f736869656c64636e2e6465762f6865616465722f676c6f772e7376673f7469746c653d5048502b47686f73742b57616c6c267375627469746c653d4c61726176656c2b7061636b6167652b666f722b636f64652d696e746567726974792b6d6f6e69746f72696e672532432b74616d7065722b616c657274732532432b616e642b7365727665722b646961676e6f7374696373266c6f676f3d6c61726176656c267468656d653d6461726b)](https://camo.githubusercontent.com/b7ffe617c2b3adf323c948b4b520a0537868ed03ab1d928c34a11862c8d207b1/68747470733a2f2f736869656c64636e2e6465762f6865616465722f676c6f772e7376673f7469746c653d5048502b47686f73742b57616c6c267375627469746c653d4c61726176656c2b7061636b6167652b666f722b636f64652d696e746567726974792b6d6f6e69746f72696e672532432b74616d7065722b616c657274732532432b616e642b7365727665722b646961676e6f7374696373266c6f676f3d6c61726176656c267468656d653d6461726b)

 [![Stars](https://camo.githubusercontent.com/7a75497f7bd51f9e197d1a4dd5e55aa33fc9b94f45e92d3b0fdf347342cdc2eb/68747470733a2f2f736869656c64636e2e6465762f6769746875622f73746172732f76697368616c7874796167692f7068702d67686f73742d77616c6c2e737667)](https://github.com/vishalxtyagi/php-ghost-wall/stargazers) [![License](https://camo.githubusercontent.com/87bd67ee86a79c33c1e5d935dd3dceee66edb6179faff70efc7327e579b9e9ce/68747470733a2f2f736869656c64636e2e6465762f6769746875622f6c6963656e73652f76697368616c7874796167692f7068702d67686f73742d77616c6c2e737667)](https://github.com/vishalxtyagi/php-ghost-wall) [![Last Commit](https://camo.githubusercontent.com/24c74896e463ecedf6445bc1155cd811f328187eacab445fe83cbd778f8a42e5/68747470733a2f2f736869656c64636e2e6465762f6769746875622f6c6173742d636f6d6d69742f76697368616c7874796167692f7068702d67686f73742d77616c6c2e737667)](https://camo.githubusercontent.com/24c74896e463ecedf6445bc1155cd811f328187eacab445fe83cbd778f8a42e5/68747470733a2f2f736869656c64636e2e6465762f6769746875622f6c6173742d636f6d6d69742f76697368616c7874796167692f7068702d67686f73742d77616c6c2e737667) [![Status: Working](https://camo.githubusercontent.com/625fc3f73932d62f8668a0f4d98ce2581eaea4bfe41531c699cee0a020f42f30/68747470733a2f2f736869656c64636e2e6465762f62616467652f7374617475732d776f726b696e672d3362383266362e737667)](https://camo.githubusercontent.com/625fc3f73932d62f8668a0f4d98ce2581eaea4bfe41531c699cee0a020f42f30/68747470733a2f2f736869656c64636e2e6465762f62616467652f7374617475732d776f726b696e672d3362383266362e737667) [![Laravel](https://camo.githubusercontent.com/a7e1fd8714fb8fad4b134ce0509e254f152bfed624e5f7f2fa684590e4477e6b/68747470733a2f2f736869656c64636e2e6465762f62616467652f6672616d65776f726b2d4c61726176656c2d4646324432302e7376673f6c6f676f3d6c61726176656c)](https://camo.githubusercontent.com/a7e1fd8714fb8fad4b134ce0509e254f152bfed624e5f7f2fa684590e4477e6b/68747470733a2f2f736869656c64636e2e6465762f62616467652f6672616d65776f726b2d4c61726176656c2d4646324432302e7376673f6c6f676f3d6c61726176656c) [![PHP](https://camo.githubusercontent.com/816fe59668ef07d3514c7a3cbfb115bcce9c6cd622cad90203789b3d7bce3d50/68747470733a2f2f736869656c64636e2e6465762f62616467652f6c616e67756167652d5048502d3737374242342e7376673f6c6f676f3d706870)](https://camo.githubusercontent.com/816fe59668ef07d3514c7a3cbfb115bcce9c6cd622cad90203789b3d7bce3d50/68747470733a2f2f736869656c64636e2e6465762f62616467652f6c616e67756167652d5048502d3737374242342e7376673f6c6f676f3d706870)

---

Laravel package that monitors your application's file integrity, alerts when code is tampered with, and sends server diagnostic information on boot. Drop it in and get tamper detection without building it from scratch.

> **Showcase:** [vt-php-ghost-wall.pages.dev](https://vt-php-ghost-wall.pages.dev)

What it does
------------

[](#what-it-does)

```
App boots → GhostWall checksums all source files
                │
                ├─ If files unchanged → silent pass
                │
                └─ If file modified/added/deleted → alert (log / email / webhook)

```

GhostWall computes a hash tree of your application source on first run and stores it. On every subsequent boot it re-hashes and compares. Any deviation triggers a configurable alert — useful for detecting unauthorized changes in production.

Install
-------

[](#install)

```
composer require vishalxtyagi/php-ghost-wall
```

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

```
php artisan vendor:publish --provider="Vishalxtyagi\PhpGhostWall\GhostWallServiceProvider"
php artisan ghostwall:init   # compute initial hash tree
```

Configuration (`config/ghostwall.php`)
--------------------------------------

[](#configuration-configghostwallphp)

```
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', ''),
];
```

Artisan commands
----------------

[](#artisan-commands)

```
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
```

What's next
-----------

[](#whats-next)

- CI verification integration — fail the pipeline if production hash tree doesn't match
- GPG-signing option for the hash tree file itself
- Admin dashboard panel for visual integrity status

---

 Built by [Vishal Tyagi](https://vishalxtyagi.in) · [Showcase](https://vt-php-ghost-wall.pages.dev) · [Tech debt tracker](https://github.com/vishalxtyagi/infra/blob/main/tech-debt.md)

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance65

Regular maintenance activity

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

721d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/68649083?v=4)[Vishal Tyagi](/maintainers/vishalxtyagi)[@vishalxtyagi](https://github.com/vishalxtyagi)

---

Top Contributors

[![vishalxtyagi](https://avatars.githubusercontent.com/u/68649083?v=4)](https://github.com/vishalxtyagi "vishalxtyagi (7 commits)")

### Embed Badge

![Health badge](/badges/vishalxtyagi-php-ghost-wall/health.svg)

```
[![Health](https://phpackages.com/badges/vishalxtyagi-php-ghost-wall/health.svg)](https://phpackages.com/packages/vishalxtyagi-php-ghost-wall)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B12.8k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

2044.7M351](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2430.8M432](/packages/open-telemetry-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
