Create a Docker environment for a Symfony project.
git clone https://github.com/jschwind/phpcli-symfony.git
cd phpcli-symfony
chmod +x createSFProject.sh
createSFProject.sh to PATH Variable or create a link, e.g. Arch/Manjaro Linux: ~/.bashrc
sudo ln -s $(pwd)/createSFProject.sh /usr/local/bin
createSFProject.sh [OPTIONS]
Create a Symfony project with specific Git and optional version parameters.
-project-name
: Name of the project.-git-username
: Git username.-git-email
: Git email.-php-version
: Optional. PHP version for the project (default:8.3
).-mariadb-version
: Optional. MariaDB version for the project (default:11.5
).-postgres-version
: Optional. Postgress version for the project (default:17.0
).-mysql-version
: Optional. MySQL version for the project (default:9.1
).-firebird-version
: Optional. Firebird version for the project (default:5.0
).-db-type
: Optional. Database type for the project (default:mariadb
).-symfony-version
: Optional. Symfony version for the project (default:7
).
createSFProject.sh -project-name=myproject -git-username=myusername -git-email=myemail@mydomain.tld -php-version=8.3 -mariadb-version=11.6 -postgres-version=17.0 -mysql-version=9.1 -firebird-version=5.0 -db-type=mariadb -symfony-version=7