PHPackages                             obelaw/pim - 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. obelaw/pim

ActiveLibrary

obelaw/pim
==========

PIM

03PHPCI passing

Since Feb 7Pushed 3mo agoCompare

[ Source](https://github.com/obelaw/pim)[ Packagist](https://packagist.org/packages/obelaw/pim)[ RSS](/packages/obelaw-pim/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Obelaw PIM
==========

[](#obelaw-pim)

A Product Information Management (PIM) package for Laravel.

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

[](#installation)

You can install the package via composer:

```
composer require obelaw/pim
```

Usage
-----

[](#usage)

You can use the `PIM` facade to manage products.

### Creating a Simple Product

[](#creating-a-simple-product)

To create a simple product, use `ProductDTO` with `productType` set to `'simple'`.

```
use Obelaw\Pim\Facades\PIM;
use Obelaw\Pim\Data\ProductDTO;

$simpleProductData = new ProductDTO(
    sku: 'TSHIRT-BLUE-M',
    name: 'Blue T-Shirt Medium',
    productType: 'simple',
    price: 19.99,
    description: 'A comfortable blue cotton t-shirt.'
);

$product = PIM::createProduct($simpleProductData);
```

### Creating a Product with Categories

[](#creating-a-product-with-categories)

You can assign categories to a product by passing an array of category IDs to the `categories` parameter in `ProductDTO`.

```
use Obelaw\Pim\Facades\PIM;
use Obelaw\Pim\Data\ProductDTO;

$productData = new ProductDTO(
    sku: 'SMART-WATCH-001',
    name: 'Smart Watch',
    productType: 'simple',
    price: 199.99,
    categories: [1, 5] // Array of Category IDs
);

$product = PIM::createProduct($productData);
```

### Creating a Configurable Product

[](#creating-a-configurable-product)

To create a configurable product (e.g., a T-Shirt with multiple sizes/colors), set `productType` to `'configurable'` and provide an array of `VariantDTO` objects.

```
use Obelaw\Pim\Facades\PIM;
use Obelaw\Pim\Data\ProductDTO;
use Obelaw\Pim\Data\VariantDTO;

$configurableProductData = new ProductDTO(
    sku: 'TSHIRT-BASE',
    name: 'T-Shirt',
    productType: 'configurable',
    price: 19.99,
    description: 'A basic t-shirt available in multiple sizes.',
    variants: [
        new VariantDTO(
            sku: 'TSHIRT-S',
            price: 19.99,
            stock: 10,
            attributes: [/* Attribute IDs if applicable */]
        ),
        new VariantDTO(
            sku: 'TSHIRT-M',
            price: 19.99,
            stock: 15
        ),
        new VariantDTO(
            sku: 'TSHIRT-L',
            price: 21.99, // Different price for Large
            stock: 5
        ),
    ]
);

$product = PIM::createProduct($configurableProductData);
```

### Retrieving a Product

[](#retrieving-a-product)

```
use Obelaw\Pim\Facades\PIM;

$productResource = PIM::getProduct($id);
```

Testing
-------

[](#testing)

Run the tests with:

```
composer test
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance54

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

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://avatars.githubusercontent.com/u/31162701?v=4)[komicho](/maintainers/komicho)[@komicho](https://github.com/komicho)

---

Top Contributors

[![komtcho](https://avatars.githubusercontent.com/u/12757671?v=4)](https://github.com/komtcho "komtcho (12 commits)")

### Embed Badge

![Health badge](/badges/obelaw-pim/health.svg)

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

PHPackages © 2026

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