Download the PHP package reyhan-commerce/core without Composer
On this page you can find all versions of the php package reyhan-commerce/core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download reyhan-commerce/core
More information about reyhan-commerce/core
Files in reyhan-commerce/core
Package core
Short Description Next-Gen Headless E-Commerce Core Framework for Laravel 13
License MIT
Informations about the package core
📖 Overview
reyhan-commerce/core is the sovereign, engine-level framework library powering the Reyhan Commerce ecosystem. It provides the domain models, database migrations, commercial calculation pipelines, double-entry financial ledger, and high-concurrency reservation mechanics required to run modern, mission-critical e-commerce platforms.
Designed from first principles according to Farshid's Laravel Constitution:
- 100% Strict Typing: Zero implicit type coercion (
declare(strict_types=1);mandatory across all classes). - Single-Responsibility Actions: Business logic is encapsulated into
finalAction classes withexecute(). - Zero Repositories: Native, optimized Eloquent queries and relationships without leaky abstraction layers.
- Dynamic Extensibility: Models and pipelines are swappable at runtime without altering core source code.
- Two-Tier Concurrency Guard: In-memory Redis reservations backed by PostgreSQL pessimistic row locking (
lockForUpdate).
⚡ Installation & Quick Start
1. Require Core via Composer
Install the core package into any existing Laravel 13 application:
(Alternatively, scaffold a complete turnkey store application using composer create-project reyhan-commerce/reyhan my-store or the reyhan-commerce/installer CLI tool).
2. Publish Configuration & Run Migrations
3. Register Filament Admin Plugin (Optional)
If using Filament for administration, register the ReyhanCorePlugin in your panel provider:
🏛️ Domain Architecture & First-Class Facades
Reyhan Core provides clean, expressive facades for all core business domains:
| Facade | Service Class | Primary Responsibility |
|---|---|---|
Reyhan\Core\Facades\Reyhan |
Reyhan\Core\Support\Reyhan |
Model binding registry, versioning, runtime resolutions |
Reyhan\Core\Facades\Cart |
Reyhan\Core\Services\Cart\CartService |
Multi-channel cart lifecycle, persistence, items |
Reyhan\Core\Facades\Pricing |
Reyhan\Core\Services\Pricing\PricingService |
Multi-tier price computation, discounts, taxes |
Reyhan\Core\Facades\Inventory |
Reyhan\Core\Services\Inventory\StockReservationService |
Two-tier Redis & PostgreSQL stock locks |
Reyhan\Core\Facades\Checkout |
Reyhan\Core\Services\Checkout\CheckoutService |
Order creation pipelines, invoice snapshots |
Reyhan\Core\Facades\Ledger |
Reyhan\Core\Services\Accounting\LedgerService |
Double-entry accounting ledger & balance audits |
🧩 Dynamic Model Extensibility
Need to extend or replace the core Product or Order model with your own custom Eloquent model? Use Reyhan::useModel() in your application's AppServiceProvider:
Every relationship, calculation pipeline, and query inside Reyhan Core will automatically resolve and instantiate your extended model classes.
🛡️ Two-Tier Concurrency Protection
To guarantee zero overselling during high-traffic flash sales:
- Tier 1 (Redis Fast Locks): Atomic Redis decrements with 15-minute expiration window during initial checkout reservation.
- Tier 2 (PostgreSQL Pessimistic Lock): Database transaction using
ProductVariant::where('id', $id)->lockForUpdate()upon final payment settlement.
📚 Ecosystem Repositories
| Repository | Purpose | Packagist / Link |
|---|---|---|
reyhan-commerce/core |
Framework Core Library | reyhan-commerce/core |
reyhan-commerce/reyhan |
Starter Application Skeleton | reyhan-commerce/reyhan |
reyhan-commerce/installer |
Composer Global CLI Scaffolder | reyhan-commerce/installer |
reyhan-commerce/storefront-nuxt |
Nuxt 4 Commercial Storefront | GitHub Repository |
reyhan-commerce/docs |
Official VitePress Docs Site | Live Documentation |
🤝 Contributing
Please see ARCHITECTURE.md for details on code architecture, static analysis requirements, and pull request guidelines.
📄 License
The Reyhan Commerce Core framework is open-sourced software licensed under the MIT license.
All versions of core with dependencies
alareqi/filament-tree Version ^1.0
bezhansalleh/filament-shield Version ^4.3
bokshorn-it/filament-activity-timeline Version ^1.4
dedoc/scramble Version ^0.13.45
filament/filament Version ^5.8
filament/spatie-laravel-media-library-plugin Version ^5.8
filament/spatie-laravel-settings-plugin Version ^5.8
laravel/framework Version ^13.17
laravel/horizon Version ^5.49
laravel/octane Version ^2.19
laravel/pennant Version ^1.26
laravel/pulse Version ^1.8
laravel/reverb Version ^1.12
laravel/sanctum Version ^4.3
marcusvbda/filament-realtime-driver Version ^0.1.2
morilog/jalali Version ^3.4
rankbeam/laravel-seo-filament Version ^1.12
shuvroroy/filament-spatie-laravel-backup Version ^4.0
shuvroroy/filament-spatie-laravel-health Version ^3.3
spatie/laravel-data Version ^4.23
spatie/laravel-medialibrary Version ^11.0
spatie/laravel-permission Version ^8.3
spatie/laravel-settings Version ^3.9
spatie/laravel-sluggable Version ^4.0
zvizvi/filament-column-filters Version ^0.0.6
zvizvi/filament-notifications-tabs Version ^0.0.3