moztopia/lavackage
最新稳定版本:0.1.0
Composer 安装命令:
composer require moztopia/lavackage
包简介
A Laravel 12+ Package used for helpers, commands, and other common tools.
README 文档
README
Moztopia Lavackage is a Laravel 11+ package offering contributor-friendly commands, logging utilities, and shared framework helpers. Designed for clarity, reversibility, and ergonomic workflows.
🚀 Installation
composer require moztopia/lavackage
Lavackage uses Laravel's auto-discovery, so no manual provider registration is needed.
🛠️ Available Commands
lavackage:log
Manage Laravel's default log file with clear, reversible options:
php artisan lavackage:log [--clear] [--backup] [--threshold=LEVEL]
--clear→ wipeslaravel.logsafely--backup→ creates a timestamped backup before clearing--threshold=LEVEL→ filters log entries by severity (info,warning,error, etc.)
🧪 Testing
Lavackage uses Pest + Testbench for isolated Laravel testing:
./vendor/bin/pest
All tests run inside a temporary Laravel sandbox — no files are written to your repo.
🧩 Package Structure
src/
├── Console/
│ └── Commands/
│ └── LogCommand.php
├── LavackageServiceProvider.php
tests/
└── Feature/
└── Commands/
└── Log/
└── LogBackupTest.php
🧑💻 Contributing
We welcome PRs and feedback! Please follow Moztopia’s contributor guidelines:
- Use branded headers and blank lines for clarity
- Ensure all commands are reversible and container-safe
- Log operator actions via Laravel-native methods
🌐 Links
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-15