syeedalireza/laravel-commerce-engine

Production-ready Laravel e-commerce engine with cart, checkout, multi-gateway payments (Stripe, PayPal), inventory management

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/syeedalireza/laravel-commerce-engine

dev-main 2026-01-31 08:15 UTC

This package is not auto-updated.

Last update: 2026-02-04 05:45:13 UTC


README

Tests License: MIT

Production-ready e-commerce engine for Laravel with cart management, checkout process, and multi-gateway payment integration (Stripe, PayPal).

Features

  • ? Shopping Cart - Full cart management
  • ? Product Catalog - Product and inventory management
  • ? Checkout Process - Complete checkout workflow
  • ? Multi-Gateway Payments - Stripe, PayPal support
  • ? Laravel 11+ - Latest Laravel support
  • ? Type-Safe - Full PHP 8.2+ type hints

Installation

composer require syeedalireza/laravel-commerce-engine

Quick Start

Shopping Cart

use LaravelCommerceEngine\Cart\ShoppingCart;

$cart = new ShoppingCart();
$cart->addItem('prod-1', 'Product Name', quantity: 2, price: 29.99);
$total = $cart->getTotal(); // 59.98

Checkout

use LaravelCommerceEngine\Checkout\CheckoutService;
use LaravelCommerceEngine\Payment\StripePaymentGateway;

$gateway = new StripePaymentGateway('your-stripe-key');
$checkout = new CheckoutService($gateway);

$result = $checkout->processCheckout($cart, $customerData);

License

MIT