Download the PHP package azaharizaman/nexus-human-resource-operations without Composer
On this page you can find all versions of the php package azaharizaman/nexus-human-resource-operations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download azaharizaman/nexus-human-resource-operations
More information about azaharizaman/nexus-human-resource-operations
Files in azaharizaman/nexus-human-resource-operations
Package nexus-human-resource-operations
Short Description HR Operations Orchestrator - Coordinates all HR domain packages including Leave, Attendance, Payroll, Employee, Shift, Disciplinary, Performance Review, Training, Recruitment, and Onboarding
License MIT
Informations about the package nexus-human-resource-operations
Nexus\HumanResourceOperations
⚠️ REFACTORED (Dec 2025): This orchestrator has been completely refactored to follow the Advanced Orchestrator Pattern.
📖 New Architecture: See NEW_ARCHITECTURE.md for complete documentation.
📜 Previous Design: See README.OLD.md for historical reference.
Quick Start
The HumanResourceOperations orchestrator coordinates HR workflows across multiple atomic packages using a clean, maintainable architecture.
Core Components
- Coordinators - Traffic cops that orchestrate workflows
- DataProviders - Aggregate data from multiple packages
- Rules - Composable validation logic
- Services - Complex business operations
- Workflows - Long-running stateful processes
- Listeners - Reactive event handlers
- DTOs - Strict type contracts
Example: Hiring Workflow
Example: Leave Application
Architecture Principles
This orchestrator follows the Advanced Orchestrator Pattern with these golden rules:
- Coordinators are Traffic Cops, not Workers - They direct flow, don't do work
- Data Fetching is Abstracted - DataProviders aggregate cross-package data
- Validation is Composable - Rules are individual, testable classes
- Strict Contracts - Always use DTOs, never raw arrays
- System First - Always use Nexus packages (Identity, Notifier, AuditLogger, etc.)
See NEW_ARCHITECTURE.md for complete details.
Directory Structure
Available Coordinators
| Coordinator | Purpose | Key Operations |
|---|---|---|
HiringCoordinator |
Process hiring decisions | processHiringDecision() |
LeaveCoordinator |
Manage leave applications | applyLeave(), approveLeave(), cancelLeave() |
AttendanceCoordinator |
(Planned) Attendance tracking | recordCheckIn(), detectAnomalies() |
PayrollCoordinator |
(Planned) Payroll processing | calculatePayroll(), generatePayslip() |
Authorization Policies
This orchestrator uses Nexus\Identity for context-aware authorization via PolicyEvaluatorInterface.
Policy-Based Authorization (ABAC)
Complex authorization scenarios (e.g., "Can user apply leave on behalf of employee?") are handled by policies that check relationships and context:
Registering Policies
Policies must be registered in your application's service provider:
📖 See: adapters/Laravel/HRM/docs/POLICY_REGISTRATION_EXAMPLE.md for complete examples.
📖 See: CODING_GUIDELINES.md - Section 5.1 for authorization patterns.
Installation
Dependencies:
azaharizaman/nexus-hrm- Employee managementazaharizaman/nexus-identity- User accounts and authorizationazaharizaman/nexus-party- Party recordsazaharizaman/nexus-org-structure- Organizational hierarchyazaharizaman/nexus-leave- Leave managementazaharizaman/nexus-notifier- Notificationsazaharizaman/nexus-audit-logger- Audit trails
Testing
Migration Guide
If migrating from the old architecture:
- UseCases → Coordinators - Entry points
- Pipelines → Workflows - Long-running processes
- Inline validation → Rules - Composable validation
- Array params → DTOs - Typed contracts
- Direct repo calls → DataProviders - Data aggregation
See NEW_ARCHITECTURE.md for complete migration guide.
License
MIT License
Documentation:
- New Architecture - Complete refactored design
- Old Architecture - Historical reference
- System Design Philosophy - Pattern rationale
All versions of nexus-human-resource-operations with dependencies
psr/log Version ^3.0
azaharizaman/nexus-common Version dev-main
azaharizaman/nexus-employee-profile Version dev-main
azaharizaman/nexus-attendance-management Version dev-main
azaharizaman/nexus-leave-management Version dev-main
azaharizaman/nexus-shift-management Version dev-main
azaharizaman/nexus-disciplinary Version dev-main
azaharizaman/nexus-performance-review Version dev-main
azaharizaman/nexus-training-management Version dev-main
azaharizaman/nexus-recruitment Version dev-main
azaharizaman/nexus-onboarding Version dev-main
azaharizaman/nexus-payroll Version dev-main
azaharizaman/nexus-payroll-mys-statutory Version dev-main
azaharizaman/nexus-identity Version dev-main
azaharizaman/nexus-crypto Version dev-main