Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

!!! Original Repository on: https://codeberg.org/kiesi/t3quickstart !!!

Mirror only on Github: https://github.com/thomaskieslich/t3quickstart

Quickstart a TYPO3 Project

Sometimes i need a fresh TYPO3 Project with or without content. This is a script to create it from Environment.

Setup

  1. Copy .env.local.dist to .env.local and adjust values (especially admin credentials):
    cp .env.local.dist .env.local
  2. Adjust version-specific settings in .env.<version> if needed

Configuration

Add-ons (in .env.<version> or .env.local)

Variable Default Description
INSTALL_PHPMYADMIN 0 Install ddev-phpmyadmin add-on
INSTALL_CAMINO_THEME 1 Install Camino Theme (TYPO3 14+ only)
CREATE_PACKAGES_DIR 0 Create packages/ directory for local extensions: 0=none, 1=local folder in project, 2=mount shared t3matrix/packages/ via Docker volume
GET_T3STATIC 0 Clone t3static extension from Codeberg into packages/t3static

Usage

Supported versions: 10, 11, 12, 13, 14

Version Install Command Delete Command
10 ./t3quickstart install 10 ./t3quickstart delete 10
11 ./t3quickstart install 11 ./t3quickstart delete 11
12 ./t3quickstart install 12 ./t3quickstart delete 12
13 ./t3quickstart install 13 ./t3quickstart delete 13
14 ./t3quickstart install 14 ./t3quickstart delete 14

Der Projektordner wird automatisch als typo3-v<version> angelegt. Ein eigener Name kann als dritter Parameter übergeben werden:

./t3quickstart install 14 my-custom-project
./t3quickstart delete 14 my-custom-project

After installation, open https://typo3-v<version>.ddev.site/typo3 and use the credentials from .env.local.

Local Extensions (packages directory)

To use local extensions across multiple TYPO3 instances, create a shared packages/ directory at the project root:

mkdir -p packages
# Place or clone extensions here, e.g.:
git clone https://github.com/example/my_extension.git packages/my_extension

Docker Volume Mount (CREATE_PACKAGES_DIR=2)

When using CREATE_PACKAGES_DIR=2 in .env.<version> or .env.local, the script automatically creates .ddev/docker-compose.packages.yaml to mount the shared packages directory:

services:
  web:
    volumes:
      - "/absolute/path/to/t3matrix/packages:/var/www/html/packages:cached"

The composer.json is automatically configured with:

{
    "repositories": [{
        "name": "local",
        "type": "path",
        "url": "packages/*"
    }]
}

Install the extension:

ddev composer require vendor/my_extension:@dev

Note: Composer commands should be run inside DDEV (ddev composer) to access the mounted packages directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages