# NGauge File Diff Module

## Purpose
Compare files between dev and live servers using zip uploads and hash lists.

## Usage
1. On live server, run MCP/collect-core-files.php to generate zip and hash list.
2. Upload zip via Yii2 UI on dev server.
3. Dev server compares files and displays differences.

## Structure
- `controllers/FileDiffController.php`: Handles upload and comparison.
- `services/FileDiffService.php`: Hash generation, comparison, cleanup.
- `views/index.php`: Upload form.
- `views/result.php`: Comparison result.
- `MCP/collect-core-files.php`: MCP command for file collection.

## Versioning
- Follows semver with `v` prefix.
- Update composer.json and tag releases as per workspace standards.

## Security
- Do not upload sensitive files.
- Use hashes for integrity checks.

## Requirements
- PHP 8.4+
- Yii2

## Example
```
php MCP/collect-core-files.php /path/to/corefiles /tmp/corefiles.zip
```
