PHPackages                             azaharizaman/nexus-crm-operations - 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-crm-operations

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

azaharizaman/nexus-crm-operations
=================================

CRM Operations Orchestrator for cross-package workflow coordination in Nexus ERP

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

Since May 5Pushed 1mo agoCompare

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

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

Nexus CRM Operations Orchestrator
=================================

[](#nexus-crm-operations-orchestrator)

Cross-package workflow coordination for CRM operations in Nexus ERP.

Overview
--------

[](#overview)

This orchestrator package coordinates workflows that span multiple packages:

- **Lead Conversion** - Converting leads to opportunities with customer creation
- **Opportunity Closing** - Closing deals with quotation and order integration
- **Pipeline Analytics** - Cross-package analytics and reporting

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

[](#architecture)

This is an **Orchestrator Package** following Nexus ERP's package architecture:

- **Cross-package coordination** - Coordinates between CRM, Party, Sales, Workflow, and Notifier packages
- **Workflow management** - Manages complex multi-step business processes
- **Event-driven** - Responds to and emits domain events
- **Rule evaluation** - Applies business rules across package boundaries

Dependencies
------------

[](#dependencies)

### Required

[](#required)

- PHP ^8.3
- psr/log:^3
- psr/event-dispatcher:^1

### Suggested (for full functionality)

[](#suggested-for-full-functionality)

- `azaharizaman/nexus-crm` - CRM domain operations
- `azaharizaman/nexus-party` - Customer data integration
- `azaharizaman/nexus-sales` - Quotation and sales integration
- `azaharizaman/nexus-workflow` - Approval workflows
- `azaharizaman/nexus-notifier` - Notification services

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

[](#installation)

```
composer require azaharizaman/nexus-crm-operations
```

Features
--------

[](#features)

### Coordinators

[](#coordinators)

- **LeadConversionCoordinator** - Orchestrates lead to opportunity conversion
- **OpportunityCloseCoordinator** - Manages deal closing process
- **PipelineAnalyticsCoordinator** - Aggregates pipeline analytics

### Workflows

[](#workflows)

- **LeadToOpportunityWorkflow** - Multi-step lead conversion workflow
- **DealApprovalWorkflow** - Deal approval process with escalations
- **EscalationWorkflow** - SLA breach and escalation handling

### Rules

[](#rules)

- **LeadQualificationRule** - Validates lead qualification criteria
- **OpportunityApprovalRule** - Determines approval requirements
- **SLABreachRule** - Detects and handles SLA breaches

### Integration Services

[](#integration-services)

- **PartyIntegrationService** - Customer data integration
- **SalesIntegrationService** - Quotation and order integration
- **AnalyticsIntegrationService** - Analytics data integration

Usage
-----

[](#usage)

```
use Nexus\CRMOperations\Coordinators\LeadConversionCoordinator;
use Nexus\CRMOperations\Workflows\LeadToOpportunityWorkflow;

// Convert a lead with full orchestration
$coordinator = new LeadConversionCoordinator(
    $leadQuery,
    $leadPersist,
    $opportunityPersist,
    $customerProvider,
    $eventDispatcher
);

$result = $coordinator->convertLead($leadId);
```

Testing
-------

[](#testing)

```
./vendor/bin/phpunit
```

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

Author
------

[](#author)

Azahari Zaman ()

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance93

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

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

36d 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 (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[phpro/soap-client

A general purpose SoapClient library

8955.9M52](/packages/phpro-soap-client)[symfony/mailer

Helps sending emails

1.6k394.6M1.3k](/packages/symfony-mailer)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

1237.8M117](/packages/web-auth-webauthn-lib)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

51090.8k2](/packages/web-auth-webauthn-framework)[ecotone/ecotone

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

562565.8k41](/packages/ecotone-ecotone)

PHPackages © 2026

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