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

ActiveLibrary

neyromanser/laravel-shop
========================

Order for Laravel Application.

v1.3.8(9y ago)3131MITPHP

Since May 18Pushed 9y ago2 watchersCompare

[ Source](https://github.com/neyromanser/laravel-shop)[ Packagist](https://packagist.org/packages/neyromanser/laravel-shop)[ Docs](https://github.com/neyromanser/laravel-shop)[ RSS](/packages/neyromanser-laravel-shop/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (5)Versions (15)Used By (0)

laravel-shop
============

[](#laravel-shop)

Shop module for Laravel 5 Include Cart and Order

Installation
============

[](#installation)

```
composer require "neyromanser/laravel-shop:1.*"

```

After installation，go to `config/app.php` under `providers` section to add the following:

```
Neyromanser\LaravelShop\LaravelShopServiceProvider::class

```

and under "aliases" add:

```
'Shop' => Neyromanser\LaravelShop\Facades\ShopFacade::class

```

publish the migration and config files with the command:

```
php artisan vendor:publish

```

Edit additional settings at `config/shop.php`

```
    return [
        'currency' => "грн."
    ];
```

Usage
=====

[](#usage)

Cart
----

[](#cart)

```
# Add to cart
Shop::Cart()->add([
    'id'      => $id,
    'name'    => $name,
    'qty'     => $request->input('qty', 1),
    'price'   => $item->price,
    'options' => $options
]);

# Remove from cart
Shop::Cart()->remove($id);

# Update cart
Shop::Cart()->update($id, $quantity);

# Cart total sum
Shop::Cart()->total()

# Cart positions amount
Shop::Cart()->count()

# Cart total products units
Shop::Cart()->count(false)

# Search in cart
Shop::Cart()->search(['id' => 123]);

# Associate cart with App\Model\Product
Shop::Cart()->associate('Product', 'App\\Model')

# New cart instance
Shop::Cart()->instance('wishlist')
```

Order
-----

[](#order)

```
# Create order
Shop::Order()->order(Auth::user()->id, [
    'shipping_method_id' => $request->input('shipping_method',0),
    'payment_method_id' => $request->input('payment_method',0),
    'shipping_address' => $request->input('address',''),
    'shipping_city' => $request->input('city',''),
    'shipping_name' => $request->input('name',''),
    'shipping_email' => $request->input('email',''),
    'shipping_phone' => $request->input('phone',''),
    'note' => $request->input('note','')
]);

# Add items to order
Shop::Order()->addItems($order, [
    [
        "description" => $name,
        "currency" => $currency,
        "line_item_id" => $item->id,
        "line_item_type" => "App\\ProductVariant",
        "price" => $item->price,
        "quantity" => $item->qty,
        "vat" => 0
    ],[
        "description" => $name,
        "currency" => $currency,
        "line_item_id" => $item->id,
        "line_item_type" => "App\\ProductVariant",
        "price" => $item->price,
        "quantity" => $item->qty,
        "vat" => 0
    ],

]);
```

Demo
====

[](#demo)

```
Shop::Cart()->instance('wishlist')->associate('Product', 'App')->add($addItem);
```

### based on

[](#based-on)

### look at

[](#look-at)

upd

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity71

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

Total

14

Last Release

3595d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28935498?v=4)[RaSta](/maintainers/RaSta)[@Rasta](https://github.com/Rasta)

---

Top Contributors

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

---

Tags

laravelshopcartorder

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.8k](/packages/larastan-larastan)[laravel/pulse

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

1.7k14.1M124](/packages/laravel-pulse)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M169](/packages/laravel-ai)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)

PHPackages © 2026

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