PHPackages                             azaharizaman/nexus-laravel-sales - 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-laravel-sales

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

azaharizaman/nexus-laravel-sales
================================

Laravel adapter for Sales package with cross-package integrations

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

Since May 5Pushed 1mo agoCompare

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

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

Nexus Laravel Sales Adapter
===========================

[](#nexus-laravel-sales-adapter)

This adapter provides Laravel-specific implementations for the Sales package, enabling integration with other Nexus packages.

Purpose
-------

[](#purpose)

The Sales package is an atomic package that must remain independently publishable. This adapter layer provides the concrete implementations that integrate Sales with other packages like:

- **Nexus\\Receivable** - For credit limit checking and invoice generation
- **Nexus\\Inventory** - For stock reservation and availability checking

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

[](#installation)

```
composer require azaharizaman/nexus-laravel-sales
```

Adapters Provided
-----------------

[](#adapters-provided)

### ReceivableCreditLimitCheckerAdapter

[](#receivablecreditlimitcheckeradapter)

Implements `Nexus\Sales\Contracts\CreditLimitCheckerInterface` by delegating to `Nexus\Receivable\Contracts\CreditLimitCheckerInterface`.

### InventoryStockReservationAdapter

[](#inventorystockreservationadapter)

Implements `Nexus\Sales\Contracts\StockReservationInterface` by delegating to `Nexus\Inventory\Contracts\ReservationManagerInterface`.

### ReceivableInvoiceManagerAdapter

[](#receivableinvoicemanageradapter)

Implements `Nexus\Sales\Contracts\InvoiceManagerInterface` by delegating to `Nexus\Receivable\Contracts\ReceivableManagerInterface`.

Service Provider
----------------

[](#service-provider)

The `SalesAdapterServiceProvider` automatically binds the Sales interfaces to their adapter implementations when all required packages are available.

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

[](#architecture)

This follows the Nexus Three-Layer Architecture:

1. **Atomic Layer** (`packages/Sales`) - Pure business logic, no external dependencies
2. **Adapter Layer** (`adapters/Laravel/Sales`) - Framework-specific implementations
3. **Application Layer** - Uses adapters through interfaces

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

[](#dependencies)

- `azaharizaman/nexus-sales` - The atomic Sales package
- `azaharizaman/nexus-receivable` - For credit checking and invoice generation
- `azaharizaman/nexus-inventory` - For stock reservation
- `illuminate/support` - Laravel framework components
- `illuminate/database` - Laravel database components

###  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 (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.9M199](/packages/illuminate-broadcasting)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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