Update PHP dependencies

This commit is contained in:
Kacper Donat 2021-03-31 21:08:33 +02:00
parent 0bdc9cafc0
commit 2f14e147b5
6 changed files with 706 additions and 531 deletions

View File

@ -9,5 +9,5 @@ http:
relay: "unix://var/roadrunner.sock" relay: "unix://var/roadrunner.sock"
static: static:
dir: "public" dir: "public"
forbid: [".php", ".htaccess"] forbid: [".php", ".htaccess"]

View File

@ -1,7 +1,8 @@
{ {
"name": "kadet/cojedzie", "name": "kadet/cojedzie",
"description": "Co Jedzie",
"type": "project", "type": "project",
"license": "MIT", "license": "MIT with Commons Clause",
"require": { "require": {
"php": "^7.1.3", "php": "^7.1.3",
"ext-ctype": "*", "ext-ctype": "*",

1206
api/composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -3,16 +3,18 @@ FROM php:7.4-fpm-alpine
ENV APP_ENV=dev ENV APP_ENV=dev
ENV DATABASE_URL="sqlite:///var/db/app.db" ENV DATABASE_URL="sqlite:///var/db/app.db"
RUN apk add --no-cache autoconf openssl-dev g++ make pcre-dev icu-dev zlib-dev libzip-dev git && \ COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
docker-php-ext-install bcmath intl opcache zip sockets;
# Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
RUN install-php-extensions bcmath intl opcache zip sockets xdebug-^3.0;
RUN apk add git;
# XDebug # XDebug
RUN pecl install xdebug-3.0.0 && docker-php-ext-enable xdebug
RUN echo "xdebug.mode=debug" >> $PHP_INI_DIR/conf.d/docker-php-ext-xdebug.ini && \ RUN echo "xdebug.mode=debug" >> $PHP_INI_DIR/conf.d/docker-php-ext-xdebug.ini && \
echo "xdebug.discover_client_host=On" >> $PHP_INI_DIR/conf.d/docker-php-ext-xdebug.ini; echo "xdebug.discover_client_host=On" >> $PHP_INI_DIR/conf.d/docker-php-ext-xdebug.ini;
RUN apk del --purge autoconf g++ make
# Blackfire # Blackfire
RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \ RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
&& curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/$version \ && curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/$version \
@ -22,9 +24,6 @@ RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
&& printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > $PHP_INI_DIR/conf.d/blackfire.ini \ && printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > $PHP_INI_DIR/conf.d/blackfire.ini \
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz && rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
#Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Timezone # Timezone
RUN ln -snf /usr/share/zoneinfo/Europe/Warsaw /etc/localtime && \ RUN ln -snf /usr/share/zoneinfo/Europe/Warsaw /etc/localtime && \
echo "date.timezone = Europe/Warsaw" >> /usr/local/etc/php/conf.d/datetime.ini; echo "date.timezone = Europe/Warsaw" >> /usr/local/etc/php/conf.d/datetime.ini;

View File

@ -41,6 +41,9 @@
"doctrine/dbal": { "doctrine/dbal": {
"version": "v2.8.0" "version": "v2.8.0"
}, },
"doctrine/deprecations": {
"version": "v0.5.3"
},
"doctrine/doctrine-bundle": { "doctrine/doctrine-bundle": {
"version": "2.0", "version": "2.0",
"recipe": { "recipe": {
@ -144,6 +147,9 @@
"jdorn/sql-formatter": { "jdorn/sql-formatter": {
"version": "v1.2.17" "version": "v1.2.17"
}, },
"jean85/pretty-package-versions": {
"version": "2.0.3"
},
"jms/metadata": { "jms/metadata": {
"version": "1.7.0" "version": "1.7.0"
}, },
@ -212,6 +218,9 @@
"phpdocumentor/type-resolver": { "phpdocumentor/type-resolver": {
"version": "0.4.0" "version": "0.4.0"
}, },
"phpstan/phpdoc-parser": {
"version": "0.4.14"
},
"psr/cache": { "psr/cache": {
"version": "1.0.1" "version": "1.0.1"
}, },

View File

@ -1 +1 @@
PHP_IDE_CONFIG=serverName=czydojade PHP_IDE_CONFIG=serverName=cojedzie