PHPackages                             wearefar/laravel-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. wearefar/laravel-ecommerce

ActiveLibrary[Framework](/categories/framework)

wearefar/laravel-ecommerce
==========================

A Laravel package to build a simple ecommerce

v0.1.0(3y ago)037MITPHPPHP ^7.4|^8.0

Since Jul 25Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

A simple ecommerce solution for Laravel apps
============================================

[](#a-simple-ecommerce-solution-for-laravel-apps)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c2563bcef7e92dfce267ce00444abdcc5983c435211e5cd4dd48e78b6bc22826/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77656172656661722f6c61726176656c2d65636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wearefar/laravel-ecommerce)[![Total Downloads](https://camo.githubusercontent.com/4a4994a6c3e5849ae052f9c259d094a7caa2d4252adf3db944b0a43de28e5bfb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77656172656661722f6c61726176656c2d65636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wearefar/laravel-ecommerce)

A Laravel package to build a simple ecommerce.

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

[](#installation)

You can install the package via composer:

```
composer require wearefar/laravel-ecommerce
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="WeAreFar\Ecommerce\EcommerceServiceProvider" --tag="migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="WeAreFar\Ecommerce\EcommerceServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [
];
```

Add the path to the template files in your `tailwind.config.js` file.

```
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    './vendor/wearefar/ecommerce/resources/views/**/*.blade.php',
    ...
  ],
  ...
}
```

You can customize the views by exporting them to your `resources/views/vendor` directory using the `vendor:publish` command:

```
php artisan vendor:publish --provider="WeAreFar\Ecommerce\EcommerceServiceProvider" --tag="views"
```

### Preparing your model

[](#preparing-your-model)

To connect the shop with a model, the model must implement the following interface and trait:

```
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use WeAreFar\Ecommerce\HasOrders;
use WeAreFar\Ecommerce\OrderItem;

class Product extends Model implements OrderItem
{
    use HasOrders;
}
```

### Exclude webook endpoint from CSRF

[](#exclude-webook-endpoint-from-csrf)

```
protected $except = [
    'stripe/webhook',
];
```

Usage
-----

[](#usage)

```
// WIP
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you've found a bug regarding security please mail  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Victor Guerrero](https://github.com/vguerrerobosch)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

1387d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67029daed3151cef94a100b72be0eaf400c05f6c5f7b9b02a8495538d1471ce5?d=identicon)[vguerrerobosch](/maintainers/vguerrerobosch)

---

Top Contributors

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

---

Tags

alpinejsecommercelaravellivewirephptailwindcss

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/cashier

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

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

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

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

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)

PHPackages © 2026

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