Attention
TYPO3 v11 has reached end-of-life as of October 31st 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
Managing 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.
Installing 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 news extension
has the package name georgringer/
.
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: 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
For any installed extension, the extension key can be found by looking at the
file system into the directory public/
.
The directory name of the extension is the same as the extension key.
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 news,
the extension key is news
.