Download the PHP package iranimij/openlabel without Composer

On this page you can find all versions of the php package iranimij/openlabel. 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 openlabel

OpenLabel: product labels for Magento 2 and Hyvä

Labels that just work on Hyvä, free, with zero slowdown.

OpenLabel on a Hyvä store: twenty labels in twenty built-in designs on a category page (corner, ribbon, circle, pill and outline shapes, on the image and next to the price), a tooltip on hover, and the same labels on the product page

"Sale -25%", "New", "Only 3 left": rule-based product labels on listings, product pages, the cart, wish list, compare list and order emails. One query per page, zero layout shift, correct under Varnish for every customer group, no Tailwind rebuild. MIT.

Install

That is all on a stock Hyvä theme: no theme changes, no npm run build. In production mode, also run bin/magento setup:di:compile and bin/magento setup:static-content:deploy as for any module.

Quick start (under 5 minutes)

  1. In the admin, open Catalog › OpenLabel › Labels.
  2. Click the Sale -{SAVE_PERCENT}% starter. The label is live at once, and the message says how many products it matches.
  3. Open any discounted product, or a category with discounted products: the badge shows the real discount, e.g. "Sale -25%".

To change it, open the label. The form has these parts:

The live preview follows every change. Details: docs/admin.md.

Why OpenLabel

How it compares

OpenLabel 1.1 next to the two best-known paid label modules. Their columns come only from their public documentation and product pages (October 2026), never from their code. "Not in docs" means we found no mention, not that the feature is missing. Corrections are welcome as an issue.

OpenLabel 1.1 Amasty Product Labels Mirasvit Product Labels
Price Free, MIT Paid Paid
Hyvä ✓ native render package, included ✓ ✓
Text, shape and image labels ✓ ✓ ✓
Image formats PNG, JPG, GIF, SVG (sanitized), WebP, AVIF; size limit setting PNG, JPG, GIF, WebP Not in docs
Built-in designs 31, all WCAG AA contrast ✓ ready-made pack ✓
Size per phone, tablet, desktop ✓ Not in docs Not in docs
Custom CSS ✓ per design and global, sanitized, own permissions ✓ ✓
Entry animation and hover effect (CSS only, off for reduced motion) ✓ Through custom CSS Not in docs
Positions on the image 9 9 9
Positions around the image (above, below, left, right) 12 Not in docs Not in docs
Next to the price, next to Add to Cart, under the name ✓ ✓ Not in docs
Listing, search, product page, widgets, related / upsell / cross-sell ✓ ✓ ✓
Cart and mini cart ✓ (Hyvä) Paid add-on Not in docs
Checkout No (Hyvä Checkout planned on request) Paid add-on Not in docs
Wish list ✓ Not in docs Not in docs
Compare list ✓ Not in docs ✓
Order, invoice, shipment and credit memo emails ✓ Not in docs Not in docs
Hide labels on chosen pages ✓ ✓ Not in docs
Conditions: any attribute, category, SKU, on sale, new, stock, price ✓ ✓ ✓
Conditions: bestseller, most viewed ✓ Bestseller as add-on Not in docs
Condition: ships free ✓ Not in docs Not in docs
Configurable products: label follows the chosen variant ✓ Not in docs ✓
Variables: discount, prices, stock, SKU, any attribute, days left ✓ ✓ ✓
Variables: category, brand ✓ Not in docs Category
Hide the label when a variable is zero ✓ ✓ Not in docs
Live countdown ✓ Separate module Not in docs
Tooltip ✓ (hover, keyboard focus, touch) ✓ Not in docs
Click-through link (nofollow option) ✓ ✓ ✓
Schedule, store views, customer groups, priority ✓ ✓ ✓
Label texts translated EN, DE, FR, ES, NL, IT EN, DE Not in docs
Live preview and matched-products count in the admin ✓ Count Count
Labels on the product edit page, assign by hand ✓ Not in docs Not in docs
Dedicated indexer ✓ ✓ ✓
Cached per customer group in Varnish, no AJAX, zero layout shift ✓ Not in docs Not in docs
GraphQL (storefront) ✓ ✓ Not in docs
REST API ✓ create, read, update, delete ✓ Not in docs
Export and import (JSON, CLI); import from Smile ✓ Not in docs Not in docs
Remote storage (S3) for label images Should work, not tested ✓ Not in docs

Not in OpenLabel 1.1: GraphQL mutations for the admin, a bulk REST read, checkout labels, a Luma render package and importers from Amasty and Mirasvit (planned for 1.2).

Compatibility

Versions
Magento Open Source, Mage-OS, Adobe Commerce 2.4.7, 2.4.8, 2.4.9
PHP 8.2, 8.3, 8.4
Hyvä default theme 1.4.x and 1.5.x (both tested end to end on every change); 1.3.x best effort (not tested in CI)
MSI optional: stock conditions use the website's MSI stock when present, legacy stock otherwise

Other themes: the core package (iranimij/openlabel) works with any theme through two documented calls; see Custom themes. A Luma render package is planned.

Caching notes

Documentation

docs/ covers:

Packages

Package Purpose
iranimij/openlabel (this repo) Core: entities, rule conditions, indexer, resolver, admin, GraphQL, CLI
iranimij/openlabel-hyva Hyvä render package
iranimij/module-base Shared config tab and helpers. No license checks, no phone-home.
iranimij/openlabel-hyva-bundle Metapackage installing all three

Support and feedback

Notice

OpenLabel is an independent open-source project. It is not affiliated with, endorsed by, or sponsored by Hyvä Themes B.V., Adobe Inc., Amasty or Mirasvit. "Hyvä", "Magento", "Amasty" and "Mirasvit" are trademarks of their respective owners.

License

MIT. See LICENSE.


All versions of openlabel with dependencies

PHP Build Version
Package Version
Requires php Version ~8.2.0 || ~8.3.0 || ~8.4.0
iranimij/module-base Version ^1.0
magento/framework Version ^103.0.7
magento/module-backend Version ^102.0.7
magento/module-catalog Version ^104.0.7
magento/module-catalog-graph-ql Version ^100.4.6
magento/module-catalog-inventory Version ^100.4.7
magento/module-catalog-widget Version ^100.4.6
magento/module-config Version ^101.2.7
magento/module-customer Version ^103.0.7
magento/module-customer-graph-ql Version ^100.4.6
magento/module-graph-ql Version ^100.4.6
magento/module-review Version ^100.4.7
magento/module-rule Version ^100.4.6
magento/module-sales Version ^103.0.7
magento/module-sales-rule Version ^101.2.7
magento/module-store Version ^101.1.7
magento/module-ui Version ^101.2.7
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 iranimij/openlabel contains the following files

Loading the files please wait ...