PHPackages                             azaharizaman/nexus-loyalty - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. azaharizaman/nexus-loyalty

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

azaharizaman/nexus-loyalty
==========================

Framework-agnostic loyalty point and tier management engine

v0.1.0-alpha1(2mo ago)00MITPHPPHP ^8.3

Since May 5Pushed 2mo agoCompare

[ Source](https://github.com/azaharizaman/nexus-loyalty)[ Packagist](https://packagist.org/packages/azaharizaman/nexus-loyalty)[ RSS](/packages/azaharizaman-nexus-loyalty/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Nexus\\Loyalty
==============

[](#nexusloyalty)

Framework-agnostic loyalty point and tier management engine for the Nexus ERP ecosystem.

Overview
--------

[](#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

[](#core-principles)

1. **Framework-Agnostic**: Pure PHP 8.3 with no dependencies on Laravel or Symfony.
2. **Stateless Design**: All persistence is handled via externalized repository interfaces.
3. **Strict Immutability**: All Value Objects and core services follow strict immutability patterns.
4. **Multi-Tenancy Ready**: Designed to work within the Nexus multi-tenant ecosystem.

Features
--------

[](#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 &amp; 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
------------

[](#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
-----

[](#usage)

(Examples to be added as implementation progresses)

Installation
------------

[](#installation)

```
composer require azaharizaman/nexus-loyalty
```

License
-------

[](#license)

MIT License - see LICENSE file for details.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance84

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

81d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/117408?v=4)[Azahari Zaman](/maintainers/azaharizaman)[@azaharizaman](https://github.com/azaharizaman)

---

Top Contributors

[![azaharizaman](https://avatars.githubusercontent.com/u/117408?v=4)](https://github.com/azaharizaman "azaharizaman (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/azaharizaman-nexus-loyalty/health.svg)

```
[![Health](https://phpackages.com/badges/azaharizaman-nexus-loyalty/health.svg)](https://phpackages.com/packages/azaharizaman-nexus-loyalty)
```

###  Alternatives

[symfony/lock

Creates and manages locks, a mechanism to provide exclusive access to a shared resource

515139.2M711](/packages/symfony-lock)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k54](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k46](/packages/civicrm-civicrm-core)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M221](/packages/illuminate-broadcasting)[logiscape/mcp-sdk-php

Model Context Protocol SDK for PHP

367116.8k12](/packages/logiscape-mcp-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
