laravel-commerce-engine maintained by syeedalireza
Description
Production-ready Laravel e-commerce engine with cart, checkout, multi-gateway payments (Stripe, PayPal), inventory management
Author
Last update
2026/01/31 09:15
(dev-main)
License
Downloads
0
Laravel Commerce Engine
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