fratac / laravel-distributed-kv
Distributed key-value registry between Laravel applications using only PHP/Laravel.
v1.0.15
2026-01-30 21:37 UTC
Requires
- php: >=8.1
- illuminate/console: ^10.0|^11.0
- illuminate/database: ^10.0|^11.0
- illuminate/http: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
README
Laravel Distributed KV (key/value)
Distributed keyโvalue registry for Laravel applications โ no Redis required.
Sync configuration, feature flags, and shared state across multiple Laravel apps using only PHP, HTTP APIs, and scheduled commands.
๐ Features
- ๐ Distributed key/value store shared across multiple Laravel applications
- ๐ Sync via HTTP API (pull + push)
- ๐ Cronโbased synchronization (
php artisan kv:sync) - ๐ง Versioning + timestamp conflict resolution
- ๐๏ธ Soft delete with propagation
- ๐ก Automatic client discovery (new clients propagate to all others)
- ๐ Laravel events for every change:
KeyCreatedKeyUpdatedKeyDeletedKeySyncedClusterClientAdded
- ๐ ๏ธ Simple API (
DistributedKv::set(),get(),delete()) - ๐งฉ Admin panel (
/kv-admin) to inspect keys, versions, and cluster state - ๐งฑ Zero external dependencies โ no Redis, no queues, no message brokers
๐ฆ Installation
1. Require the package
composer require fratac/laravel-distributed-kv