azaharizaman / nexus-resource-allocation
Allocation of capacity (% or hours per user per period), overallocation checks and double-booking prevention. Reusable for projects, HR capacity, shared resources.
Package info
github.com/azaharizaman/nexus-resource-allocation
pkg:composer/azaharizaman/nexus-resource-allocation
Requires
- php: ^8.3
- azaharizaman/nexus-common: dev-main
- psr/log: ^3.0
Requires (Dev)
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2026-05-05 03:14:28 UTC
README
Resource allocation and overallocation checks for the Nexus ERP ecosystem.
Overview
The Nexus\ResourceAllocation package is a Layer 1 atomic package that owns allocation records (who, when, percentage or hours), the rule that allocation cannot exceed 100% per user per day (BUS-PRO-0084), overallocation detection, and double-booking prevention (REL-PRO-0402). No project/task persistence—consumers pass assignment or demand IDs. Reusable for project staffing, HR capacity, shared resources.
Architecture
- Layer 1 Atomic Package. Pure PHP 8.3+. No framework dependencies.
- Namespace:
Nexus\ResourceAllocation
Key Interfaces
AllocationManagerInterface– create/update allocationsAllocationQueryInterface– read allocationsOverallocationCheckerInterface– detect and prevent over-allocation
Requirements (mapped)
- FUN-PRO-0571: Resource allocation and overallocation checks
- BUS-PRO-0084: Resource allocation percentage cannot exceed 100% per user per day
- REL-PRO-0402: Resource allocation MUST prevent double-booking
- PER-PRO-0357: Resource allocation view performance
Installation
composer require azaharizaman/nexus-resource-allocation
License
MIT.