Commit e803787c authored by Helmut Hummel's avatar Helmut Hummel
Browse files

Update composer.json examples

parent 9ddbc395
......@@ -61,11 +61,10 @@ As a second step, we are going to add additional packages. The commands must be
Using composer to install TYPO3 CMS is fairly simple, you just need to include the custom composer repository into your composer.json.
After you have done this, you can require the Core and / or extensions with the usual [composer versioning format][3].
In the example below, this will always get you the most current 6.2.x core of TYPO3 CMS, the most current version of news (including possible dependency!).
In the example below, this will always get you the most current 7.6.x core of TYPO3 CMS, the most current version of news (including possible dependency!).
**Pay attention to replace underscores "_" by a dash "-" in the extension key**. As example, extension **"tt_news" will be "tt-news"** in the composer.json.
{
"repositories": [
{
......@@ -74,8 +73,14 @@ In the example below, this will always get you the most current 6.2.x core of TY
}
],
"require": {
"typo3/cms": "~6.2",
"typo3-ter/news": "*"
"typo3/cms": "^7.6.9",
"typo3-ter/news": "^3.2.5"
},
"extra": {
"typo3/cms": {
"cms-package-dir": "{$vendor-dir}/typo3/cms",
"web-dir": "web"
}
}
}
......@@ -88,16 +93,27 @@ dependencies. The file must be placed at the root of your extension and must loo
{
"name": "vendor-name/my-ext",
"name": "vendor-name/my-ext-key",
"type": "typo3-cms-extension",
"description": "My description comes here",
"homepage": "https://example.com",
"license": ["GPL-2.0+"],
"keywords": ["TYPO3 CMS", "foo bar"],
"support": {
"issues": "https://forge.typo3.org/projects/extension-foo"
"issues": "https://forge.typo3.org/projects/extension-my_ext_key"
},
"require": {
"typo3/cms-core": "^6.2.14 || ^7.6.0"
},
"autoload": {
"psr-4": {
"VendorName\\MyExtKey\\": "Classes/"
}
},
"version": "x.y.z"
"replace": {
"my_ext_key": "self.version",
"typo3-ter/my-ext-key": "self.version"
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment