thecapybaralph/laravel-uhoh
最新稳定版本:v1.0.0
Composer 安装命令:
composer require thecapybaralph/laravel-uhoh
包简介
Just a package to quickly check if your app is tampered with.
README 文档
README
Laravel Uhoh is a tiny integrity checker for your index.php. It monitors the file and fires events if anything changes.
This is a friendly guard, not a security guard dog. If someone can modify your application, they can modify Uhoh too. Use it as a warning tool, not a defense system.
Installation
You can install the package via composer:
composer require thecapybaralph/laravel-uhoh
You can publish the config file with:
php artisan vendor:publish --tag="laravel-uhoh-config"
Usage
$tripwire = \TheCapybaRalph\LaravelUhoh\Uhoh::run(); // returns true if check passes
You can also add this to your schedule
\Illuminate\Support\Facades\Schedule::command('uhoh:check')->hourly();
Creating a Listener
The package does not include built-in notifications by default. However, it fires two events that you can listen to in your application:
\TheCapybaRalph\LaravelUhoh\Events\IntegrityCheckFailed::class; \TheCapybaRalph\LaravelUhoh\Events\IntegrityCheckPassed::class;
You can attach listeners to these events to perform any action you need when an integrity check passes or fails, such as sending notifications, logging, or triggering custom workflows.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 37
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-27