PHPackages                             laraplug/shop - 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. laraplug/shop

ActiveAsgard-module[Framework](/categories/framework)

laraplug/shop
=============

Laravel Ecommerce Module built on top of AsgardCMS

v0.3.0(8y ago)101485[2 issues](https://github.com/laraplug/shop/issues)MITPHPPHP &gt;=7.0.0CI failing

Since May 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/laraplug/shop)[ Packagist](https://packagist.org/packages/laraplug/shop)[ RSS](/packages/laraplug-shop/feed)WikiDiscussions master Synced 2d ago

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

[![Latest Stable Version](https://camo.githubusercontent.com/1455f43a1da68df14077a0ca36b42c1f3b4598f5d4ded4a67c043d20a8eddbaf/68747470733a2f2f706f7365722e707567782e6f72672f6c617261706c75672f73686f702f762f737461626c652e7376673f666f726d61743d666c61742d737175617265)](https://github.com/laraplug/shop/releases)[![Software License](https://camo.githubusercontent.com/4e46ff9f2b8e1c43471ec17029591ee954eb1ee818b1c918d2d8bd1fe11b35d3/68747470733a2f2f706f7365722e707567782e6f72672f6c617261706c75672f73686f702f6c6963656e73652e7376673f666f726d61743d666c61742d737175617265)](LICENSE)[![Daily Downloads](https://camo.githubusercontent.com/5aa990840a1f09c4bdb0225c88d04555c9c9a4bad253c0f3a5b649c71f4e7be6/68747470733a2f2f706f7365722e707567782e6f72672f6c617261706c75672f73686f702f642f6461696c792e7376673f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/laraplug/shop)[![Monthly Downloads](https://camo.githubusercontent.com/6392f7ad9c9e3950669b153c33c4ba3f0cf8ff4898ee4232c97e7c714eb34cc2/68747470733a2f2f706f7365722e707567782e6f72672f6c617261706c75672f73686f702f642f6d6f6e74686c792e7376673f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/laraplug/shop)[![Total Downloads](https://camo.githubusercontent.com/8b7b2824420fe644ffd8437afbccd7eba210f93da256e05f6a2bbdab4c56a1bd/68747470733a2f2f706f7365722e707567782e6f72672f6c617261706c75672f73686f702f642f746f74616c2e7376673f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/laraplug/shop)[![PHP7 Compatible](https://camo.githubusercontent.com/5ab06e607ddbc11fc8f7d38430b77b0b90e07a7a3acfa1d50e8dbcc6f4fd9e68/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laraplug/shop)

### This module is currently under active development.

[](#this-module-is-currently-under-active-development)

### Need help! English Translation is incomplete. Any PR would be appreciated :)

[](#need-help-english-translation-is-incomplete-any-pr-would-be-appreciated-)

Laraplug Shop
=============

[](#laraplug-shop)

**Laraplug Shop** is a flexible, extendable e-commerce module, built on top of [AsgardCMS](https://github.com/AsgardCms/Platform) platform.

Integrated with the modules below
[laraplug/product-module](https://github.com/laraplug/product-module)
[laraplug/attribute-module](https://github.com/laraplug/attribute-module)
[laraplug/cart-module](https://github.com/laraplug/cart-module)
[laraplug/order-module](https://github.com/laraplug/order-module)
[laraplug/theme-module](https://github.com/laraplug/theme-module) (Deprecated)

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
    - [Extend Product Model](#extend-product-model)
    - [Add EAV to Produt model](#add-eav-to-product-model)
    - [Register Your Product](#register-your-product)
- [About Laraplug](#about-laraplug)
- [Contributing](#contributing)

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

[](#installation)

1. Install the package via composer:

    ```
    composer require laraplug/shop
    ```
2. Execute migrations via [AsgardCMS](https://github.com/AsgardCms/Platform)'s module command:

    ```
    php artisan module:migrate Attribute
    php artisan module:migrate Product
    php artisan module:migrate Cart
    php artisan module:migrate Order --seed
    php artisan module:migrate Shop --seed
    ```
3. Execute publish via [AsgardCMS](https://github.com/AsgardCms/Platform)'s module command:

    ```
    php artisan module:publish Attribute
    php artisan module:publish Product
    php artisan module:publish Cart
    php artisan module:publish Order
    php artisan module:publish Shop
    ```
4. Done!

Usage
-----

[](#usage)

### Extend Product Model

[](#extend-product-model)

To create your own `Book` Product Eloquent model on `BookStore` module, just extend the `\Modules\Product\Entities\Product` model like this:

```
use Modules\Product\Entities\Product;

class Book extends Product
{
    // Override entityNamespace to identify your Model on database
    protected static $entityNamespace = 'bookstore/book';

    // Override this method to convert Namespace into Human-Readable name
    public function getEntityName()
    {
        return trans('bookstore::books.title.books');
    }

}
```

### Add EAV to Product model

[](#add-eav-to-product-model)

Add `$systemAttributes` to utilize [laraplug/attribute-module](https://github.com/laraplug/attribute-module) on code-level like this:

```
use Modules\Product\Entities\Product;

class Book extends Product
{
    ...

    // Set systemAttributes to define EAV attributes
    protected $systemAttributes = [
        'isbn' => [
            'type' => 'input'
        ],
        'media' => [
            'type' => 'checkbox',
            'options' => [
                'audio-cd',
                'audio-book',
                'e-book',
            ]
        ]
    ];
}
```

#### Available SystemAttributes Parameters

[](#available-systemattributes-parameters)

**type** : String of input type (list below)

- `input` : input\[type=text\]
- `textarea` : teaxarea
- `radio` : input\[type=radio\]
- `checkbox` : input\[type=checkbox\]
- `select` : select
- `multiselect` : select\[multiple\]

**options** : Array of option keys

**has\_translatable\_values** : boolean

### Register Your Product

[](#register-your-product)

You can register your Entity using `ProductManager` like this:

```
use Modules\Product\Repositories\ProductManager;
use Modules\BookStore\Products\Book;

class BookStoreServiceProvider extends ServiceProvider
{
    ...

    public function boot()
    {
        ...

        // Register Book
        $this->app[ProductManager::class]->registerEntity(new Book());

        ...
    }
}
```

### About Laraplug

[](#about-laraplug)

LaraPlug is a opensource project to build e-commerce solution on top of AsgardCMS.

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

[](#contributing)

We welcome any pull-requests or issues :)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.9% 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

2927d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bb11fb8b7cabfcca0fcf04d43fbaec7cb3da1b863a5ae1b287824e6fcf43c007?d=identicon)[darron1217](/maintainers/darron1217)

---

Top Contributors

[![wgh17](https://avatars.githubusercontent.com/u/20596348?v=4)](https://github.com/wgh17 "wgh17 (67 commits)")[![darron1217](https://avatars.githubusercontent.com/u/8064923?v=4)](https://github.com/darron1217 "darron1217 (38 commits)")[![ehdwns980416](https://avatars.githubusercontent.com/u/26425092?v=4)](https://github.com/ehdwns980416 "ehdwns980416 (5 commits)")

---

Tags

laravelmoduleshopecommercecartshoppingproductasgardcmsorder

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laraplug-shop/health.svg)

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

###  Alternatives

[fancyecommerce/fecshop

fancyecommerce yii2 fecshop

5.3k12.3k6](/packages/fancyecommerce-fecshop)[jsdecena/laracom

Laravel powered e-commerce

2.0k4.4k](/packages/jsdecena-laracom)[amsgames/laravel-shop

Package set to provide shop or e-commerce functionality (such as CART, ORDERS, TRANSACTIONS and ITEMS) to Laravel for customizable builds.

4845.9k](/packages/amsgames-laravel-shop)[sylius/product-bundle

Product catalog for your Symfony applications.

16324.5k12](/packages/sylius-product-bundle)[getcandy/core

GetCandy Laravel e-commerce core functionality.

156.6k3](/packages/getcandy-core)

PHPackages © 2026

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