PHPackages                             kkosmider/lunarphp-omnibus - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kkosmider/lunarphp-omnibus

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kkosmider/lunarphp-omnibus
==========================

A LunarPHP package for tracking historical prices and Omnibus directive compliance.

1.0.4(1y ago)124MITPHP

Since Jan 13Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (10)Used By (0)

LunarPHP Omnibus
================

[](#lunarphp-omnibus)

A package to track historical prices of purchasable items in [LunarPHP](https://lunarphp.io/) for compliance with the [EU Omnibus Directive](https://eur-lex.europa.eu/eli/dir/2019/2161).

Features
--------

[](#features)

- Track historical prices for all purchasable models.
- Support for multi-currency and customer group pricing.
- Automatically log price changes.
- Retrieve the lowest price within the last 30 days.

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

[](#installation)

1. Install the package using Composer:

    ```
    composer require kkosmider/lunarphp-omnibus
    ```
2. Publish the migrations and configurations:

    ```
    php artisan vendor:publish --tag=omnibus.migrations
    ```
3. Add the `HasHistoricalPrices` trait to your purchasable models.

Usage
-----

[](#usage)

This package automatically listens to price changes and records them in the historical\_prices table. Use the HasHistoricalPrices trait in your purchasable models:

```
use Kkosmider\Omnibus\Traits\HasHistoricalPrices;

class ProductVariant extends \Lunar\Models\ProductVariant
{
    use HasHistoricalPrices;
}
```

Retrieve the lowest price within the last 30 days:

```
$variant = ProductVariant::find(1);

$lowestPrice = $variant->getHistoricalLowestPrice();
$variantHistoricalPrices = $variant->historicalPrices()->get();
```

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

[](#configuration)

Customize configurations in `config/omnibus.php` after publishing:

```
php artisan vendor:publish --tag=omnibus.config
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance42

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

4

Last Release

468d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a71e2a7197c09a5960d3b3bac9402a14a516521354f107c5144076c448248b42?d=identicon)[shepard153](/maintainers/shepard153)

---

Top Contributors

[![shepard153](https://avatars.githubusercontent.com/u/78200901?v=4)](https://github.com/shepard153 "shepard153 (19 commits)")

### Embed Badge

![Health badge](/badges/kkosmider-lunarphp-omnibus/health.svg)

```
[![Health](https://phpackages.com/badges/kkosmider-lunarphp-omnibus/health.svg)](https://phpackages.com/packages/kkosmider-lunarphp-omnibus)
```

###  Alternatives

[illuminate/conditionable

The Illuminate Conditionable package.

9043.1M32](/packages/illuminate-conditionable)[codingfreaks/cf-cookiemanager

Manage cookies, scripts, and GDPR compliance on your Typo3 website with CodingFreaks Typo3 Cookie Manager. Customize cookie banners, streamline workflow, and enhance user experience. Ensure GDPR compliance and take control of cookie management with our Typo3 cookie management extension. Visit the official Typo3 Documentation page to learn more.

1625.8k](/packages/codingfreaks-cf-cookiemanager)

PHPackages © 2026

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