PHPackages                             susheelbhai/laravel-ecom - 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. susheelbhai/laravel-ecom

ActiveLibrary[Framework](/categories/framework)

susheelbhai/laravel-ecom
========================

E-commerce layer for Laravel, designed to extend susheelbhai/laravel-basekit.

v1.4.0(1mo ago)016MITTypeScriptPHP ^8.2

Since Apr 16Pushed 1mo agoCompare

[ Source](https://github.com/susheelbhai/laravel-ecom)[ Packagist](https://packagist.org/packages/susheelbhai/laravel-ecom)[ RSS](/packages/susheelbhai-laravel-ecom/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (10)Used By (0)

Laravel Ecom
============

[](#laravel-ecom)

Full-stack e-commerce layer for Laravel (Inertia + React + Fortify + Spatie Permission/Media + Larapay).

> **Important**: Install this **after** `susheelbhai/laravel-basekit` is installed and you have completed the Basekit setup flow.

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

[](#requirements)

- PHP ^8.2
- Laravel 12 or 13
- `susheelbhai/laravel-basekit` already installed and configured
- Node.js 20+ (frontend toolchain)

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

[](#installation)

### Laravel

[](#laravel)

Require this package in your app and update Composer.

```
composer require susheelbhai/laravel-ecom

```

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

[](#configuration)

### Required command order

[](#required-command-order)

Run these commands in order.

Installs the required **Composer** and **NPM** packages into **your app** (already-installed packages are skipped).

```
php artisan ecom:install_package

```

What it installs:

- Uses Basekit’s installer helper (Fortify, Inertia, Spatie Permission/Media, Socialite providers, Ziggy, etc.)
- Adds e-commerce extras: `laravel/wayfinder`, `susheelbhai/larapay`, and the `@laravel/vite-plugin-wayfinder` NPM package

Publishes the e-commerce application files (controllers, models, routes, views, migrations, seeders, assets, etc.) into your app.

```
php artisan vendor:publish --tag=ecom --force

```

Registers the e-commerce **service providers** in `bootstrap/providers.php` (Inertia SSR guard during Vite HMR, review aggregate observer). Run this **after** `vendor:publish` so the provider classes already exist under `app/Providers/`. **With no flags**, only `bootstrap/providers.php` is updated (safe and idempotent; Basekit is not run).

```
php artisan ecom:initial_settings

```

If you have **not** run Basekit’s environment wizard yet and want it in the same session, use:

```
php artisan ecom:initial_settings --with-basekit

```

You should still publish e-com assets when needed; provider files under `app/Providers/` must exist before the app boots.

### Database

[](#database)

Refresh the database and seed:

```
php artisan migrate:fresh --seed

```

Adjust seeders to match your environment.

### Frontend (Vite, Wayfinder, React)

[](#frontend-vite-wayfinder-react)

After publishing, merge/replace your app’s root `package.json` and `vite.config.ts` with the versions provided by this package under `assets/root/` (or publish with `react_ecom_for_non_react_project` and reconcile conflicts).

Then install/build and generate Wayfinder routes:

```
npm install
npm run build
php artisan wayfinder:generate --no-interaction

```

Use `npm run dev` during development.

### Environment / config

[](#environment--config)

- Copy/merge required `.env` keys for payments (`config/payment.php`), mail, and third-party APIs from your reference project.
- `config/ecom.php` is merged by the package provider; publish config if you need to override defaults.

Installation with single action
-------------------------------

[](#installation-with-single-action)

From a fresh Laravel app (after Basekit is completed), run:

```
composer require susheelbhai/laravel-ecom

php artisan ecom:install_package
php artisan vendor:publish --tag=ecom --force
php artisan ecom:initial_settings
php artisan migrate:fresh --seed
npm install
npm run build
php artisan wayfinder:generate --no-interaction
npm run dev

```

License
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance94

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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 ~2 days

Total

9

Last Release

33d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/64020920?v=4)[Susheel Kumar Singh](/maintainers/susheelbhai)[@susheelbhai](https://github.com/susheelbhai)

---

Top Contributors

[![susheelbhai](https://avatars.githubusercontent.com/u/64020920?v=4)](https://github.com/susheelbhai "susheelbhai (6 commits)")

### Embed Badge

![Health badge](/badges/susheelbhai-laravel-ecom/health.svg)

```
[![Health](https://phpackages.com/badges/susheelbhai-laravel-ecom/health.svg)](https://phpackages.com/packages/susheelbhai-laravel-ecom)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M822](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[pinguo/php-msf

Pinguo Micro Service Framework For PHP

1.7k4.2k](/packages/pinguo-php-msf)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)

PHPackages © 2026

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