PHPackages                             nickdekruijk/shopwire - 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. [Payment Processing](/categories/payments)
4. /
5. nickdekruijk/shopwire

ActiveLibrary[Payment Processing](/categories/payments)

nickdekruijk/shopwire
=====================

A simple, easy to implement shopping cart and checkout package for Laravel using Livewire.

0.2.10(3mo ago)2121MITPHPPHP ^8.1

Since Aug 19Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/nickdekruijk/shopwire)[ Packagist](https://packagist.org/packages/nickdekruijk/shopwire)[ RSS](/packages/nickdekruijk-shopwire/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (13)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/5f3985c24ed78a06a1947b7153fad5bc0204d80c4e71a0fa37d66f4461718fb0/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b64656b7275696a6b2f73686f70776972652f762f737461626c65)](https://packagist.org/packages/nickdekruijk/shopwire)[![Latest Unstable Version](https://camo.githubusercontent.com/18a6329e4358c2fd3fb1e67be77270106a19b07c0206f4f91dbba5b89e45efc8/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b64656b7275696a6b2f73686f70776972652f762f756e737461626c65)](https://packagist.org/packages/nickdekruijk/shopwire)[![Monthly Downloads](https://camo.githubusercontent.com/ee0c38f7b7ef922f96be4ca50d5c48b0f3da4811c22798d9487e9a063989312b/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b64656b7275696a6b2f73686f70776972652f642f6d6f6e74686c79)](https://packagist.org/packages/nickdekruijk/shopwire)[![Total Downloads](https://camo.githubusercontent.com/fc202c3fc463c467c7eb77654b12f85c18d2df661f1583b46d085a471147e71d/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b64656b7275696a6b2f73686f70776972652f646f776e6c6f616473)](https://packagist.org/packages/nickdekruijk/shopwire)[![License](https://camo.githubusercontent.com/3b81feacac9f2b7f21b8a20d5586e10ba4562f5e11b58837c5dd90499d939b0d/68747470733a2f2f706f7365722e707567782e6f72672f6e69636b64656b7275696a6b2f73686f70776972652f6c6963656e7365)](https://packagist.org/packages/nickdekruijk/shopwire)

Shopwire
========

[](#shopwire)

A simple, easy to implement shopping cart and checkout package for Laravel 9 using Livewire.

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

[](#installation)

To install run the following command:

`composer require nickdekruijk/shopwire`

***Before your run php artisan migrate make sure your Product model is properly setup.***

Publish the config file with:

`php artisan vendor:publish --tag=config --provider="NickDeKruijk\Shopwire\ShopwireServiceProvider"`

Prepare your Product model
--------------------------

[](#prepare-your-product-model)

Add ShopwireProduct trait:

```
use NickDeKruijk\Shopwire\Traits\ShopwireProduct;
class Product extends Model
{
    use ShopwireProduct;
```

If your model is different from the default (App\\Models\\Product), you can change the model name in the config file.

Afterwards run the migration command: `php artisan migrate`

Environment
-----------

[](#environment)

To enable automatic country detection, add the following to your .env file:

```
LOCATION_TESTING=false

```

By defaults Shopwire uses Mollie as payment provider, set your Mollie API key in the .env file:

```
MOLLIE_KEY=test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

```

Webhooks and Csrf
-----------------

[](#webhooks-and-csrf)

To make the payment provider webhooks work you may need to update the `$except` array in `app\Http\Middleware\VerifyCsrfToken.php`

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

Logging
-------

[](#logging)

You need to make a logging channel called shopwire, add something like this to `config/logging.php`:

```
        'shopwire' => [
            'driver' => 'single',
            'path' => storage_path('logs/shopwire.log'),
            'level' => 'debug',
        ],
```

### Admin package integration

[](#admin-package-integration)

To manage products/vat/orders etc with the [nickdekruijk/admin](https://github.com/nickdekruijk/admin) package add the modules as described in [this example file](https://github.com/nickdekruijk/webshop/blob/master/src/examples/admin.md) to your `config/admin.php` file.

### Some seeds with data to start with

[](#some-seeds-with-data-to-start-with)

Dutch VAT `php artisan db:seed --class=NickDeKruijk\\Shopwire\\Seeds\\VatDutch`

Dutch Shipment methods `php artisan db:seed --class=NickDeKruijk\\Shopwire\\Seeds\\ShippingDutch`

License
-------

[](#license)

Shopwire is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance87

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Total

12

Last Release

95d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b01fc7c2c39bbe8f87b4afa70ffe1cf2bb787310e1d22fcfed6ae527d4573bb?d=identicon)[nickdekruijk](/maintainers/nickdekruijk)

---

Top Contributors

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

---

Tags

laravellivewireshopecommercewebshopcartshoppingcheckoutshoppingcartshopwire

### Embed Badge

![Health badge](/badges/nickdekruijk-shopwire/health.svg)

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

###  Alternatives

[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)[lunarphp/stripe

Stripe payment driver for Lunar.

2055.8k4](/packages/lunarphp-stripe)[sunnysideup/ecommerce

Silverstripe E-commerce Application

257.2k79](/packages/sunnysideup-ecommerce)

PHPackages © 2026

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