PHPackages                             jmrashed/ecommerce - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. jmrashed/ecommerce

ActiveLibrary[Framework](/categories/framework)

jmrashed/ecommerce
==================

Advanced E-commerce Toolkit for Laravel Application

2.6.4(1mo ago)8331MITPHPPHP ^8.2CI failing

Since May 26Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/jmrashed/ecommerce)[ Packagist](https://packagist.org/packages/jmrashed/ecommerce)[ RSS](/packages/jmrashed-ecommerce/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (18)Versions (26)Used By (0)

Advanced E-commerce Toolkit for Laravel
=======================================

[](#advanced-e-commerce-toolkit-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a3ab4e917311904de6be0c3cbf4e386dc408db6106ae5fef80ba50772c168bb4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6d7261736865642f65636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jmrashed/ecommerce)[![Total Downloads](https://camo.githubusercontent.com/d2bcb0b8c2b2d80d1d73b7501c7b3919349fd2a15082d97571e600e44ea2dd21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6d7261736865642f65636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jmrashed/ecommerce)[![PHP Version](https://camo.githubusercontent.com/288d91f1690b24d00b5a7d20fe980c5d9e0f642840dd7349fa52b0fb4df8da50/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a6d7261736865642f65636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jmrashed/ecommerce)[![Laravel Version](https://camo.githubusercontent.com/af42a7d5dcc9b1553ed08f769b3207461a6c2b7f9704cca352b14c66bafc2c29/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302532433131253243313225324331332d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://laravel.com)[![License](https://camo.githubusercontent.com/1c2d2288ccc2d019bee8ab37f64d71c640a28d0cc2a88a0a488cf207e55e5d39/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a6d7261736865642f65636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Introduction
------------

[](#introduction)

The **Advanced E-commerce Toolkit** is a comprehensive Laravel package that provides everything needed to build a full-featured online store. It includes product catalog management (with variants/attributes), shopping cart, wishlist, checkout flow, Stripe/PayPal payments, order management, customer dashboards, admin panel, API endpoints, inventory tracking, coupons, reviews, shipping zones, loyalty points, and more.

Key benefits:

- Production-ready with migrations, factories, seeders, tests.
- Modular services (CartService, OrderService, PaymentService).
- Responsive Blade views for frontend + API support.
- Easy installation via Artisan commands.

Perfect for Laravel developers building SaaS, marketplaces, or custom stores.

Requirements
------------

[](#requirements)

RequirementVersionPHP^8.2Laravel^10.0 |^11.0 |^12.0 |^13.0Laravel Sanctum^3.0 |^4.0darkaonline/l5-swagger^8.5 |^9.0 |^10.0**Optional (suggested)**:

- `stripe/stripe-php` for Stripe payments.

Installation
------------

[](#installation)

1. **Install via Composer**:

    ```
    composer require jmrashed/ecommerce
    ```
2. **Install package** (registers provider, publishes assets):

    ```
    php artisan ecommerce:install
    ```

    Or manually:

    ```
    php artisan vendor:publish --provider=\"Jmrashed\\Ecommerce\\EcommerceServiceProvider\" --tag=ecommerce-config
    php artisan vendor:publish --tag=ecommerce-views
    php artisan vendor:publish --tag=ecommerce-assets
    ```
3. **Run migrations**:

    ```
    php artisan migrate
    ```
4. **(Optional) Seed demo data**:

    ```
    php artisan ecommerce:seed
    ```

Configuration
-------------

[](#configuration)

Copy `config/ecommerce.php` and update `.env`:

```
# Payments
STRIPE_KEY=pk_test_xxx
STRIPE_SECRET=sk_test_xxx
PAYPAL_CLIENT_ID=xxx
PAYPAL_SECRET=xxx

# Store
ECOMMERCE_CURRENCY=USD
ECOMMERCE_TAX_RATE=0.08
ECOMMERCE_DEFAULT_SHIPPING=5.00

# Other (full list in config/ecommerce.php)
```

Usage Examples
--------------

[](#usage-examples)

### Products &amp; Cart

[](#products--cart)

```
use Jmrashed\Ecommerce\Services\CartService;
use Jmrashed\Ecommerce\Models\Product;

// Add to cart
$cartService = app(CartService::class);
$cartService->add(1, 2); // product ID, quantity

// Totals with tax/shipping
$total = $cartService->getTotal();
$tax = $cartService->calculateTax($subtotal);
```

### Checkout &amp; Orders

[](#checkout--orders)

```
use Jmrashed\Ecommerce\Services\OrderService;

// Create order from cart
$order = $orderService->createFromCart($userId, $address);
```

### Payments

[](#payments)

```
use Jmrashed\Ecommerce\Services\PaymentService;

$paymentService = app(PaymentService::class);
$payment = $paymentService->processStripe($order, $token);
```

Full API: `/api/ecommerce/products`, `/api/ecommerce/cart`, etc.

Publishing Assets
-----------------

[](#publishing-assets)

```
php artisan vendor:publish --tag=ecommerce-views    # Blade templates
php artisan vendor:publish --tag=ecommerce-assets   # CSS/JS

```

Key Features Tables
-------------------

[](#key-features-tables)

### Models

[](#models)

ModelPurposeProductCatalog with images, variants, attributesCategory/Brand/TagOrganizationCartItem/WishlistSession-basedOrder/OrderItemFull lifecyclePayment/RefundGatewaysCustomer/AddressAccountsReview/CouponEngagement### Services

[](#services)

ServiceFeaturesCartServiceAdd/remove, totals, tax/shipping calcOrderServiceCreate, status updatePaymentServiceStripe/PayPal/CODProductServiceSearch/filter### Routes

[](#routes)

**Web**: `/products`, `/cart`, `/checkout`, `/customer/*`, `/admin/ecommerce/*`**API**: `/api/ecommerce/*` (auth/products/cart/orders/payments)

Testing
-------

[](#testing)

```
composer test                          # All tests
composer test:unit                     # Unit
composer test:feature                  # Feature
composer test:coverage                 # Coverage report
```

Scripts use `./run-tests.sh`.

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](CONTRIBUTING.md).

Security
--------

[](#security)

Report to [SECURITY.md](SECURITY.md) or .

Changelog
---------

[](#changelog)

[CHANGELOG.md](CHANGELOG.md).

License
-------

[](#license)

MIT. See [LICENSE](LICENSE).

---

⭐ Star on [GitHub](https://github.com/jmrashed/ecommerce)

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance91

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~31 days

Recently: every ~0 days

Total

23

Last Release

43d ago

Major Versions

1.0.0 → 2.0.02024-05-26

PHP version history (2 changes)1.0.1PHP ^8.1

v2.3.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/12aeaba318c81d8e123faa3b8961a4e8a1ebf876e2a73b1e1ad08b3e5fc2f901?d=identicon)[jmrashed](/maintainers/jmrashed)

---

Top Contributors

[![jmrashed](https://avatars.githubusercontent.com/u/8583051?v=4)](https://github.com/jmrashed "jmrashed (61 commits)")

---

Tags

amazoncartecommerceflipcartlaravelpackageshoppingtoolkitlaravellaravel-packageecommerceshopping cartpayment gatewaytoolkitmulti-languageJmrashed

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jmrashed-ecommerce/health.svg)

```
[![Health](https://phpackages.com/badges/jmrashed-ecommerce/health.svg)](https://phpackages.com/packages/jmrashed-ecommerce)
```

###  Alternatives

[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k49.4M479](/packages/laravel-scout)[laravel/lumen-framework

The Laravel Lumen Framework.

1.5k26.2M709](/packages/laravel-lumen-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
