Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Agents
helgesverre/laravel-prunekeeper
claude-code
cursor
eloquent
model-pruning
archiving
exports
compression
pest
static-api

Laravel package that archives Eloquent records before pruning. Static API pattern (like Telescope/Horizon).

Install
php artisan boost:add-skill helgesverre/laravel-prunekeeper

Save this content to: AGENTS.md

# Prunekeeper - Agent Instructions

## Commands
- `just test` - Run all tests (requires Docker for database containers)
- `just test-unit` - Run unit tests only (no Docker needed)
- `just e2e` - Run end-to-end Laravel installation test
- `vendor/bin/pest --filter="test name"` - Run a single test
- `just format` - Format code with Laravel Pint
- `just analyse` - Run PHPStan level 6

## Architecture
Laravel package that archives Eloquent records before pruning. Static API pattern (like Telescope/Horizon).
- `src/Prunekeeper.php` - Main static class with all configuration callbacks
- `src/Exporters/` - CSV and SQL export implementations
- `src/Compression/` - Zip, Gzip, Bzip2, TarGzip drivers
- `src/Listeners/ArchiveBeforePruning.php` - Hooks into Laravel's ModelPruningStarting event
- `tests/` - Pest tests (Unit, Feature, Integration suites)

## Code Style
- PHP 8.2+, Laravel 11/12, strict types everywhere
- Use `Prunekeeper::` static calls, not dependency injection
- No comments in code unless complex logic requires explanation
- Follow existing patterns: look at neighboring files before adding new code

Prunekeeper - Agent Instructions

Commands

  • just test - Run all tests (requires Docker for database containers)
  • just test-unit - Run unit tests only (no Docker needed)
  • just e2e - Run end-to-end Laravel installation test
  • vendor/bin/pest --filter="test name" - Run a single test
  • just format - Format code with Laravel Pint
  • just analyse - Run PHPStan level 6

Architecture

Laravel package that archives Eloquent records before pruning. Static API pattern (like Telescope/Horizon).

  • src/Prunekeeper.php - Main static class with all configuration callbacks
  • src/Exporters/ - CSV and SQL export implementations
  • src/Compression/ - Zip, Gzip, Bzip2, TarGzip drivers
  • src/Listeners/ArchiveBeforePruning.php - Hooks into Laravel's ModelPruningStarting event
  • tests/ - Pest tests (Unit, Feature, Integration suites)

Code Style

  • PHP 8.2+, Laravel 11/12, strict types everywhere
  • Use Prunekeeper:: static calls, not dependency injection
  • No comments in code unless complex logic requires explanation
  • Follow existing patterns: look at neighboring files before adding new code
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console