t3graf / typo3-composer-auto-install
Setup TYPO3 on 'composer install'
Requires
- php: ^7 | ^8
- helhum/typo3-console: ^6.0 || ^7.0
- typo3/cms-composer-installers: ^2.0 || ^3.0
Suggests
- helhum/dotenv-connector: To be able to easily expose env vars from a .env file
Conflicts
- typo3-console/composer-auto-commands: < 0.3.0
README
This is a composer package that aims to automate TYPO3 install steps when installing TYPO3 with composer with the help of TYPO3 Console.
When executing a composer install
TYPO3 setup is performed, asking for database and credentials.
Once the setup is performed, respectively a LocalConfiguration.php
file is created for TYPO3,
consecutive composer install
calls will not trigger the setup again.
It is possible to set the environment variable TYPO3_IS_SET_UP=1
to disable the setup process.
This is helpful in continuous integration environments, where one would want to install dev
dependencies to perform automated testing, but a TYPO3 setup process is not required or wanted.
Installation
It is recommended to add this package as dev dependency, so that it does not interfere with build processes for deployment.
composer require --dev typo3-console/composer-typo3-auto-install