PHPackages                             martin3r/platform-commerce - 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. martin3r/platform-commerce

ActiveLibrary

martin3r/platform-commerce
==========================

Commerce Module for Platform - E-Commerce Management

044PHP

Since Mar 23Pushed 1mo agoCompare

[ Source](https://github.com/martin3r-me/platforms-commerce)[ Packagist](https://packagist.org/packages/martin3r/platform-commerce)[ RSS](/packages/martin3r-platform-commerce/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Commerce Modul
==============

[](#commerce-modul)

Commerce-Modul für die Platform zur Verwaltung von Produkten, Artikeln, Attributen und Einstellungen.

📋 Übersicht
-----------

[](#-übersicht)

Das Commerce-Modul bietet eine vollständige E-Commerce-Lösung mit:

- Artikelverwaltung mit umfangreichen Metadaten
- Produktverwaltung mit Boards und Slots
- Attributsets und Attribut-Items
- Steuerkategorien und Steuerregeln
- Verkaufs-Kontexte
- Hersteller und Lieferanten

🚀 Installation
--------------

[](#-installation)

Das Modul wird automatisch über den Service Provider geladen, wenn es in der `composer.json` registriert ist.

📁 Struktur
----------

[](#-struktur)

```
commerce/
├── composer.json              # Package-Definition
├── config/
│   └── commerce.php          # Modul-Konfiguration
├── database/
│   └── migrations/           # Datenbank-Migrationen
├── resources/
│   └── views/
│       └── livewire/         # Blade Templates
├── routes/
│   ├── web.php              # Authentifizierte Routes
│   └── guest.php            # Öffentliche Routes
└── src/
    ├── CommerceServiceProvider.php  # Service Provider
    ├── Livewire/            # Livewire Komponenten
    ├── Models/              # Eloquent Modelle
    └── Services/            # Business Logic Services

```

🔧 Wichtige Komponenten
----------------------

[](#-wichtige-komponenten)

### Service Provider

[](#service-provider)

Der `CommerceServiceProvider` folgt dem Template-Pattern:

- **register()**: Config wird hier geladen (Laravel Best Practice)
- **boot()**: Modul-Registrierung, Routes, Views, Livewire

### Routes

[](#routes)

- **Web-Routes** (`routes/web.php`): Authentifizierte Commerce-Funktionen
- **Guest-Routes** (`routes/guest.php`): Öffentliche Commerce-Seiten (z.B. Produktkatalog)

### Models

[](#models)

- `CommerceArticle` - Artikel mit Preisen, Kategorien, etc.
- `CommerceProduct` - Produkte mit Boards und Slots
- `CommerceAttributeSet` - Attributsets für Produkte
- `CommerceTaxRule` - Steuerregeln
- Weitere Models für Hersteller, Lieferanten, etc.

### Livewire Components

[](#livewire-components)

- `Index` - Hauptübersicht
- `Articles/Index` - Artikel-Übersicht
- `Articles/Article` - Artikel-Detail
- `Products/Product` - Produkt-Detail
- `Products/Boards/Board` - Produkt-Board
- `Attributes/Index` - Attribute-Übersicht
- `Attributes/AttributeSet` - Attributset-Detail
- `Settings/Index` - Einstellungen

📝 Verwendung
------------

[](#-verwendung)

### Routes

[](#routes-1)

```
// Dashboard
Route::get('/', Index::class)->name('commerce.index');

// Artikel
Route::get('/articles', ArticlesIndex::class)->name('commerce.articles.index');
Route::get('/articles/{commerceArticle}', Article::class)->name('commerce.articles.show');

// Produkte
Route::get('/products', ProductsBoardsIndex::class)->name('commerce.products.index');
Route::get('/products/{commerceProduct}', Product::class)->name('commerce.products.show');
```

### Models

[](#models-1)

```
use Platform\Commerce\Models\CommerceArticle;

$article = CommerceArticle::where('team_id', $team->id)->first();
```

🎯 Best Practices
----------------

[](#-best-practices)

1. **Team-basiert**: Alle Daten sind team-basiert
2. **Activity Logging**: Models nutzen `LogsActivity` Trait
3. **UUIDs**: Alle Models verwenden UUIDs
4. **Policies**: Authorization über Policies

📚 Weitere Ressourcen
--------------------

[](#-weitere-ressourcen)

- Siehe `platform/modules/module-template` für Template-Pattern
- Siehe `platform/modules/hcm` für komplexere Beispiele
- Siehe `platform/core/src/PlatformCore.php` für Modul-Registrierung

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance59

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/624263472b888cbddf2459047c1ab71dafd2a5875da576e3675b9c3584dad922?d=identicon)[martin3r](/maintainers/martin3r)

---

Top Contributors

[![martin3r-me](https://avatars.githubusercontent.com/u/187852765?v=4)](https://github.com/martin3r-me "martin3r-me (2 commits)")

### Embed Badge

![Health badge](/badges/martin3r-platform-commerce/health.svg)

```
[![Health](https://phpackages.com/badges/martin3r-platform-commerce/health.svg)](https://phpackages.com/packages/martin3r-platform-commerce)
```

PHPackages © 2026

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