-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrecipe_dev_php.sh
executable file
·58 lines (49 loc) · 1.36 KB
/
recipe_dev_php.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
#/*
# * This file is part of TangoMan Provisions package.
# *
# * Copyright (c) 2025 "Matthias Morin" <[email protected]>
# *
# * This source file is subject to the MIT license that is bundled
# * with this source code in the file LICENSE.
# */
#/**
# * recipe dev php
# *
# * @license MIT
# * @author "Matthias Morin" <[email protected]>
# */
CURDIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
# shellcheck source=/dev/null
. "${CURDIR}/tools/src/colors/colors.sh"
UPDATE=true
OPTIND=0
while getopts :nh OPTION; do
case "${OPTION}" in
n) UPDATE=false;;
h) echo_warning "$(basename "${0}")";
echo_success 'description:' 2 14; echo_primary 'Recipe to provision javascript php environement\n'
echo_success 'usage:' 2 14; echo_primary "$(basename "${0}") -n (no-update) -h (help)\n"
exit 0;;
\?) echo_danger "error: invalid option \"${OPTARG}\"\n"
exit 1;;
esac
done
if [ "${UPDATE}" = true ]; then
./update.sh
./upgrade.sh
fi
./dev/install_php.sh
./dev/config_php.sh
./dev/install_php-modules.sh
./dev/config_php-xdebug.sh install
# ide
./ide/config_phpstorm.sh
./ide/install_phpstorm.sh
./ide/config_jetbrains_gitignore.sh
./ide/install_ide-url-handler.sh
# php / symfony
./dev/install_composer.sh
# ./dev/install_php-cs-fixer.sh
./dev/install_rector.sh
# ./dev/install_symfony-cli.sh