Skip to content

Commit

Permalink
feat(PHP): install Composer
Browse files Browse the repository at this point in the history
  • Loading branch information
leon0399 committed Jul 31, 2024
1 parent 498f8e6 commit edfc74a
Show file tree
Hide file tree
Showing 6 changed files with 268 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker-compose.override.yml
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ RUN echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc
&& apt-get install -y \
php${PHP} \
php${PHP}-dev \
&& pecl install openswoole
&& pecl install openswoole \
&& bash -c "echo 'extension=openswoole' >> $(php -i | grep /.+/php.ini -oE)" \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# JavaScript
ARG NODE=20.11.0
Expand Down
1 change: 1 addition & 0 deletions php/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor/
2 changes: 2 additions & 0 deletions php/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
all:
composer install
5 changes: 5 additions & 0 deletions php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"openswoole/core": "^22.1.5"
}
}
256 changes: 256 additions & 0 deletions php/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit edfc74a

Please sign in to comment.