Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

The Composer installer and the extension's folder name

How the legacy extension installer decides the folder a theme lands in - extra.ezpublish-legacy-extension-name, else the package name - why installer-name is not read, and how to check the result before publishing.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/extensions/composer-installer-and-extension-name.md

On this page

The Composer installer and the extension's folder name

This page is for designers publishing a theme as a Composer package. The folder name matters: settings such as DesignExtensions[]=mytheme and ActiveExtensions[]=mytheme name it, and a theme installed into a folder with another name is not found.

How the folder is chosen

The installer plugin (se7enxweb/exponential-legacy-installer, class LegacyExtensionInstaller) handles packages of type ezpublish-legacy-extension. Its rule, from its source:

  1. If composer.json has extra.ezpublish-legacy-extension-name, that is the folder name.
  2. Otherwise the part of the package name after the vendor is the folder name.

The folder is <legacy root>/extension/<folder name>.

composer.jsonFolder
"name": "acme/mytheme", no extraextension/mytheme
"name": "acme/my-theme", no extraextension/my-theme (a dash: not a valid extension name for the wizards)
"name": "acme/my-theme", extra.ezpublish-legacy-extension-name: my_themeextension/my_theme

A trap in generated files

The design extension wizard writes "name": "<vendor>/<name with dashes>". From Exponential 6.0.15 on it also writes extra.ezpublish-legacy-extension-name, so the folder is the extension name. Older wizards wrote only "extra": { "installer-name": "<name>" }, and this installer does not read installer-name: for a theme named my_theme the package installs into extension/my-theme. In such a file, add the key the installer reads:

"extra": {
    "ezpublish-legacy-extension-name": "my_theme"
}

You may keep installer-name for other installers; it does no harm.

Two installer packages

Published themes require se7enxweb/ezpublish-legacy-installer; the Exponential root requires se7enxweb/exponential-legacy-installer. Both are on Packagist and the root allows both as Composer plugins (config.allow-plugins). Requiring one of them in your theme is enough for the type to be handled.

Step by step: check it

  1. Read your extra block: grep -n -A3 '"extra"' composer.json.
  2. Install the theme into a test installation (Testing a Composer install).
  3. Check the folder: ls -d extension/<expected name> prints the folder.
  4. With composer -v, the installer also prints the directory it uses.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x