Creating a new extension from scratch

First choose a unique Composer name and an extension key for your extension.

If you plan to publish your extension in the TYPO3 Extension Repository (TER), register an extension key.

  • Create a directory with the extension name
  • Create the composer.json file
  • Create the ext_emconf.php file for Classic mode installations and extensions what will be uploaded to TER

Installing the newly created extension

Since TYPO3 v11 extensions can only be installed using Composer as part of a Composer-based installation.

However, during development you should test your extension locally before publishing it. Create the extension directory in the packages directory inside the TYPO3 project root directory.

Then edit your project's composer.json (The one in the TYPO3 root directory, not the one in the extension) and add the following repository:

composer.json
{
    "repositories": [
        {
            "type": "path",
            "url": "packages/*"
        }
    ]
}
Copied!

After that install your extension via Composer:

composer req my-vendor/my-extension:"@dev"
Copied!