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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package core

# Reyhan Commerce Core (`reyhan-commerce/core`) ### Sovereign Enterprise Headless E-Commerce Engine for Laravel 13 **Engineered for High Concurrency, Double-Entry Financial Precision, and Modular Extensibility** [![License: MIT](https://img.shields.io/badge/License-MIT-emerald.svg)](LICENSE) [![Latest Version](https://img.shields.io/packagist/v/reyhan-commerce/core.svg?style=flat-square)](https://packagist.org/packages/reyhan-commerce/core) [![PHP Version](https://img.shields.io/badge/PHP-8.4%20%7C%208.5-blue.svg)](https://php.net) [![Laravel Version](https://img.shields.io/badge/Laravel-13.x-red.svg)](https://laravel.com) [![Documentation](https://img.shields.io/badge/Docs-Live%20Website-10b981.svg)](https://reyhan-commerce.github.io/docs/)

📖 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:


⚡ 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:

  1. Tier 1 (Redis Fast Locks): Atomic Redis decrements with 15-minute expiration window during initial checkout reservation.
  2. 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

PHP Build Version
Package Version
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package reyhan-commerce/core contains the following files

Loading the files please wait ...