PHPackages                             azaharizaman/nexus-leave-management - 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-leave-management

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

azaharizaman/nexus-leave-management
===================================

Leave Management Domain Package - Pure business logic for leave operations

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

Since May 5Pushed 2mo agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (1)

Nexus Leave Management
======================

[](#nexus-leave-management)

**Pure domain logic for leave management operations**

Features
--------

[](#features)

- Leave application and approval
- Leave balance calculation
- Accrual strategies (monthly, fixed allocation, custom law-adjusted)
- Carry-forward processing
- Proration calculations
- Leave encashment
- Overlap detection
- Policy validation

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

[](#installation)

```
composer require azaharizaman/nexus-leave-management
```

Key Concepts
------------

[](#key-concepts)

### Contracts

[](#contracts)

- `LeaveRepositoryInterface` - Leave data access
- `LeaveBalanceRepositoryInterface` - Balance tracking
- `LeaveCalculatorInterface` - Balance calculations
- `AccrualStrategyInterface` - Accrual strategy contract
- `LeavePolicyInterface` - Policy enforcement

### Entities

[](#entities)

- `Leave` - Leave record entity
- `LeaveType` - Leave type definition
- `LeaveBalance` - Employee leave balance
- `LeaveEntitlement` - Leave entitlement rules

### Services

[](#services)

- `LeaveBalanceCalculator` - Balance computation
- `LeaveAccrualEngine` - Accrual processing
- `LeavePolicyValidator` - Policy compliance
- `LeaveOverlapDetector` - Overlap detection
- `CarryForwardProcessor` - Year-end carry-forward

Architecture
------------

[](#architecture)

This is a **framework-agnostic domain package**:

- Pure PHP 8.3+
- No framework dependencies
- Contract-driven design
- All dependencies via interfaces

Documentation
-------------

[](#documentation)

Comprehensive documentation is available in the `docs/` folder:

- **[Getting Started Guide](docs/getting-started.md)** - Quick start guide with prerequisites, core concepts, and first integration
- **[API Reference](docs/api-reference.md)** - Complete documentation of all interfaces, services, enums, and exceptions
- **[Integration Guide](docs/integration-guide.md)** - Framework-specific integration examples for Laravel and Symfony
- **[Examples](docs/examples/)** - Working code examples:
    - [Basic Usage](docs/examples/basic-usage.php) - Fundamental operations (balance checks, leave applications)
    - [Advanced Usage](docs/examples/advanced-usage.php) - Advanced scenarios (custom strategies, proration, carry-forward)

### Quick Links

[](#quick-links)

DocumentPurpose`REQUIREMENTS.md`Complete functional requirements (35 requirements)`IMPLEMENTATION_SUMMARY.md`Implementation progress and metrics`TEST_SUITE_SUMMARY.md`Test coverage and planned tests`VALUATION_MATRIX.md`Package valuation metrics ($43,000 estimated value)Contributing
------------

[](#contributing)

See [IMPLEMENTATION\_SUMMARY.md](IMPLEMENTATION_SUMMARY.md) for current implementation status and pending tasks.

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance84

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 72.3% 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 (764 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (283 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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