https://github.com/jschwind/phpcli-symfony
Create a Docker environment for a Symfony project.
https://github.com/jschwind/phpcli-symfony
docker docker-compose php php8 shell shell-script symfony
Last synced: about 1 year ago
JSON representation
Create a Docker environment for a Symfony project.
- Host: GitHub
- URL: https://github.com/jschwind/phpcli-symfony
- Owner: jschwind
- License: mit
- Created: 2024-04-11T14:11:51.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-28T09:49:49.000Z (about 1 year ago)
- Last Synced: 2025-05-28T10:48:25.746Z (about 1 year ago)
- Topics: docker, docker-compose, php, php8, shell, shell-script, symfony
- Language: PHP
- Homepage:
- Size: 48.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHPCLI-Symfony
Create a Docker environment for a Symfony project.
## Installation
```shell
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
```shell
sudo ln -s $(pwd)/createSFProject.sh /usr/local/bin
```
## Usage
createSFProject.sh [OPTIONS]
Create a Symfony project with specific Git and optional version parameters.
### Options
* `-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`).
## Examples
```shell
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
```