PHPackages                             veiliglanceren/laravel-webshop-product - 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. veiliglanceren/laravel-webshop-product

ActiveLibrary[Framework](/categories/framework)

veiliglanceren/laravel-webshop-product
======================================

Collection of resources for implementing a product structure in Laravel e-commerce projects

1.4.0(9mo ago)0187MITPHPPHP ^8.1CI passing

Since Jul 17Pushed 9mo agoCompare

[ Source](https://github.com/VeiligLanceren-nl/laravel-webshop-product)[ Packagist](https://packagist.org/packages/veiliglanceren/laravel-webshop-product)[ RSS](/packages/veiliglanceren-laravel-webshop-product/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (31)Used By (0)

Laravel Webshop Product
=======================

[](#laravel-webshop-product)

This package provides a modular way to manage products for your Laravel webshop. It is designed to be simple, extendable, and easily integrated into existing Laravel projects.

---

Features
--------

[](#features)

- Product model with Eloquent support
- Easy CRUD operations for products
- Migration and configuration publishing
- Extendable for custom features

---

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

[](#installation)

Require the package via Composer:

```
composer require veiliglanceren/laravel-webshop-product
```

---

Publish Assets
--------------

[](#publish-assets)

To publish configuration, migrations, and other assets:

```
php artisan vendor:publish --provider="VeiligLanceren\LaravelWebshopProduct\ProductServiceProvider"
```

---

Database Migration
------------------

[](#database-migration)

Run the migrations to create the necessary tables:

```
php artisan migrate
```

---

Usage
-----

[](#usage)

### Product Model

[](#product-model)

Use the provided `Product` model directly or extend it:

```
use VeiligLanceren\LaravelWebshopProduct\Models\WebshopProduct;

$products = WebshopProduct::all();
```

### CRUD Example

[](#crud-example)

```
// Create
$product = WebshopProduct::create([
    'name' => 'Example WebshopProduct',
    'price' => 99.99,
    'sku' => 'example-product'
]);

// Read
$product = WebshopProduct::find(1);

// Update
$product->update([
    'price' => 89.99,
]);

// Delete
$product->delete();
```

---

Database Structure
------------------

[](#database-structure)

TableColumns`webshop_products``id`, `name`, `slug`, `sku`, `price`, `description`, `is_visible`, `order`, timestamps`webshop_product_images``id`, `product_id`, `url`, `alt_text`, `is_primary`, `order`, timestamps`webshop_product_variants``id`, `product_id`, `name`, `sku`, `price`, `stock`, `is_default`, `order`, timestampsThese tables support full product management, media handling, variant selection, and categorization using a polymorphic relationship.

---

Extending Functionality
-----------------------

[](#extending-functionality)

You can extend the `Product` model or override views, controllers, and routes to fit your webshop needs.

---

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

[](#configuration)

If you published the config file, you can customize package settings in:

```
config/product.php

```

---

Testing
-------

[](#testing)

Run tests with PHPUnit:

```
php artisan test
```

---

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

[](#contributing)

Contributions, issues, and feature requests are welcome. Please follow the repository guidelines.

---

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

---

Links
-----

[](#links)

- [Initial structure pull request](https://github.com/VeiligLanceren-nl/laravel-webshop-product/pull/1)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance58

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Total

20

Last Release

280d ago

Major Versions

0.0.2 → 1.0.02025-07-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/22b99c08291f57985d16a87bcd5f1a3f4ae2e6332b5e04736b5bf4f0f91c3d19?d=identicon)[VeiligLanceren](/maintainers/VeiligLanceren)

---

Top Contributors

[![NielsHamelink-web](https://avatars.githubusercontent.com/u/67690385?v=4)](https://github.com/NielsHamelink-web "NielsHamelink-web (82 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/veiliglanceren-laravel-webshop-product/health.svg)

```
[![Health](https://phpackages.com/badges/veiliglanceren-laravel-webshop-product/health.svg)](https://phpackages.com/packages/veiliglanceren-laravel-webshop-product)
```

###  Alternatives

[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[ecotone/laravel

Laravel integration for Ecotone

21307.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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