Created
July 22, 2025 18:00
-
-
Save AniTexs/63c116ccbabc78831fd45ad94398bfa3 to your computer and use it in GitHub Desktop.
OpenAI Codex Laravel PHP & Composer Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| add-apt-repository -y ppa:ondrej/php | |
| apt-get update | |
| apt-get install -y \ | |
| php8.4 php8.4-cli php8.4-mbstring php8.4-xml php8.4-intl \ | |
| php8.4-gd php8.4-zip php8.4-curl php8.4-mysql \ | |
| curl gnupg lsb-release ca-certificates | |
| update-alternatives --install /usr/bin/php php /usr/bin/php8.4 84 | |
| update-alternatives --set php /usr/bin/php8.4 | |
| EXPECTED_CHECKSUM="$(curl -fsSL https://composer.github.io/installer.sig)" | |
| curl -fsSL https://getcomposer.org/installer -o composer-setup.php | |
| ACTUAL_CHECKSUM="$(sha384sum composer-setup.php | cut -d ' ' -f 1)" | |
| [ "$EXPECTED_CHECKSUM" = "$ACTUAL_CHECKSUM" ] || { echo "Composer installer corrupt" >&2; exit 1; } | |
| php composer-setup.php --install-dir=/usr/local/bin --filename=composer --quiet | |
| rm composer-setup.php | |
| composer install --ignore-platform-req=ext-bcmath | |
| php -v; composer -V |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment