How to install Yoast SEO for TYPO3 using Composer

How to install Yoast SEO for TYPO3 using Composer

Table of contentsHow to install Yoast SEO for TYPO3 using ComposerTroubleshootingCachingComposer 2.0

How to install Yoast SEO for TYPO3 using Composer

Time needed: 5 minutes. Create a developer token Log in to your MyYoast account, go to Account > Profile > Developer Tokens and click Create Token if you don』t have a token yet. Copy the created token. Register your token with composer On the command line, go to the folder that holds your composer.json file and enter the following:composer config -g http-basic.my.yoast.com token [PASTE_YOUR_TOKEN] Add our repository Add our secure repository by adding the following:composer config repositories.my-yoast composer https://my.yoast.com/packages/ Install Yoast SEO Premium for TYPO3 Now you can install the plugin using:composer require yoast-seo-for-typo3/yoast_seo_premium

Troubleshooting

Caching

Sometimes inaccurate data is stuck in the Composer Cache. Please clear it.

Composer 2.0

Composer 2.0 changes the way repositories are prioritized. You can find more information on the Composer website. In this case, you can use the only attribute as:

view sourceprint?1["yoast-seo-for-typo3/yoast_seo_premium"]

So, your composer.js file should have a line like this:

view sourceprint?1{ 2"name": "example-site-com/typo3-website", 3"description": "TYPO3 Website", 4"repositories": { 5    "my-yoast": { 6       "type": "composer", 7        "url": "https://my.yoast.com/packages/" 8        "only": ["yoast-seo-for-typo3/yoast_seo_premium"]9}

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註