Skip to content

Instantly share code, notes, and snippets.

@helhum
Last active January 28, 2022 09:49
Show Gist options
  • Save helhum/0ffd82525c90f305b81a8285329eb4f8 to your computer and use it in GitHub Desktop.
Save helhum/0ffd82525c90f305b81a8285329eb4f8 to your computer and use it in GitHub Desktop.
TYPO3 Extension composer.json essentials
{
"name": "vendor/ext-key",
"description": "Essential composer.json attributes",
"keywords": ["typo3", "extension", "composer.json"],
"homepage": "http://helhum.io",
"authors": [
{
"name": "Helmut Hummel",
"email": "info@helhum.io"
}
],
"license": "GPL-2.0-or-later",
"type": "typo3-cms-extension",
"require": {
"typo3/cms-core": "^9.5 || ^10.3",
"typo3/cms-frontend": "^9.5 || ^10.3",
"typo3/cms-scheduler": "^9.5 || ^10.3"
},
"replace": {
"typo3-ter/ext-key": "self.version"
},
"autoload": {
"psr-4": {
"Helhum\\ExtKey\\": "Classes/"
}
},
"extra": {
"typo3/cms": {
"extension-key": "ext_key"
}
}
}
@buepro
Copy link

buepro commented Apr 3, 2020

I encountered problems on packagist related to the replace-section. The part "ext_key": "self.version", was reported to not to be compatible with upcoming versions from composer. Looking at the composer configuration from sys_note it looks like the part could be left out when adding an extra-section:

	"extra": {
		"typo3/cms": {
			"extension-key": "sys_note"
		}
	},

@helhum
Copy link
Author

helhum commented Apr 4, 2020

@buepro updated the composer.json to be in line with current requirements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment