Skip to content

Installation

phil/commerce-product-template

Requirements

RequirementWhy
PHP 8.5 or laterReadonly classes, typed constants, new without parentheses
ext-mbstringThe length of labels in characters
phil/moneyPrices and supplements, in minor units of one currency

Installing

composer require phil/commerce-product-template

It is a library, not a bundle: there is nothing to register. Every type is a value that never changes once built, and VariantPlanner holds no state between two calls, so one instance serves every plan.

A Symfony application that stores templates and designs and generates its catalogue from them installs phil/commerce-product-template-bundle beside it.