azaharizaman/nexus-laravel-sales
最新稳定版本:v0.1.0-alpha1
Composer 安装命令:
composer require azaharizaman/nexus-laravel-sales
包简介
Laravel adapter for Sales package with cross-package integrations
README 文档
README
This adapter provides Laravel-specific implementations for the Sales package, enabling integration with other Nexus packages.
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
composer require azaharizaman/nexus-laravel-sales
Adapters Provided
ReceivableCreditLimitCheckerAdapter
Implements Nexus\Sales\Contracts\CreditLimitCheckerInterface by delegating to Nexus\Receivable\Contracts\CreditLimitCheckerInterface.
InventoryStockReservationAdapter
Implements Nexus\Sales\Contracts\StockReservationInterface by delegating to Nexus\Inventory\Contracts\ReservationManagerInterface.
ReceivableInvoiceManagerAdapter
Implements Nexus\Sales\Contracts\InvoiceManagerInterface by delegating to Nexus\Receivable\Contracts\ReceivableManagerInterface.
Service Provider
The SalesAdapterServiceProvider automatically binds the Sales interfaces to their adapter implementations when all required packages are available.
Architecture
This follows the Nexus Three-Layer Architecture:
- Atomic Layer (
packages/Sales) - Pure business logic, no external dependencies - Adapter Layer (
adapters/Laravel/Sales) - Framework-specific implementations - Application Layer - Uses adapters through interfaces
Dependencies
azaharizaman/nexus-sales- The atomic Sales packageazaharizaman/nexus-receivable- For credit checking and invoice generationazaharizaman/nexus-inventory- For stock reservationilluminate/support- Laravel framework componentsilluminate/database- Laravel database components
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-04