简体   繁体   中英

How to install an extension to TYPO3 using composer

working with TYPO3 and composer to learn TYPO3 basics. Got a first problem on trying the composer learning example extensions

Could not install distribution 'doc_tut_templating'
Extension Manager is in offline mode. No TER connection available.

OK, need to do it by composer. But how to? Just find how to setup TYPO3 with composer or create extension for use with composer. But how to I install an extension with composer?

Regrads n00n

With composer you can only put the sources in their correct positions; an extension still needs to be activated. You can this do in the Extensions model (aka extension manager) or use some automated method like Helmut's TYPO3 distribution uses. This distribution uses TYPO3 Surf and TYPO3 Console for a lot of tasks, one of which is activating the extensions which are required using composer.

You can find more information about using TER extensions with composer on the TYPO3 CMS Composer Repository

There is a nice article about what should be in a composer.json file for extensions if you need to create such a file: composer.json specification for TYPO3 extensions

Found a solution. Simply easy, to easy for me....

Search the extension here: https://composer.typo3.org/ Search for the extension

Take the name and require it in composer composer require typo3-ter/[Extension Name] → composer require typo3-ter/efempty

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM