Download the PHP package wmd/craft-omnibus without Composer

On this page you can find all versions of the php package wmd/craft-omnibus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package craft-omnibus

Omnibus, Price History and Anchor Price for Craft Commerce

Price history per variant, and the two reference prices EU and Croatian law require next to a selling price:

Plus the daily price list the same decision package requires from every trader with a website (Odluka o objavi cjenika proizvoda i usluga, NN 101/2026): CSV and XML, prescribed columns, prescribed file name, published on the site, kept 30 days.

Requirements

Craft CMS 5.0+, Craft Commerce 5.0+, PHP 8.2+.

Installation

The plugin records a history row whenever a variant's base price changes, and the current price when a product is first saved.

Installing on a store that already has prices

The anchor is read from history. A store that installs the plugin after the reference day has no rows for that day; if its prices have not changed since, assert that once:

anchor/backfill without --as-of records today's price for variants that have no history at all.

Settings

Settings → Plugins → Omnibus, Price History and Anchor Price

Setting Default Notes
Reference day 2026-09-10 the day the anchor price is read for
Label empty printed next to the selling price; empty uses the translated default ("Anchor price", hr "Sidrena cijena")
Products listed after the reference day use their first price on the anchor then carries the listing date
Lowest-price window 30 days
Publish the daily price list on
Oblik / adresa / oznaka prodajnog objekta parts of the file name (čl. VI)
Publish directory @webroot/cjenik files must be public
Index route cjenik public page listing the files
Retention 30 days čl. VII
CSV delimiter ;
Field mapping brand: productsBrandCategories handles for marka, barkod, jedinica mjere, cijena za jedinicu mjere

Twig

anchor() accepts a Variant, a Product (its default variant) or an id and returns { price, date, source } where source is anchorDate or firstListing. lowestBefore(variant, saleStart = null, days = null) closes the window at saleStart, by default the moment the current price was recorded.

The original API stays: getVariantLowestPrice(id, days, fallback) and getProductLowestPrice(id, days, fallback).

Price list

Run publish from cron every day before 08:00 local time:

Columns, in the order of čl. III: naziv, sifra, marka, jedinica_mjere, cijena_za_jedinicu_mjere, maloprodajna_cijena, posebni_oblik_prodaje (DA/NE), sidrena_cijena, barkod, dostupnost. File name per čl. VI: {oblik}_{adresa}_{oznaka}_{broj-pohrane}_{YYYYMMDD_HHMMSS}.csv|xml. The decision does not prescribe column names or an XSD; adjust if the Ministry publishes a technical specification.

Console

Command Does
anchor/backfill [--as-of=Y-m-d] [--store=id] record the current price for variants with no history
anchor/show <variantId> print the anchor and the lowest price before now
price-list/publish [--store=id] write, prune, index
price-list/preview print rows

Legal references

This plugin implements the rules as published; it is not legal advice.

License

MIT. Developed by WMD.


All versions of craft-omnibus with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
craftcms/cms Version ^5.0.0
craftcms/commerce Version ^5.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wmd/craft-omnibus contains the following files

Loading the files please wait ...