azaharizaman/nexus-loyalty
最新稳定版本:v0.1.0-alpha1
Composer 安装命令:
composer require azaharizaman/nexus-loyalty
包简介
Framework-agnostic loyalty point and tier management engine
README 文档
README
Framework-agnostic loyalty point and tier management engine for the Nexus ERP ecosystem.
Overview
The Nexus\Loyalty package provides a highly granular, atomic loyalty engine designed to manage member point balances, tier qualifications, and redemption constraints. It is built as a Layer 1 package, meaning it contains pure business logic with no framework dependencies.
Core Principles
- Framework-Agnostic: Pure PHP 8.3 with no dependencies on Laravel or Symfony.
- Stateless Design: All persistence is handled via externalized repository interfaces.
- Strict Immutability: All Value Objects and core services follow strict immutability patterns.
- Multi-Tenancy Ready: Designed to work within the Nexus multi-tenant ecosystem.
Features
- Point Accrual Engine: Precise point calculation with rounding strategies and multi-factor multipliers.
- Tier Management: Flexible tier qualification using rolling activity windows and retention logic.
- Redemption & Validation: Rule-based redemption with minimum thresholds and FIFO expiry prioritization.
- Point Integrity: Audit-ready adjustment logging and idempotency support.
- Coalition Support: Multi-brand point sharing and brand-specific balance tracking.
Architecture
- Layer 1 (Atomic Package): Contains pure domain logic, entities, and value objects.
- Namespace:
Nexus\Loyalty - Purity: No
use Illuminate\*or framework-specific imports allowed.
Usage
(Examples to be added as implementation progresses)
Installation
composer require azaharizaman/nexus-loyalty
License
MIT License - see LICENSE file for details.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-04