Attention
We are revising the Getting Started guide for TYPO3 versions 12 and 13 (currently identical to the main branch for 14). Your feedback is essential to help us make it even better!
You can contribute by:
- Filling out this short survey to share your thoughts.
- Joining the conversation in our Slack channel, #typo3-documentation.
- Reporting any errors you find using the "Report an issue" button.
Thank you for helping us improve the guide!
Installing extensions
Both system extensions and third-party extensions are managed using Composer. Composer handles the installation of the extension and also installs any dependencies that may be required. Composer is also used to uninstall extensions.
Find the Composer package name for an extension
Visit the Extension Repository, and search for the extension.
On the extension page , under "Composer support", will be the Composer command required to install that extension.
For example, the extension EXT:news has the package name georgringer/news .
Typically the package name will be vendor + slash + extension key. However, if the extension key contains an underscore, it is replaced with a dash in the package name. For example: EXT:extension_builder:
- extension key
extension_
builder - vendor
friendsoftypo3
- Composer package name
- friendsoftypo3/extension-builder
Use composer require
to install the extension
composer require <packagename>
To install the news extension:
composer require georgringer/news
This will add the extension requirement to the installations composer.
and install the extension.
Whilst the extension is installed and activated automatically, it still needs to be set up before it can be used:
Setup the extension
./vendor/bin/typo3 extension:setup
The extension setup command takes care of executing additional installation procedures, such as database migrations and clearing caches if necessary. The extension setup command is not specific to a single extension but instead looks at the overall state and executes all necessary steps.
Uninstalling extensions
The composer command remove
uninstalls an extension.
composer remove georgringer/news
The updated composer.
file needs to be committed to the version
control system.
Installing local extensions
Local extensions including sitepackages and custom extensions also need to be installed using Composer.
Custom extensions should be placed in a dedicated, local directory: documentroot/
.
Once this directory exists, update the installations composer.
and add this directory
as a new repository:
{
"repositories": [
{
"type": "path",
"url": "./packages/*/"
},
],
}
Then run composer require
to the install the local extension my-
with vendor vendor
:
composer require vendor/my-local-extension:@dev
By executing this command, Composer locates vendor/
and then symlinks
it to typo3conf/
once composer install
is executed.
The setup from above defines that the extension is to be placed by composer into the folder :file:
if it has not been already there.
Additional information
Find out the extension key for an extension
The extension key of an extension can be found in its composer.
.
{
"name": "t3docs/blog-example",
"type": "typo3-cms-extension",
"..": "...",
"extra": {
"typo3/cms": {
"extension-key": "blog_example",
}
}
}
Before installing an extension, the extension key can be found on its page in the TYPO3 Extension Repository (TER).
The extension key is listed on the top. For the extension
EXT:news, the extension key is news
.