From f27f1e9e12019fd2852bccb2d142ff3bfe0f8803 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 18 Nov 2022 10:38:36 +0200 Subject: [PATCH 01/30] Updated platforms for testing --- .github/workflows/docker-commit.yml | 65 +++++++++++++++++++++++++---- Dockerfile.fpm | 20 +++++---- Dockerfile.octane | 20 +++++---- Dockerfile.worker | 20 +++++---- README.md | 6 +-- 5 files changed, 93 insertions(+), 38 deletions(-) diff --git a/.github/workflows/docker-commit.yml b/.github/workflows/docker-commit.yml index cc66f84..a5ae007 100644 --- a/.github/workflows/docker-commit.yml +++ b/.github/workflows/docker-commit.yml @@ -20,9 +20,9 @@ jobs: fail-fast: false matrix: base-tag: - - 7.4-fpm-alpine - 8.0-fpm-alpine - 8.1-fpm-alpine + - 8.2-fpm-alpine steps: - uses: actions/checkout@v3 @@ -30,6 +30,17 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v2 + - name: Docker meta + id: docker_meta + uses: docker/metadata-action@v4.0.1 + with: + images: quay.io/renokico/laravel-base + tags: | + type=ref,event=pr,suffix=-${{ matrix.base-tag }} + type=raw,value=${{ github.sha }}-${{ matrix.base-tag }} + labels: | + quay.expires-after=7d + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -46,10 +57,19 @@ jobs: with: push: true context: . - tags: quay.io/renokico/laravel-base:${{ github.sha }}-${{ matrix.base-tag }} + tags: ${{ steps.docker_meta.outputs.tags }} + labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.fpm build-args: | BASE_TAG=${{ matrix.base-tag }} + cache-from: | + type=gha,scope=php-fpm + cache-to: | + type=gha,scope=php-fpm + platforms: | + linux/amd64 + linux/arm64 + linux/arm/v7 octane_push: if: "!contains(github.event.head_commit.message, 'skip ci')" @@ -62,12 +82,12 @@ jobs: fail-fast: false matrix: base-tag: - - 4.8-php8.0-alpine - - 4.7-php8.0-alpine - - 4.6-php8.0-alpine + - 5.0-php8.2-alpine + - 5.0-php8.1-alpine + - 5.0-php8.0-alpine + - 4.8-php8.2-alpine - 4.8-php8.1-alpine - # - 4.7-php8.1-alpine - # - 4.6-php8.1-alpine + - 4.8-php8.0-alpine steps: - uses: actions/checkout@v3 @@ -75,6 +95,17 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v2 + - name: Docker meta + id: docker_meta + uses: docker/metadata-action@v4.0.1 + with: + images: quay.io/renokico/laravel-base + tags: | + type=ref,event=pr,suffix=-${{ matrix.base-tag }} + type=raw,value=${{ github.sha }}-${{ matrix.base-tag }} + labels: | + quay.expires-after=7d + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -91,10 +122,19 @@ jobs: with: push: true context: . - tags: quay.io/renokico/laravel-base:octane-${{ github.sha }}-${{ matrix.base-tag }} + tags: ${{ steps.docker_meta.outputs.tags }} + labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.octane build-args: | BASE_TAG=${{ matrix.base-tag }} + cache-from: | + type=gha,scope=octane + cache-to: | + type=gha,scope=octane + platforms: | + linux/amd64 + linux/arm64 + linux/arm/v7 worker_push: if: "!contains(github.event.head_commit.message, 'skip ci')" @@ -107,6 +147,7 @@ jobs: fail-fast: false matrix: base-tag: + - 8.2-cli-alpine - 8.1-cli-alpine - 8.0-cli-alpine - 7.4-cli-alpine @@ -137,3 +178,11 @@ jobs: file: Dockerfile.worker build-args: | BASE_TAG=${{ matrix.base-tag }} + cache-from: | + type=gha,scope=worker + cache-to: | + type=gha,scope=worker + platforms: | + linux/amd64 + linux/arm64 + linux/arm/v7 diff --git a/Dockerfile.fpm b/Dockerfile.fpm index 1f9e99d..8a012cb 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -1,6 +1,6 @@ ARG BASE_TAG=8.1-fpm-alpine -FROM php:$BASE_TAG +FROM --platform=$BUILDPLATFORM php:$BASE_TAG RUN apk --update add \ wget \ @@ -27,10 +27,12 @@ RUN apk --update add \ libzip-dev \ gettext-dev \ libxslt-dev \ - libgcrypt-dev && \ - pecl channel-update pecl.php.net && \ - pecl install mcrypt redis-5.3.4 && \ + libgcrypt-dev ; \ + docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ ; \ + pecl channel-update pecl.php.net ; \ + pecl install mcrypt redis-5.3.4 ; \ docker-php-ext-install \ + gd \ mysqli \ mbstring \ pdo \ @@ -44,11 +46,11 @@ RUN apk --update add \ gettext \ soap \ sockets \ - xsl && \ - docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ && \ - docker-php-ext-install gd && \ - docker-php-ext-enable redis && \ - rm -rf /tmp/pear && \ + xsl ; \ + docker-php-ext-enable \ + redis \ + gd ; \ + rm -rf /tmp/pear ; \ rm /var/cache/apk/* WORKDIR /var/www/html diff --git a/Dockerfile.octane b/Dockerfile.octane index 431b266..1b52ee9 100644 --- a/Dockerfile.octane +++ b/Dockerfile.octane @@ -1,7 +1,7 @@ ARG BASE_TAG=4.6-php8.1-alpine # https://hub.docker.com/r/phpswoole/swoole -FROM phpswoole/swoole:$BASE_TAG +FROM --platform=$BUILDPLATFORM phpswoole/swoole:$BASE_TAG RUN apk --update add \ wget \ @@ -28,10 +28,12 @@ RUN apk --update add \ libzip-dev \ gettext-dev \ libxslt-dev \ - libgcrypt-dev && \ - pecl channel-update pecl.php.net && \ - pecl install mcrypt redis-5.3.4 && \ + libgcrypt-dev ; \ + docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ ; \ + pecl channel-update pecl.php.net ; \ + pecl install mcrypt redis-5.3.4 ; \ docker-php-ext-install \ + gd \ mysqli \ mbstring \ pdo \ @@ -45,11 +47,11 @@ RUN apk --update add \ gettext \ soap \ sockets \ - xsl && \ - docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ && \ - docker-php-ext-install gd && \ - docker-php-ext-enable redis && \ - rm -rf /tmp/pear && \ + xsl ; \ + docker-php-ext-enable \ + redis \ + gd ; \ + rm -rf /tmp/pear ; \ rm /var/cache/apk/* WORKDIR /var/www/html diff --git a/Dockerfile.worker b/Dockerfile.worker index fcfe176..e510b25 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -1,6 +1,6 @@ ARG BASE_TAG=8.1-cli-alpine -FROM php:$BASE_TAG +FROM --platform=$BUILDPLATFORM php:$BASE_TAG RUN apk --update add \ wget \ @@ -27,10 +27,12 @@ RUN apk --update add \ libzip-dev \ gettext-dev \ libxslt-dev \ - libgcrypt-dev && \ - pecl channel-update pecl.php.net && \ - pecl install mcrypt redis-5.3.4 && \ + libgcrypt-dev ; \ + docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ ; \ + pecl channel-update pecl.php.net ; \ + pecl install mcrypt redis-5.3.4 ; \ docker-php-ext-install \ + gd \ mysqli \ mbstring \ pdo \ @@ -44,11 +46,11 @@ RUN apk --update add \ gettext \ soap \ sockets \ - xsl && \ - docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ && \ - docker-php-ext-install gd && \ - docker-php-ext-enable redis && \ - rm -rf /tmp/pear && \ + xsl ; \ + docker-php-ext-enable \ + redis \ + gd ; \ + rm -rf /tmp/pear ; \ rm /var/cache/apk/* WORKDIR /var/www/html diff --git a/README.md b/README.md index aee3672..67693ce 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ FROM quay.io/renokico/laravel-base:octane-latest-php8.1-alpine COPY . /var/www/html -RUN mkdir -p /var/www/html/storage/logs/ && \ +RUN mkdir -p /var/www/html/storage/logs/ ; \ chown -R www-data:www-data /var/www/html WORKDIR /var/www/html @@ -59,7 +59,7 @@ FROM quay.io/renokico/laravel-base:latest-8.1-fpm-alpine COPY . /var/www/html -RUN mkdir -p /var/www/html/storage/logs/ && \ +RUN mkdir -p /var/www/html/storage/logs/ ; \ chown -R www-data:www-data /var/www/html WORKDIR /var/www/html @@ -74,7 +74,7 @@ FROM quay.io/renokico/laravel-base:worker-latest-8.1-cli-alpine COPY . /var/www/html -RUN mkdir -p /var/www/html/storage/logs/ && \ +RUN mkdir -p /var/www/html/storage/logs/ ; \ chown -R www-data:www-data /var/www/html WORKDIR /var/www/html From f39040fbe8bfaa145d1c6e57c9a96de64927ec05 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 18 Nov 2022 10:41:07 +0200 Subject: [PATCH 02/30] Removed 8.2 officials --- .github/workflows/docker-commit.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/docker-commit.yml b/.github/workflows/docker-commit.yml index a5ae007..fd5bb66 100644 --- a/.github/workflows/docker-commit.yml +++ b/.github/workflows/docker-commit.yml @@ -20,9 +20,8 @@ jobs: fail-fast: false matrix: base-tag: - - 8.0-fpm-alpine - 8.1-fpm-alpine - - 8.2-fpm-alpine + - 8.0-fpm-alpine steps: - uses: actions/checkout@v3 @@ -147,7 +146,6 @@ jobs: fail-fast: false matrix: base-tag: - - 8.2-cli-alpine - 8.1-cli-alpine - 8.0-cli-alpine - 7.4-cli-alpine From 2bf92f977fb7278f73c1802c64ad904cd22c8df5 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 18 Nov 2022 10:51:45 +0200 Subject: [PATCH 03/30] Removed 7.4 entirely Updated workflows --- .github/workflows/docker-commit.yml | 7 +-- .github/workflows/docker-latest-tag.yaml | 71 +++++++++++++++++++---- .github/workflows/docker-release-tag.yaml | 39 ++++++++++--- 3 files changed, 94 insertions(+), 23 deletions(-) diff --git a/.github/workflows/docker-commit.yml b/.github/workflows/docker-commit.yml index fd5bb66..4461f81 100644 --- a/.github/workflows/docker-commit.yml +++ b/.github/workflows/docker-commit.yml @@ -9,7 +9,7 @@ on: - "*" jobs: - fpm_push: + push_fpm: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-latest @@ -70,7 +70,7 @@ jobs: linux/arm64 linux/arm/v7 - octane_push: + push_octane: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-latest @@ -135,7 +135,7 @@ jobs: linux/arm64 linux/arm/v7 - worker_push: + push_worker: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-latest @@ -148,7 +148,6 @@ jobs: base-tag: - 8.1-cli-alpine - 8.0-cli-alpine - - 7.4-cli-alpine steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/docker-latest-tag.yaml b/.github/workflows/docker-latest-tag.yaml index b927617..acb7fc7 100644 --- a/.github/workflows/docker-latest-tag.yaml +++ b/.github/workflows/docker-latest-tag.yaml @@ -17,9 +17,8 @@ jobs: fail-fast: false matrix: base-tag: - - 7.4-fpm-alpine - - 8.0-fpm-alpine - 8.1-fpm-alpine + - 8.0-fpm-alpine steps: - uses: actions/checkout@v3 @@ -27,6 +26,14 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v2 + - name: Docker meta + id: docker_meta + uses: docker/metadata-action@v4.0.1 + with: + images: quay.io/renokico/laravel-base + tags: | + type=raw,value=latest-${{ matrix.base-tag }} + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -43,10 +50,19 @@ jobs: with: push: true context: . - tags: quay.io/renokico/laravel-base:latest-${{ matrix.base-tag }} + tags: ${{ steps.docker_meta.outputs.tags }} + labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.fpm build-args: | BASE_TAG=${{ matrix.base-tag }} + cache-from: | + type=gha,scope=php-fpm + cache-to: | + type=gha,scope=php-fpm + platforms: | + linux/amd64 + linux/arm64 + linux/arm/v7 push_octane: if: "!contains(github.event.head_commit.message, 'skip ci')" @@ -59,12 +75,12 @@ jobs: fail-fast: false matrix: base-tag: - - 4.8-php8.0-alpine - - 4.7-php8.0-alpine - - 4.6-php8.0-alpine + - 5.0-php8.2-alpine + - 5.0-php8.1-alpine + - 5.0-php8.0-alpine + - 4.8-php8.2-alpine - 4.8-php8.1-alpine - # - 4.7-php8.1-alpine - # - 4.6-php8.1-alpine + - 4.8-php8.0-alpine steps: - uses: actions/checkout@v3 @@ -72,6 +88,14 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v2 + - name: Docker meta + id: docker_meta + uses: docker/metadata-action@v4.0.1 + with: + images: quay.io/renokico/laravel-base + tags: | + type=raw,value=octane-latest-${{ matrix.base-tag }} + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -88,10 +112,19 @@ jobs: with: push: true context: . - tags: quay.io/renokico/laravel-base:octane-latest-${{ matrix.base-tag }} + tags: ${{ steps.docker_meta.outputs.tags }} + labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.octane build-args: | BASE_TAG=${{ matrix.base-tag }} + cache-from: | + type=gha,scope=octane + cache-to: | + type=gha,scope=octane + platforms: | + linux/amd64 + linux/arm64 + linux/arm/v7 push_worker: if: "!contains(github.event.head_commit.message, 'skip ci')" @@ -106,7 +139,6 @@ jobs: base-tag: - 8.1-cli-alpine - 8.0-cli-alpine - - 7.4-cli-alpine steps: - uses: actions/checkout@v3 @@ -114,6 +146,14 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v2 + - name: Docker meta + id: docker_meta + uses: docker/metadata-action@v4.0.1 + with: + images: quay.io/renokico/laravel-base + tags: | + type=raw,value=worker-latest-${{ matrix.base-tag }} + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -130,7 +170,16 @@ jobs: with: push: true context: . - tags: quay.io/renokico/laravel-base:worker-latest-${{ matrix.base-tag }} + tags: ${{ steps.docker_meta.outputs.tags }} + labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.worker build-args: | BASE_TAG=${{ matrix.base-tag }} + cache-from: | + type=gha,scope=worker + cache-to: | + type=gha,scope=worker + platforms: | + linux/amd64 + linux/arm64 + linux/arm/v7 diff --git a/.github/workflows/docker-release-tag.yaml b/.github/workflows/docker-release-tag.yaml index 8314547..708a5c3 100644 --- a/.github/workflows/docker-release-tag.yaml +++ b/.github/workflows/docker-release-tag.yaml @@ -17,9 +17,8 @@ jobs: fail-fast: false matrix: base-tag: - - 7.4-fpm-alpine - - 8.0-fpm-alpine - 8.1-fpm-alpine + - 8.0-fpm-alpine steps: - uses: actions/checkout@v3 @@ -57,6 +56,14 @@ jobs: file: Dockerfile.fpm build-args: | BASE_TAG=${{ matrix.base-tag }} + cache-from: | + type=gha,scope=php-fpm + cache-to: | + type=gha,scope=php-fpm + platforms: | + linux/amd64 + linux/arm64 + linux/arm/v7 push_octane: if: "!contains(github.event.head_commit.message, 'skip ci')" @@ -68,12 +75,12 @@ jobs: strategy: matrix: base-tag: - - 4.8-php8.0-alpine - - 4.7-php8.0-alpine - - 4.6-php8.0-alpine + - 5.0-php8.2-alpine + - 5.0-php8.1-alpine + - 5.0-php8.0-alpine + - 4.8-php8.2-alpine - 4.8-php8.1-alpine - # - 4.7-php8.1-alpine - # - 4.6-php8.1-alpine + - 4.8-php8.0-alpine steps: - uses: actions/checkout@v3 @@ -111,6 +118,14 @@ jobs: file: Dockerfile.octane build-args: | BASE_TAG=${{ matrix.base-tag }} + cache-from: | + type=gha,scope=octane + cache-to: | + type=gha,scope=octane + platforms: | + linux/amd64 + linux/arm64 + linux/arm/v7 push_worker: if: "!contains(github.event.head_commit.message, 'skip ci')" @@ -122,9 +137,9 @@ jobs: strategy: matrix: base-tag: + - 8.2-cli-alpine - 8.1-cli-alpine - 8.0-cli-alpine - - 7.4-cli-alpine steps: - uses: actions/checkout@v3 @@ -162,3 +177,11 @@ jobs: file: Dockerfile.worker build-args: | BASE_TAG=${{ matrix.base-tag }} + cache-from: | + type=gha,scope=worker + cache-to: | + type=gha,scope=worker + platforms: | + linux/amd64 + linux/arm64 + linux/arm/v7 From 388bc6a76f35495eb2eecf8cc34af8748c0edb47 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 18 Nov 2022 10:55:02 +0200 Subject: [PATCH 04/30] Updated missing flows --- .github/workflows/docker-commit.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-commit.yml b/.github/workflows/docker-commit.yml index 4461f81..f67745b 100644 --- a/.github/workflows/docker-commit.yml +++ b/.github/workflows/docker-commit.yml @@ -100,8 +100,8 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=ref,event=pr,suffix=-${{ matrix.base-tag }} - type=raw,value=${{ github.sha }}-${{ matrix.base-tag }} + type=ref,event=pr,suffix=-octane-${{ matrix.base-tag }} + type=raw,value=octane-${{ github.sha }}-${{ matrix.base-tag }} labels: | quay.expires-after=7d @@ -155,6 +155,17 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v2 + - name: Docker meta + id: docker_meta + uses: docker/metadata-action@v4.0.1 + with: + images: quay.io/renokico/laravel-base + tags: | + type=ref,event=pr,suffix=-worker-${{ matrix.base-tag }} + type=raw,value=worker-${{ github.sha }}-${{ matrix.base-tag }} + labels: | + quay.expires-after=7d + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -171,7 +182,8 @@ jobs: with: push: true context: . - tags: quay.io/renokico/laravel-base:worker-${{ github.sha }}-${{ matrix.base-tag }} + tags: ${{ steps.docker_meta.outputs.tags }} + labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.worker build-args: | BASE_TAG=${{ matrix.base-tag }} From b0aa71fed9cf370622c3a70f53d732d901c2a36d Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 18 Nov 2022 16:24:18 +0200 Subject: [PATCH 05/30] Removed node/npm, image/gd, mysql_pdo and redis; Made best possible cleanup; --- Dockerfile.fpm | 83 ++++++++++++++++++++++++-------------------- Dockerfile.octane | 85 ++++++++++++++++++++++++++-------------------- Dockerfile.worker | 83 ++++++++++++++++++++++++-------------------- docker-php-cleanup | 16 +++++++++ 4 files changed, 158 insertions(+), 109 deletions(-) create mode 100644 docker-php-cleanup diff --git a/Dockerfile.fpm b/Dockerfile.fpm index 8a012cb..701e49c 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -2,55 +2,66 @@ ARG BASE_TAG=8.1-fpm-alpine FROM --platform=$BUILDPLATFORM php:$BASE_TAG -RUN apk --update add \ - wget \ - curl \ +ARG PHPIZE_DEPS + +ADD docker-php-cleanup /usr/local/bin/ + +RUN apk --update --no-cache add \ + ${PHPIZE_DEPS} \ build-base \ composer \ - nodejs \ - npm \ + freetype-dev \ + gettext-dev \ + icu-dev \ + libgcrypt-dev \ libmcrypt-dev \ + libpq-dev \ libxml2-dev \ - pcre-dev \ - zlib-dev \ - autoconf \ + libxslt-dev \ + libzip-dev \ oniguruma-dev \ openssl \ openssl-dev \ - freetype-dev \ - libjpeg-turbo-dev \ - jpeg-dev \ - libpng-dev \ - imagemagick-dev \ - imagemagick \ - postgresql-dev \ - libzip-dev \ - gettext-dev \ - libxslt-dev \ - libgcrypt-dev ; \ - docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ ; \ + pcre-dev \ + wget \ + zlib-dev ; \ + apk add --update --no-cache --virtual \ + .persistent-deps \ + curl \ + ca-certificates \ + tar \ + xz ; \ pecl channel-update pecl.php.net ; \ - pecl install mcrypt redis-5.3.4 ; \ + pecl install mcrypt ; \ + docker-php-ext-enable mcrypt ; \ + docker-php-ext-configure intl ; \ docker-php-ext-install \ - gd \ - mysqli \ + bcmath \ + gettext \ + intl \ mbstring \ - pdo \ - pdo_mysql \ - xml \ + mysqli \ pcntl \ - bcmath \ + pdo \ pdo_pgsql \ - zip \ - intl \ - gettext \ soap \ sockets \ - xsl ; \ - docker-php-ext-enable \ - redis \ - gd ; \ - rm -rf /tmp/pear ; \ - rm /var/cache/apk/* + xml \ + xsl \ + zip ; \ + rm -rf /tmp/* \ + /usr/local/bin/phpdbg \ + /usr/local/bin/php-cgi \ + /usr/src/php.tar* \ + /usr/includes/* \ + /usr/share/man/* \ + /var/cache/apk/* \ + /var/tmp/* ; \ + apk del --purge .phpize-deps ; \ + apk del --purge build-base ; \ + apk del --purge ${PHPIZE_DEPS} ; \ + docker-php-source delete ; \ + ln -sf $(which composer.phar) $(which composer) ; \ + chmod +x /usr/local/bin/docker-php-cleanup WORKDIR /var/www/html diff --git a/Dockerfile.octane b/Dockerfile.octane index 1b52ee9..2846caf 100644 --- a/Dockerfile.octane +++ b/Dockerfile.octane @@ -1,58 +1,69 @@ -ARG BASE_TAG=4.6-php8.1-alpine +ARG BASE_TAG=4.8-php8.1-alpine # https://hub.docker.com/r/phpswoole/swoole FROM --platform=$BUILDPLATFORM phpswoole/swoole:$BASE_TAG -RUN apk --update add \ - wget \ - curl \ +ARG PHPIZE_DEPS + +ADD docker-php-cleanup /usr/local/bin/ + +RUN apk --update --no-cache add \ + ${PHPIZE_DEPS} \ build-base \ composer \ - nodejs \ - npm \ + freetype-dev \ + gettext-dev \ + icu-dev \ + libgcrypt-dev \ libmcrypt-dev \ + libpq-dev \ libxml2-dev \ - pcre-dev \ - zlib-dev \ - autoconf \ + libxslt-dev \ + libzip-dev \ oniguruma-dev \ openssl \ openssl-dev \ - freetype-dev \ - libjpeg-turbo-dev \ - jpeg-dev \ - libpng-dev \ - imagemagick-dev \ - imagemagick \ - postgresql-dev \ - libzip-dev \ - gettext-dev \ - libxslt-dev \ - libgcrypt-dev ; \ - docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ ; \ + pcre-dev \ + wget \ + zlib-dev ; \ + apk add --update --no-cache --virtual \ + .persistent-deps \ + curl \ + ca-certificates \ + tar \ + xz ; \ pecl channel-update pecl.php.net ; \ - pecl install mcrypt redis-5.3.4 ; \ + pecl install mcrypt ; \ + docker-php-ext-enable mcrypt ; \ + docker-php-ext-configure intl ; \ docker-php-ext-install \ - gd \ - mysqli \ + bcmath \ + gettext \ + intl \ mbstring \ - pdo \ - pdo_mysql \ - xml \ + mysqli \ pcntl \ - bcmath \ + pdo \ pdo_pgsql \ - zip \ - intl \ - gettext \ soap \ sockets \ - xsl ; \ - docker-php-ext-enable \ - redis \ - gd ; \ - rm -rf /tmp/pear ; \ - rm /var/cache/apk/* + xml \ + xsl \ + zip ; \ + rm -rf /tmp/* \ + /usr/local/bin/phpdbg \ + /usr/local/bin/php-cgi \ + /usr/src/php.tar* \ + /usr/includes/* \ + /usr/share/man/* \ + /var/cache/apk/* \ + /var/tmp/* ; \ + apk del --purge .phpize-deps ; \ + apk del --purge build-base ; \ + apk del --purge ${PHPIZE_DEPS} ; \ + docker-php-source delete ; \ + ln -sf $(which composer.phar) $(which composer) ; \ + chmod +x /usr/local/bin/docker-php-cleanup WORKDIR /var/www/html diff --git a/Dockerfile.worker b/Dockerfile.worker index e510b25..89e669d 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -2,56 +2,67 @@ ARG BASE_TAG=8.1-cli-alpine FROM --platform=$BUILDPLATFORM php:$BASE_TAG -RUN apk --update add \ - wget \ - curl \ +ARG PHPIZE_DEPS + +ADD docker-php-cleanup /usr/local/bin/ + +RUN apk --update --no-cache add \ + ${PHPIZE_DEPS} \ build-base \ composer \ - nodejs \ - npm \ + freetype-dev \ + gettext-dev \ + icu-dev \ + libgcrypt-dev \ libmcrypt-dev \ + libpq-dev \ libxml2-dev \ - pcre-dev \ - zlib-dev \ - autoconf \ + libxslt-dev \ + libzip-dev \ oniguruma-dev \ openssl \ openssl-dev \ - freetype-dev \ - libjpeg-turbo-dev \ - jpeg-dev \ - libpng-dev \ - imagemagick-dev \ - imagemagick \ - postgresql-dev \ - libzip-dev \ - gettext-dev \ - libxslt-dev \ - libgcrypt-dev ; \ - docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ ; \ + pcre-dev \ + wget \ + zlib-dev ; \ + apk add --update --no-cache --virtual \ + .persistent-deps \ + curl \ + ca-certificates \ + tar \ + xz ; \ pecl channel-update pecl.php.net ; \ - pecl install mcrypt redis-5.3.4 ; \ + pecl install mcrypt ; \ + docker-php-ext-enable mcrypt ; \ + docker-php-ext-configure intl ; \ docker-php-ext-install \ - gd \ - mysqli \ + bcmath \ + gettext \ + intl \ mbstring \ - pdo \ - pdo_mysql \ - xml \ + mysqli \ pcntl \ - bcmath \ + pdo \ pdo_pgsql \ - zip \ - intl \ - gettext \ soap \ sockets \ - xsl ; \ - docker-php-ext-enable \ - redis \ - gd ; \ - rm -rf /tmp/pear ; \ - rm /var/cache/apk/* + xml \ + xsl \ + zip ; \ + rm -rf /tmp/* \ + /usr/local/bin/phpdbg \ + /usr/local/bin/php-cgi \ + /usr/src/php.tar* \ + /usr/includes/* \ + /usr/share/man/* \ + /var/cache/apk/* \ + /var/tmp/* ; \ + apk del --purge .phpize-deps ; \ + apk del --purge build-base ; \ + apk del --purge ${PHPIZE_DEPS} ; \ + docker-php-source delete ; \ + ln -sf $(which composer.phar) $(which composer) ; \ + chmod +x /usr/local/bin/docker-php-cleanup WORKDIR /var/www/html diff --git a/docker-php-cleanup b/docker-php-cleanup new file mode 100644 index 0000000..4f16d88 --- /dev/null +++ b/docker-php-cleanup @@ -0,0 +1,16 @@ +#!/bin/ash + +rm -rf /tmp/* +rm -rf /usr/local/bin/phpdbg +rm -rf /usr/local/bin/php-cgi +rm -rf /usr/src/php.tar* +rm -rf /usr/includes/* +rm -rf /usr/share/man/* +rm -rf /var/cache/apk/* +rm -rf /var/tmp/* + +apk del --purge .phpize-deps +apk del --purge build-base +apk del --purge ${PHPIZE_DEPS} + +docker-php-source delete \ No newline at end of file From 4babbb509d34fa3d4a6acdc2570df9bb0dae3b5a Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sat, 19 Nov 2022 00:00:17 +0200 Subject: [PATCH 06/30] Updated readme & docs --- Dockerfile.fpm | 15 ++--------- Dockerfile.octane | 15 ++--------- Dockerfile.worker | 15 ++--------- README.md | 66 +++++------------------------------------------ 4 files changed, 13 insertions(+), 98 deletions(-) diff --git a/Dockerfile.fpm b/Dockerfile.fpm index 701e49c..41ad963 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -49,19 +49,8 @@ RUN apk --update --no-cache add \ xml \ xsl \ zip ; \ - rm -rf /tmp/* \ - /usr/local/bin/phpdbg \ - /usr/local/bin/php-cgi \ - /usr/src/php.tar* \ - /usr/includes/* \ - /usr/share/man/* \ - /var/cache/apk/* \ - /var/tmp/* ; \ - apk del --purge .phpize-deps ; \ - apk del --purge build-base ; \ - apk del --purge ${PHPIZE_DEPS} ; \ - docker-php-source delete ; \ ln -sf $(which composer.phar) $(which composer) ; \ - chmod +x /usr/local/bin/docker-php-cleanup + chmod +x /usr/local/bin/docker-php-cleanup ; \ + sh /usr/local/bin/docker-php-cleanup WORKDIR /var/www/html diff --git a/Dockerfile.octane b/Dockerfile.octane index 2846caf..fe0dab3 100644 --- a/Dockerfile.octane +++ b/Dockerfile.octane @@ -50,20 +50,9 @@ RUN apk --update --no-cache add \ xml \ xsl \ zip ; \ - rm -rf /tmp/* \ - /usr/local/bin/phpdbg \ - /usr/local/bin/php-cgi \ - /usr/src/php.tar* \ - /usr/includes/* \ - /usr/share/man/* \ - /var/cache/apk/* \ - /var/tmp/* ; \ - apk del --purge .phpize-deps ; \ - apk del --purge build-base ; \ - apk del --purge ${PHPIZE_DEPS} ; \ - docker-php-source delete ; \ ln -sf $(which composer.phar) $(which composer) ; \ - chmod +x /usr/local/bin/docker-php-cleanup + chmod +x /usr/local/bin/docker-php-cleanup ; \ + sh /usr/local/bin/docker-php-cleanup WORKDIR /var/www/html diff --git a/Dockerfile.worker b/Dockerfile.worker index 89e669d..2024f63 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -49,20 +49,9 @@ RUN apk --update --no-cache add \ xml \ xsl \ zip ; \ - rm -rf /tmp/* \ - /usr/local/bin/phpdbg \ - /usr/local/bin/php-cgi \ - /usr/src/php.tar* \ - /usr/includes/* \ - /usr/share/man/* \ - /var/cache/apk/* \ - /var/tmp/* ; \ - apk del --purge .phpize-deps ; \ - apk del --purge build-base ; \ - apk del --purge ${PHPIZE_DEPS} ; \ - docker-php-source delete ; \ ln -sf $(which composer.phar) $(which composer) ; \ - chmod +x /usr/local/bin/docker-php-cleanup + chmod +x /usr/local/bin/docker-php-cleanup ; \ + sh /usr/local/bin/docker-php-cleanup WORKDIR /var/www/html diff --git a/README.md b/README.md index 67693ce..0ffb3d1 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,7 @@ Laravel Docker Images ===================== -- [Laravel Docker Images](#laravel-docker-images) - - [🤝 Supporting](#-supporting) - - [🚀 Getting Started](#-getting-started) - - [⛽ Octane](#-octane) - - [🖥 PHP-FPM](#-php-fpm) - - [🤖 Workers](#-workers) - -Already-compiled PHP-based Images to use when deploying your Laravel application to Kubernetes using Laravel Helm charts. +Production, PHP-based, already-compiled Docker images that you can use to deploy your Laravel application to Kubernetes or Docker. ## 🤝 Supporting @@ -21,63 +14,18 @@ Already-compiled PHP-based Images to use when deploying your Laravel application Images are used to deploy a [sample Laravel application](https://github.com/renoki-co/laravel-helm-demo) to Kubernetes using Helm charts for vanilla Laravel, Laravel Octane or to deploy workers such as queues. -For Docker & versioning examples, please check [`renokico/laravel-base` Quay page](https://quay.io/repository/renokico/laravel-base). - This project compiles images: - for PHP-FPM + NGINX projects, using `Dockerfile.fpm`, based on an official PHP-FPM Docker image -- for Octane, using `Dockerfile.octane`, based on [a PHP, Swoole-ready image](https://hub.docker.com/r/phpswoole/swoole) -- for Workers, like CLI commands, using `Dockerfile.worker`, based on an official PHP CLI Docker image +- for Octane, using `Dockerfile.octane`, based on [a PHP image that contains Swoole](https://hub.docker.com/r/phpswoole/swoole) +- for Workers, like CLI commands or [Laravel Zero](https://github.com/laravel-zero/laravel-zero), using `Dockerfile.worker`, based on an official PHP CLI Docker image. These images can be used to compile your app code in a PHP-ready container to be used in Kubernetes. -## ⛽ Octane - -Octane images are based on [a PHP-Swoole image](https://hub.docker.com/r/phpswoole/swoole) that works directly with Octane in Swoole mode. - -```Dockerfile -FROM quay.io/renokico/laravel-base:octane-latest-php8.1-alpine - -COPY . /var/www/html - -RUN mkdir -p /var/www/html/storage/logs/ ; \ - chown -R www-data:www-data /var/www/html - -WORKDIR /var/www/html - -ENTRYPOINT ["php", "-d", "variables_order=EGPCS", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=80"] - -EXPOSE 80 -``` - -## 🖥 PHP-FPM - -The PHP-FPM image contains the PHP-FPM process and will be complemented by NGINX in the Helm chart. - -```Dockerfile -FROM quay.io/renokico/laravel-base:latest-8.1-fpm-alpine - -COPY . /var/www/html - -RUN mkdir -p /var/www/html/storage/logs/ ; \ - chown -R www-data:www-data /var/www/html - -WORKDIR /var/www/html -``` - -## 🤖 Workers - -Workers can be either long-running processes that serve as workers (for example, queues) or by running a local process that might also expose a HTTP server, etc. Either way, you can use a Worker to extend your project. - -```Dockerfile -FROM quay.io/renokico/laravel-base:worker-latest-8.1-cli-alpine - -COPY . /var/www/html +## 📦 Deploying -RUN mkdir -p /var/www/html/storage/logs/ ; \ - chown -R www-data:www-data /var/www/html +In the [`/examples`](examples) folder, you will find example Laravel projects that can be containerized and deployed. -WORKDIR /var/www/html +## 🐳 Tags -ENTRYPOINT ["php", "-a"] -``` +For Docker & versioning examples, check [`renokico/laravel-base` Quay page](https://quay.io/repository/renokico/laravel-base). \ No newline at end of file From 1010f0b84e4dd20577db6617a199e9a493314f3c Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sat, 19 Nov 2022 01:00:50 +0200 Subject: [PATCH 07/30] Added first octane example --- examples/laravel/.dockerignore | 11 + examples/laravel/.editorconfig | 18 + examples/laravel/.env.example | 58 + examples/laravel/.gitattributes | 11 + examples/laravel/.gitignore | 18 + examples/laravel/Dockerfile.octane | 50 + examples/laravel/README.md | 201 + .../app/Console/Commands/CurrentTime.php | 36 + examples/laravel/app/Console/Kernel.php | 32 + examples/laravel/app/Exceptions/Handler.php | 50 + .../app/Http/Controllers/Controller.php | 13 + .../Http/Controllers/LogRequestController.php | 26 + examples/laravel/app/Http/Kernel.php | 67 + .../app/Http/Middleware/Authenticate.php | 21 + .../app/Http/Middleware/EncryptCookies.php | 17 + .../PreventRequestsDuringMaintenance.php | 17 + .../Middleware/RedirectIfAuthenticated.php | 32 + .../app/Http/Middleware/TrimStrings.php | 19 + .../app/Http/Middleware/TrustHosts.php | 20 + .../app/Http/Middleware/TrustProxies.php | 28 + .../app/Http/Middleware/ValidateSignature.php | 22 + .../app/Http/Middleware/VerifyCsrfToken.php | 17 + examples/laravel/app/Jobs/LogRequest.php | 41 + examples/laravel/app/Models/LoggedRequest.php | 22 + examples/laravel/app/Models/User.php | 44 + .../app/Providers/AppServiceProvider.php | 28 + .../app/Providers/AuthServiceProvider.php | 30 + .../Providers/BroadcastServiceProvider.php | 21 + .../app/Providers/EventServiceProvider.php | 42 + .../app/Providers/RouteServiceProvider.php | 52 + examples/laravel/artisan | 53 + examples/laravel/bootstrap/app.php | 55 + examples/laravel/bootstrap/cache/.gitignore | 2 + examples/laravel/composer.json | 66 + examples/laravel/composer.lock | 8085 +++++++++++++++++ examples/laravel/config/app.php | 215 + examples/laravel/config/auth.php | 111 + examples/laravel/config/broadcasting.php | 70 + examples/laravel/config/cache.php | 110 + examples/laravel/config/cors.php | 34 + examples/laravel/config/database.php | 151 + examples/laravel/config/filesystems.php | 76 + examples/laravel/config/hashing.php | 52 + examples/laravel/config/logging.php | 122 + examples/laravel/config/mail.php | 118 + examples/laravel/config/octane.php | 221 + examples/laravel/config/queue.php | 93 + examples/laravel/config/sanctum.php | 67 + examples/laravel/config/services.php | 34 + examples/laravel/config/session.php | 201 + examples/laravel/config/view.php | 36 + examples/laravel/database/.gitignore | 1 + .../database/factories/UserFactory.php | 40 + .../2014_10_12_000000_create_users_table.php | 36 + ...12_100000_create_password_resets_table.php | 32 + ..._08_19_000000_create_failed_jobs_table.php | 36 + ...01_create_personal_access_tokens_table.php | 37 + ...18_171656_create_logged_requests_table.php | 32 + .../database/seeders/DatabaseSeeder.php | 24 + examples/laravel/docker-compose.yaml | 121 + examples/laravel/entrypoint-octane | 20 + examples/laravel/lang/en/auth.php | 20 + examples/laravel/lang/en/pagination.php | 19 + examples/laravel/lang/en/passwords.php | 22 + examples/laravel/lang/en/validation.php | 176 + examples/laravel/package.json | 14 + examples/laravel/phpunit.xml | 31 + examples/laravel/public/.htaccess | 21 + examples/laravel/public/favicon.ico | 0 examples/laravel/public/index.php | 55 + examples/laravel/public/robots.txt | 2 + examples/laravel/resources/css/app.css | 0 examples/laravel/resources/js/app.js | 1 + examples/laravel/resources/js/bootstrap.js | 34 + .../laravel/resources/views/welcome.blade.php | 132 + examples/laravel/routes/api.php | 19 + examples/laravel/routes/channels.php | 18 + examples/laravel/routes/console.php | 19 + examples/laravel/routes/web.php | 18 + examples/laravel/storage/app/.gitignore | 3 + .../laravel/storage/app/public/.gitignore | 2 + examples/laravel/storage/framework/.gitignore | 9 + .../storage/framework/cache/.gitignore | 3 + .../storage/framework/cache/data/.gitignore | 2 + .../storage/framework/sessions/.gitignore | 2 + .../storage/framework/testing/.gitignore | 2 + .../storage/framework/views/.gitignore | 2 + examples/laravel/storage/logs/.gitignore | 2 + examples/laravel/tests/CreatesApplication.php | 22 + .../laravel/tests/Feature/ExampleTest.php | 21 + examples/laravel/tests/TestCase.php | 10 + examples/laravel/tests/Unit/ExampleTest.php | 18 + examples/laravel/vite.config.js | 11 + 93 files changed, 12125 insertions(+) create mode 100644 examples/laravel/.dockerignore create mode 100644 examples/laravel/.editorconfig create mode 100644 examples/laravel/.env.example create mode 100644 examples/laravel/.gitattributes create mode 100644 examples/laravel/.gitignore create mode 100644 examples/laravel/Dockerfile.octane create mode 100644 examples/laravel/README.md create mode 100644 examples/laravel/app/Console/Commands/CurrentTime.php create mode 100644 examples/laravel/app/Console/Kernel.php create mode 100644 examples/laravel/app/Exceptions/Handler.php create mode 100644 examples/laravel/app/Http/Controllers/Controller.php create mode 100644 examples/laravel/app/Http/Controllers/LogRequestController.php create mode 100644 examples/laravel/app/Http/Kernel.php create mode 100644 examples/laravel/app/Http/Middleware/Authenticate.php create mode 100644 examples/laravel/app/Http/Middleware/EncryptCookies.php create mode 100644 examples/laravel/app/Http/Middleware/PreventRequestsDuringMaintenance.php create mode 100644 examples/laravel/app/Http/Middleware/RedirectIfAuthenticated.php create mode 100644 examples/laravel/app/Http/Middleware/TrimStrings.php create mode 100644 examples/laravel/app/Http/Middleware/TrustHosts.php create mode 100644 examples/laravel/app/Http/Middleware/TrustProxies.php create mode 100644 examples/laravel/app/Http/Middleware/ValidateSignature.php create mode 100644 examples/laravel/app/Http/Middleware/VerifyCsrfToken.php create mode 100644 examples/laravel/app/Jobs/LogRequest.php create mode 100644 examples/laravel/app/Models/LoggedRequest.php create mode 100644 examples/laravel/app/Models/User.php create mode 100644 examples/laravel/app/Providers/AppServiceProvider.php create mode 100644 examples/laravel/app/Providers/AuthServiceProvider.php create mode 100644 examples/laravel/app/Providers/BroadcastServiceProvider.php create mode 100644 examples/laravel/app/Providers/EventServiceProvider.php create mode 100644 examples/laravel/app/Providers/RouteServiceProvider.php create mode 100755 examples/laravel/artisan create mode 100644 examples/laravel/bootstrap/app.php create mode 100644 examples/laravel/bootstrap/cache/.gitignore create mode 100644 examples/laravel/composer.json create mode 100644 examples/laravel/composer.lock create mode 100644 examples/laravel/config/app.php create mode 100644 examples/laravel/config/auth.php create mode 100644 examples/laravel/config/broadcasting.php create mode 100644 examples/laravel/config/cache.php create mode 100644 examples/laravel/config/cors.php create mode 100644 examples/laravel/config/database.php create mode 100644 examples/laravel/config/filesystems.php create mode 100644 examples/laravel/config/hashing.php create mode 100644 examples/laravel/config/logging.php create mode 100644 examples/laravel/config/mail.php create mode 100644 examples/laravel/config/octane.php create mode 100644 examples/laravel/config/queue.php create mode 100644 examples/laravel/config/sanctum.php create mode 100644 examples/laravel/config/services.php create mode 100644 examples/laravel/config/session.php create mode 100644 examples/laravel/config/view.php create mode 100644 examples/laravel/database/.gitignore create mode 100644 examples/laravel/database/factories/UserFactory.php create mode 100644 examples/laravel/database/migrations/2014_10_12_000000_create_users_table.php create mode 100644 examples/laravel/database/migrations/2014_10_12_100000_create_password_resets_table.php create mode 100644 examples/laravel/database/migrations/2019_08_19_000000_create_failed_jobs_table.php create mode 100644 examples/laravel/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php create mode 100644 examples/laravel/database/migrations/2022_11_18_171656_create_logged_requests_table.php create mode 100644 examples/laravel/database/seeders/DatabaseSeeder.php create mode 100644 examples/laravel/docker-compose.yaml create mode 100644 examples/laravel/entrypoint-octane create mode 100644 examples/laravel/lang/en/auth.php create mode 100644 examples/laravel/lang/en/pagination.php create mode 100644 examples/laravel/lang/en/passwords.php create mode 100644 examples/laravel/lang/en/validation.php create mode 100644 examples/laravel/package.json create mode 100644 examples/laravel/phpunit.xml create mode 100644 examples/laravel/public/.htaccess create mode 100644 examples/laravel/public/favicon.ico create mode 100644 examples/laravel/public/index.php create mode 100644 examples/laravel/public/robots.txt create mode 100644 examples/laravel/resources/css/app.css create mode 100644 examples/laravel/resources/js/app.js create mode 100644 examples/laravel/resources/js/bootstrap.js create mode 100644 examples/laravel/resources/views/welcome.blade.php create mode 100644 examples/laravel/routes/api.php create mode 100644 examples/laravel/routes/channels.php create mode 100644 examples/laravel/routes/console.php create mode 100644 examples/laravel/routes/web.php create mode 100644 examples/laravel/storage/app/.gitignore create mode 100644 examples/laravel/storage/app/public/.gitignore create mode 100644 examples/laravel/storage/framework/.gitignore create mode 100644 examples/laravel/storage/framework/cache/.gitignore create mode 100644 examples/laravel/storage/framework/cache/data/.gitignore create mode 100644 examples/laravel/storage/framework/sessions/.gitignore create mode 100644 examples/laravel/storage/framework/testing/.gitignore create mode 100644 examples/laravel/storage/framework/views/.gitignore create mode 100644 examples/laravel/storage/logs/.gitignore create mode 100644 examples/laravel/tests/CreatesApplication.php create mode 100644 examples/laravel/tests/Feature/ExampleTest.php create mode 100644 examples/laravel/tests/TestCase.php create mode 100644 examples/laravel/tests/Unit/ExampleTest.php create mode 100644 examples/laravel/vite.config.js diff --git a/examples/laravel/.dockerignore b/examples/laravel/.dockerignore new file mode 100644 index 0000000..2129762 --- /dev/null +++ b/examples/laravel/.dockerignore @@ -0,0 +1,11 @@ +.git/**/* +bootstrap/cache/**/* +node_modules/**/* +storage/logs/**/* +storage/framework/app/public/**/* +storage/framework/cache/**/* +storage/framework/sessions/**/* +storage/framework/testing/**/* +storage/framework/views/**/* +tests/**/* +vendor/**/* diff --git a/examples/laravel/.editorconfig b/examples/laravel/.editorconfig new file mode 100644 index 0000000..8f0de65 --- /dev/null +++ b/examples/laravel/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[docker-compose.yml] +indent_size = 4 diff --git a/examples/laravel/.env.example b/examples/laravel/.env.example new file mode 100644 index 0000000..9df48ae --- /dev/null +++ b/examples/laravel/.env.example @@ -0,0 +1,58 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY=base64:gUAn8JOClIX216D/2bGnPE947F4/dZtVzK8ARMwUHfE= +APP_DEBUG=true +APP_URL=http://127.0.0.1 + +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=pgsql +DB_HOST=postgres +DB_PORT=5432 +DB_DATABASE=postgres +DB_USERNAME=postgres +DB_PASSWORD=postgres + +BROADCAST_DRIVER=log +CACHE_DRIVER=redis +FILESYSTEM_DISK=local +QUEUE_CONNECTION=redis +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +MEMCACHED_HOST=127.0.0.1 + +REDIS_HOST=redis +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=mailhog +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https +PUSHER_APP_CLUSTER=mt1 + +VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +VITE_PUSHER_HOST="${PUSHER_HOST}" +VITE_PUSHER_PORT="${PUSHER_PORT}" +VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" +VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/examples/laravel/.gitattributes b/examples/laravel/.gitattributes new file mode 100644 index 0000000..7dbbf41 --- /dev/null +++ b/examples/laravel/.gitattributes @@ -0,0 +1,11 @@ +* text=auto + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore +.styleci.yml export-ignore diff --git a/examples/laravel/.gitignore b/examples/laravel/.gitignore new file mode 100644 index 0000000..f0d10af --- /dev/null +++ b/examples/laravel/.gitignore @@ -0,0 +1,18 @@ +/node_modules +/public/build +/public/hot +/public/storage +/storage/*.key +/vendor +.env +.env.backup +.env.production +.phpunit.result.cache +Homestead.json +Homestead.yaml +auth.json +npm-debug.log +yarn-error.log +/.fleet +/.idea +/.vscode diff --git a/examples/laravel/Dockerfile.octane b/examples/laravel/Dockerfile.octane new file mode 100644 index 0000000..824de5e --- /dev/null +++ b/examples/laravel/Dockerfile.octane @@ -0,0 +1,50 @@ +ARG OCTANE_TAG=pr-27-octane-4.8-php8.1-alpine + +# 1. Create a preliminary step to build the required assets & dependencies. +########################################################################### +FROM quay.io/renokico/laravel-base:$OCTANE_TAG as build + +COPY . /var/www/html + +# Update permissions +RUN chown www-data:www-data /var/www/html; \ + chmod -R 777 /var/www/html + +# Install dependencies. +RUN apk --update --no-cache add \ + nodejs \ + npm + +RUN composer install \ + --no-ansi \ + --no-dev \ + --no-interaction \ + --no-plugins \ + --no-progress \ + --no-scripts \ + --optimize-autoloader + +RUN npm install + +# Build the assets. +RUN npm run build + +# Cleanup unneeded files: node_modules & clearing all cache +RUN rm -rf \ + node_modules/ \ + .env ; \ + php artisan view:clear ; \ + php artisan cache:clear file ; \ + php artisan event:clear ; \ + php artisan optimize:clear + +# 2. Build the final image from a clean base, making a copy of the prepared project. +#################################################################################### +FROM quay.io/renokico/laravel-base:$OCTANE_TAG + +COPY --from=build /var/www/html . + +# Make sure to change the image user to www-data. +USER www-data + +ENTRYPOINT ["./entrypoint-octane"] diff --git a/examples/laravel/README.md b/examples/laravel/README.md new file mode 100644 index 0000000..8f6e6fa --- /dev/null +++ b/examples/laravel/README.md @@ -0,0 +1,201 @@ +# Laravel Example + +This repo is a demo example about how your application should be deployed to Docker/Kubernetes. + +## Prerequisites + +To get started, just make sure you've got a `.env` copy locally (which is `.gitignore`d by default): + +```bash +cp .env.example .env +``` + +## Project + +This project is simple: + +- there is a `GET /health` endpoint for healthchecks +- there is a `ANY /` endpoint that will dispatch a job to store a record in the database (in `logged_requests`) +- has a Job ([`LogRequest`](app/Jobs/LogRequest.php)) that will execute the `logged_requests` INSERT query +- has a Scheduled command ([`current-time`](app/Console/Commands/WriteFile.php)) running [every minute](app/Console/Kernel.php) that will output the current time + +## Build & Deploy Checklist + +Before anything else, some projects caveats. + +### Secrets + +Your `.env` file, if it is present locally, will be added to the image, even if it's ignored by Git. + +During the build, you can inject the `.env` and other secret files in the Docker filesystem by having them locally, or typically, have them pulled from somewhere. They persist, so make sure to delete them afterwards, and avoid any call like `config:cache` that would persist the secrets in the cache. These commands can also be ran later on. + +When the image is built, your `.env` and other secret files will have to be mounted later on, when running the container. Best recommendation here is to perform `*:cache` and migration commands in this step, before your application will serve requests. + +Injecting your `.env` file or other secrets through environment variales is also a possibility. + +Since the `.env` file will be removed before the final image is built, you have to mount it. In `docker-compose.yaml`, the `.env` is mounted when the container starts: + +```yaml +volumes: + - .env:/var/www/html/.env:ro +``` + +### .dockerignore + +Make sure you always have a [`.dockerignore`](.dockerignore) file in your project to ignore certain files from getting into the Docker image at build: usually, they are dependency directories (`vendor` and `node_modules`) and other non-production files. + +```bash +cat .dockerignore +``` + +### Cleaning up the final image + +Usually, the build process has multiple steps: in the first step, getting the base image, installing the dependencies and building the front assets. The second and final step is to start from a new, fresh base image and copy the compiled & prepared project from the previous step. + +After the assets got compiled in the first step, you should do a cleanup, like removing `node_modules` or other cached files. In the examples, this is easily done with: + +```dockerfile +RUN rm -rf \ + node_modules/ \ + .env ; \ + php artisan view:clear ; \ + php artisan cache:clear file ; \ + php artisan event:clear ; \ + php artisan optimize:clear +``` + +### Extensions + +More or less, all Docker images come pre-packaged with the following extensions: + +
+ View extensions + ``` + bcmath + Core + ctype + curl + date + dom + fileinfo + filter + ftp + gettext + hash + iconv + intl + json + libxml + mbstring + mcrypt + mysqli + mysqlnd + openssl + pcntl + pcre + PDO + pdo_mysql + pdo_pgsql + pdo_sqlite + Phar + posix + readline + redis + Reflection + session + SimpleXML + soap + sockets + sodium + SPL + sqlite3 + standard + tokenizer + xml + xmlreader + xmlwriter + xsl + zip + zlib + ``` +
+ +To install custom extensions, you can do one of the following install & configure them when building your project. + +Make sure that after you are done, you are cleaning up the image again: after we install extensions, traces of build binaries used to compile them are still left in your image, pontetially making your final image bigger. + +The delivered Docker images are pre-packaged with a `docker-php-cleanup` file whose job is to clean them up: + +```dockerfile +FROM quay.io... as build + +# Some Composer packages might require "ext-gd" +RUN docker-php-ext-configure gd ; \ + docker-php-ext-install gd + +# i.e. composer install + +# Note: this image does not need to be cleaned up +# because the stage will not get into the final image. + +FROM quay.io... + +COPY --from=build /var/www/html . + +# The final image does not contain gd, so it has to be installed again. +# Note: Here, cleanup should be called. +RUN docker-php-ext-configure gd ; \ + docker-php-ext-install gd ; \ + sh /usr/local/bin/docker-php-cleanup +``` + +## ⛽️ Octane + +Full information about the build process can be found in [`Dockerfile.octane`](Dockerfile.octane). + +To get started, run the Octane example: + +```bash +docker-compose up --wait -d octane +``` + +- It spins up an Octane-powered server on `http://localhost` +- It spins up a container that will run the Scheduler (for the CRON tasks), using the same image +- It spins up a container that will run the Queues worker, using the same image +- Secrets: the secrets are not compiled in the final image; the `*:cache` commands are going to be called when the container starts +- Assets: compiled in separate step +- Entrypoint: Caches all configurations, runs the migrations and then starts the server + +Octane's entrypoint is [`entrypoint-octane`](entrypoint-octane): + +```bash +cat entrypoint-octane +``` + +Since the Scheduler uses the same image (with the same entrypoint that starts the server), the scheduler container has its entrypoint changed in [`docker-compose.yaml`](docker-compose.yaml): + +```yaml +octane.scheduler: + entrypoint: + - php + - artisan + - schedule:work +``` + +Queue workers are being configured in the same way: + +```yaml +octane.queues: + entrypoint: + - php + - artisan + - queue:work + - --name=octane-default + - --queue=default +``` + +To destroy the example: + +```bash +docker-compose down -v --remove-orphans --rmi=all +``` diff --git a/examples/laravel/app/Console/Commands/CurrentTime.php b/examples/laravel/app/Console/Commands/CurrentTime.php new file mode 100644 index 0000000..6009bb0 --- /dev/null +++ b/examples/laravel/app/Console/Commands/CurrentTime.php @@ -0,0 +1,36 @@ +toIso8601String(); + + $this->line("Current time: {$currentTime}"); + + return Command::SUCCESS; + } +} diff --git a/examples/laravel/app/Console/Kernel.php b/examples/laravel/app/Console/Kernel.php new file mode 100644 index 0000000..0830e4a --- /dev/null +++ b/examples/laravel/app/Console/Kernel.php @@ -0,0 +1,32 @@ +command('current-time')->everyMinute(); + } + + /** + * Register the commands for the application. + * + * @return void + */ + protected function commands() + { + $this->load(__DIR__.'/Commands'); + + require base_path('routes/console.php'); + } +} diff --git a/examples/laravel/app/Exceptions/Handler.php b/examples/laravel/app/Exceptions/Handler.php new file mode 100644 index 0000000..82a37e4 --- /dev/null +++ b/examples/laravel/app/Exceptions/Handler.php @@ -0,0 +1,50 @@ +, \Psr\Log\LogLevel::*> + */ + protected $levels = [ + // + ]; + + /** + * A list of the exception types that are not reported. + * + * @var array> + */ + protected $dontReport = [ + // + ]; + + /** + * A list of the inputs that are never flashed to the session on validation exceptions. + * + * @var array + */ + protected $dontFlash = [ + 'current_password', + 'password', + 'password_confirmation', + ]; + + /** + * Register the exception handling callbacks for the application. + * + * @return void + */ + public function register() + { + $this->reportable(function (Throwable $e) { + // + }); + } +} diff --git a/examples/laravel/app/Http/Controllers/Controller.php b/examples/laravel/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..a0a2a8a --- /dev/null +++ b/examples/laravel/app/Http/Controllers/Controller.php @@ -0,0 +1,13 @@ +__toString()); + + return Response::json([ + 'status' => 'success', + 'request' => $request, + ]); + } +} diff --git a/examples/laravel/app/Http/Kernel.php b/examples/laravel/app/Http/Kernel.php new file mode 100644 index 0000000..0079688 --- /dev/null +++ b/examples/laravel/app/Http/Kernel.php @@ -0,0 +1,67 @@ + + */ + protected $middleware = [ + // \App\Http\Middleware\TrustHosts::class, + \App\Http\Middleware\TrustProxies::class, + \Illuminate\Http\Middleware\HandleCors::class, + \App\Http\Middleware\PreventRequestsDuringMaintenance::class, + \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, + \App\Http\Middleware\TrimStrings::class, + \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, + ]; + + /** + * The application's route middleware groups. + * + * @var array> + */ + protected $middlewareGroups = [ + 'web' => [ + \App\Http\Middleware\EncryptCookies::class, + \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, + \Illuminate\Session\Middleware\StartSession::class, + \Illuminate\View\Middleware\ShareErrorsFromSession::class, + \App\Http\Middleware\VerifyCsrfToken::class, + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + + 'api' => [ + // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, + 'throttle:api', + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + ]; + + /** + * The application's route middleware. + * + * These middleware may be assigned to groups or used individually. + * + * @var array + */ + protected $routeMiddleware = [ + 'auth' => \App\Http\Middleware\Authenticate::class, + 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, + 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, + 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, + 'can' => \Illuminate\Auth\Middleware\Authorize::class, + 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, + 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, + 'signed' => \App\Http\Middleware\ValidateSignature::class, + 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, + 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, + ]; +} diff --git a/examples/laravel/app/Http/Middleware/Authenticate.php b/examples/laravel/app/Http/Middleware/Authenticate.php new file mode 100644 index 0000000..704089a --- /dev/null +++ b/examples/laravel/app/Http/Middleware/Authenticate.php @@ -0,0 +1,21 @@ +expectsJson()) { + return route('login'); + } + } +} diff --git a/examples/laravel/app/Http/Middleware/EncryptCookies.php b/examples/laravel/app/Http/Middleware/EncryptCookies.php new file mode 100644 index 0000000..867695b --- /dev/null +++ b/examples/laravel/app/Http/Middleware/EncryptCookies.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/examples/laravel/app/Http/Middleware/PreventRequestsDuringMaintenance.php b/examples/laravel/app/Http/Middleware/PreventRequestsDuringMaintenance.php new file mode 100644 index 0000000..74cbd9a --- /dev/null +++ b/examples/laravel/app/Http/Middleware/PreventRequestsDuringMaintenance.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/examples/laravel/app/Http/Middleware/RedirectIfAuthenticated.php b/examples/laravel/app/Http/Middleware/RedirectIfAuthenticated.php new file mode 100644 index 0000000..a2813a0 --- /dev/null +++ b/examples/laravel/app/Http/Middleware/RedirectIfAuthenticated.php @@ -0,0 +1,32 @@ +check()) { + return redirect(RouteServiceProvider::HOME); + } + } + + return $next($request); + } +} diff --git a/examples/laravel/app/Http/Middleware/TrimStrings.php b/examples/laravel/app/Http/Middleware/TrimStrings.php new file mode 100644 index 0000000..88cadca --- /dev/null +++ b/examples/laravel/app/Http/Middleware/TrimStrings.php @@ -0,0 +1,19 @@ + + */ + protected $except = [ + 'current_password', + 'password', + 'password_confirmation', + ]; +} diff --git a/examples/laravel/app/Http/Middleware/TrustHosts.php b/examples/laravel/app/Http/Middleware/TrustHosts.php new file mode 100644 index 0000000..7186414 --- /dev/null +++ b/examples/laravel/app/Http/Middleware/TrustHosts.php @@ -0,0 +1,20 @@ + + */ + public function hosts() + { + return [ + $this->allSubdomainsOfApplicationUrl(), + ]; + } +} diff --git a/examples/laravel/app/Http/Middleware/TrustProxies.php b/examples/laravel/app/Http/Middleware/TrustProxies.php new file mode 100644 index 0000000..3391630 --- /dev/null +++ b/examples/laravel/app/Http/Middleware/TrustProxies.php @@ -0,0 +1,28 @@ +|string|null + */ + protected $proxies; + + /** + * The headers that should be used to detect proxies. + * + * @var int + */ + protected $headers = + Request::HEADER_X_FORWARDED_FOR | + Request::HEADER_X_FORWARDED_HOST | + Request::HEADER_X_FORWARDED_PORT | + Request::HEADER_X_FORWARDED_PROTO | + Request::HEADER_X_FORWARDED_AWS_ELB; +} diff --git a/examples/laravel/app/Http/Middleware/ValidateSignature.php b/examples/laravel/app/Http/Middleware/ValidateSignature.php new file mode 100644 index 0000000..093bf64 --- /dev/null +++ b/examples/laravel/app/Http/Middleware/ValidateSignature.php @@ -0,0 +1,22 @@ + + */ + protected $except = [ + // 'fbclid', + // 'utm_campaign', + // 'utm_content', + // 'utm_medium', + // 'utm_source', + // 'utm_term', + ]; +} diff --git a/examples/laravel/app/Http/Middleware/VerifyCsrfToken.php b/examples/laravel/app/Http/Middleware/VerifyCsrfToken.php new file mode 100644 index 0000000..9e86521 --- /dev/null +++ b/examples/laravel/app/Http/Middleware/VerifyCsrfToken.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/examples/laravel/app/Jobs/LogRequest.php b/examples/laravel/app/Jobs/LogRequest.php new file mode 100644 index 0000000..6f60299 --- /dev/null +++ b/examples/laravel/app/Jobs/LogRequest.php @@ -0,0 +1,41 @@ + $this->requestDetails, + ]); + } +} diff --git a/examples/laravel/app/Models/LoggedRequest.php b/examples/laravel/app/Models/LoggedRequest.php new file mode 100644 index 0000000..ab34458 --- /dev/null +++ b/examples/laravel/app/Models/LoggedRequest.php @@ -0,0 +1,22 @@ + 'json', + ]; +} diff --git a/examples/laravel/app/Models/User.php b/examples/laravel/app/Models/User.php new file mode 100644 index 0000000..23b4063 --- /dev/null +++ b/examples/laravel/app/Models/User.php @@ -0,0 +1,44 @@ + + */ + protected $fillable = [ + 'name', + 'email', + 'password', + ]; + + /** + * The attributes that should be hidden for serialization. + * + * @var array + */ + protected $hidden = [ + 'password', + 'remember_token', + ]; + + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'email_verified_at' => 'datetime', + ]; +} diff --git a/examples/laravel/app/Providers/AppServiceProvider.php b/examples/laravel/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..ee8ca5b --- /dev/null +++ b/examples/laravel/app/Providers/AppServiceProvider.php @@ -0,0 +1,28 @@ + + */ + protected $policies = [ + // 'App\Models\Model' => 'App\Policies\ModelPolicy', + ]; + + /** + * Register any authentication / authorization services. + * + * @return void + */ + public function boot() + { + $this->registerPolicies(); + + // + } +} diff --git a/examples/laravel/app/Providers/BroadcastServiceProvider.php b/examples/laravel/app/Providers/BroadcastServiceProvider.php new file mode 100644 index 0000000..395c518 --- /dev/null +++ b/examples/laravel/app/Providers/BroadcastServiceProvider.php @@ -0,0 +1,21 @@ +> + */ + protected $listen = [ + Registered::class => [ + SendEmailVerificationNotification::class, + ], + ]; + + /** + * Register any events for your application. + * + * @return void + */ + public function boot() + { + // + } + + /** + * Determine if events and listeners should be automatically discovered. + * + * @return bool + */ + public function shouldDiscoverEvents() + { + return false; + } +} diff --git a/examples/laravel/app/Providers/RouteServiceProvider.php b/examples/laravel/app/Providers/RouteServiceProvider.php new file mode 100644 index 0000000..ea87f2e --- /dev/null +++ b/examples/laravel/app/Providers/RouteServiceProvider.php @@ -0,0 +1,52 @@ +configureRateLimiting(); + + $this->routes(function () { + Route::middleware('api') + ->prefix('api') + ->group(base_path('routes/api.php')); + + Route::middleware('web') + ->group(base_path('routes/web.php')); + }); + } + + /** + * Configure the rate limiters for the application. + * + * @return void + */ + protected function configureRateLimiting() + { + RateLimiter::for('api', function (Request $request) { + return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); + }); + } +} diff --git a/examples/laravel/artisan b/examples/laravel/artisan new file mode 100755 index 0000000..67a3329 --- /dev/null +++ b/examples/laravel/artisan @@ -0,0 +1,53 @@ +#!/usr/bin/env php +make(Illuminate\Contracts\Console\Kernel::class); + +$status = $kernel->handle( + $input = new Symfony\Component\Console\Input\ArgvInput, + new Symfony\Component\Console\Output\ConsoleOutput +); + +/* +|-------------------------------------------------------------------------- +| Shutdown The Application +|-------------------------------------------------------------------------- +| +| Once Artisan has finished running, we will fire off the shutdown events +| so that any final work may be done by the application before we shut +| down the process. This is the last thing to happen to the request. +| +*/ + +$kernel->terminate($input, $status); + +exit($status); diff --git a/examples/laravel/bootstrap/app.php b/examples/laravel/bootstrap/app.php new file mode 100644 index 0000000..037e17d --- /dev/null +++ b/examples/laravel/bootstrap/app.php @@ -0,0 +1,55 @@ +singleton( + Illuminate\Contracts\Http\Kernel::class, + App\Http\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Console\Kernel::class, + App\Console\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Debug\ExceptionHandler::class, + App\Exceptions\Handler::class +); + +/* +|-------------------------------------------------------------------------- +| Return The Application +|-------------------------------------------------------------------------- +| +| This script returns the application instance. The instance is given to +| the calling script so we can separate the building of the instances +| from the actual running of the application and sending responses. +| +*/ + +return $app; diff --git a/examples/laravel/bootstrap/cache/.gitignore b/examples/laravel/bootstrap/cache/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/examples/laravel/bootstrap/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/examples/laravel/composer.json b/examples/laravel/composer.json new file mode 100644 index 0000000..24c22d2 --- /dev/null +++ b/examples/laravel/composer.json @@ -0,0 +1,66 @@ +{ + "name": "laravel/laravel", + "type": "project", + "description": "The Laravel Framework.", + "keywords": ["framework", "laravel"], + "license": "MIT", + "require": { + "php": "^8.0.2", + "guzzlehttp/guzzle": "^7.2", + "laravel/framework": "^9.19", + "laravel/octane": "^1.3", + "laravel/sanctum": "^3.0", + "laravel/tinker": "^2.7" + }, + "require-dev": { + "fakerphp/faker": "^1.9.1", + "laravel/pint": "^1.0", + "laravel/sail": "^1.0.1", + "mockery/mockery": "^1.4.4", + "nunomaduro/collision": "^6.1", + "phpunit/phpunit": "^9.5.10", + "spatie/laravel-ignition": "^1.0" + }, + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Factories\\": "database/factories/", + "Database\\Seeders\\": "database/seeders/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "scripts": { + "post-autoload-dump": [ + "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", + "@php artisan package:discover --ansi" + ], + "post-update-cmd": [ + "@php artisan vendor:publish --tag=laravel-assets --ansi --force" + ], + "post-root-package-install": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "post-create-project-cmd": [ + "@php artisan key:generate --ansi" + ] + }, + "extra": { + "laravel": { + "dont-discover": [] + } + }, + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true + } + }, + "minimum-stability": "dev", + "prefer-stable": true +} diff --git a/examples/laravel/composer.lock b/examples/laravel/composer.lock new file mode 100644 index 0000000..fc0c8b3 --- /dev/null +++ b/examples/laravel/composer.lock @@ -0,0 +1,8085 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "e2cb2eb829fe92b0a0a9250cc38dbd0c", + "packages": [ + { + "name": "brick/math", + "version": "0.10.2", + "source": { + "type": "git", + "url": "https://github.com/brick/math.git", + "reference": "459f2781e1a08d52ee56b0b1444086e038561e3f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brick/math/zipball/459f2781e1a08d52ee56b0b1444086e038561e3f", + "reference": "459f2781e1a08d52ee56b0b1444086e038561e3f", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpunit/phpunit": "^9.0", + "vimeo/psalm": "4.25.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Brick\\Math\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Arbitrary-precision arithmetic library", + "keywords": [ + "Arbitrary-precision", + "BigInteger", + "BigRational", + "arithmetic", + "bigdecimal", + "bignum", + "brick", + "math" + ], + "support": { + "issues": "https://github.com/brick/math/issues", + "source": "https://github.com/brick/math/tree/0.10.2" + }, + "funding": [ + { + "url": "https://github.com/BenMorel", + "type": "github" + } + ], + "time": "2022-08-10T22:54:19+00:00" + }, + { + "name": "dflydev/dot-access-data", + "version": "v3.0.2", + "source": { + "type": "git", + "url": "https://github.com/dflydev/dflydev-dot-access-data.git", + "reference": "f41715465d65213d644d3141a6a93081be5d3549" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/f41715465d65213d644d3141a6a93081be5d3549", + "reference": "f41715465d65213d644d3141a6a93081be5d3549", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.42", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", + "scrutinizer/ocular": "1.6.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Dflydev\\DotAccessData\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dragonfly Development Inc.", + "email": "info@dflydev.com", + "homepage": "http://dflydev.com" + }, + { + "name": "Beau Simensen", + "email": "beau@dflydev.com", + "homepage": "http://beausimensen.com" + }, + { + "name": "Carlos Frutos", + "email": "carlos@kiwing.it", + "homepage": "https://github.com/cfrutos" + }, + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com" + } + ], + "description": "Given a deep data structure, access data by dot notation.", + "homepage": "https://github.com/dflydev/dflydev-dot-access-data", + "keywords": [ + "access", + "data", + "dot", + "notation" + ], + "support": { + "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", + "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.2" + }, + "time": "2022-10-27T11:44:00+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.0.6", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "d9d313a36c872fd6ee06d9a6cbcf713eaa40f024" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/d9d313a36c872fd6ee06d9a6cbcf713eaa40f024", + "reference": "d9d313a36c872fd6ee06d9a6cbcf713eaa40f024", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^10", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpstan/phpstan-strict-rules": "^1.3", + "phpunit/phpunit": "^8.5 || ^9.5", + "vimeo/psalm": "^4.25" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Inflector\\": "lib/Doctrine/Inflector" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", + "homepage": "https://www.doctrine-project.org/projects/inflector.html", + "keywords": [ + "inflection", + "inflector", + "lowercase", + "manipulation", + "php", + "plural", + "singular", + "strings", + "uppercase", + "words" + ], + "support": { + "issues": "https://github.com/doctrine/inflector/issues", + "source": "https://github.com/doctrine/inflector/tree/2.0.6" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", + "type": "tidelift" + } + ], + "time": "2022-10-20T09:10:12+00:00" + }, + { + "name": "doctrine/lexer", + "version": "1.2.3", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9.0", + "phpstan/phpstan": "^1.3", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.11" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "https://www.doctrine-project.org/projects/lexer.html", + "keywords": [ + "annotations", + "docblock", + "lexer", + "parser", + "php" + ], + "support": { + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/1.2.3" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], + "time": "2022-02-28T11:07:21+00:00" + }, + { + "name": "dragonmantank/cron-expression", + "version": "v3.3.2", + "source": { + "type": "git", + "url": "https://github.com/dragonmantank/cron-expression.git", + "reference": "782ca5968ab8b954773518e9e49a6f892a34b2a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/782ca5968ab8b954773518e9e49a6f892a34b2a8", + "reference": "782ca5968ab8b954773518e9e49a6f892a34b2a8", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0", + "webmozart/assert": "^1.0" + }, + "replace": { + "mtdowling/cron-expression": "^1.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-webmozart-assert": "^1.0", + "phpunit/phpunit": "^7.0|^8.0|^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Cron\\": "src/Cron/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Tankersley", + "email": "chris@ctankersley.com", + "homepage": "https://github.com/dragonmantank" + } + ], + "description": "CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due", + "keywords": [ + "cron", + "schedule" + ], + "support": { + "issues": "https://github.com/dragonmantank/cron-expression/issues", + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.3.2" + }, + "funding": [ + { + "url": "https://github.com/dragonmantank", + "type": "github" + } + ], + "time": "2022-09-10T18:51:20+00:00" + }, + { + "name": "egulias/email-validator", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/egulias/EmailValidator.git", + "reference": "f88dcf4b14af14a98ad96b14b2b317969eab6715" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/f88dcf4b14af14a98ad96b14b2b317969eab6715", + "reference": "f88dcf4b14af14a98ad96b14b2b317969eab6715", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^1.2", + "php": ">=7.2", + "symfony/polyfill-intl-idn": "^1.15" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpunit/phpunit": "^8.5.8|^9.3.3", + "vimeo/psalm": "^4" + }, + "suggest": { + "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Egulias\\EmailValidator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eduardo Gulias Davis" + } + ], + "description": "A library for validating emails against several RFCs", + "homepage": "https://github.com/egulias/EmailValidator", + "keywords": [ + "email", + "emailvalidation", + "emailvalidator", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/egulias/EmailValidator/issues", + "source": "https://github.com/egulias/EmailValidator/tree/3.2.1" + }, + "funding": [ + { + "url": "https://github.com/egulias", + "type": "github" + } + ], + "time": "2022-06-18T20:57:19+00:00" + }, + { + "name": "fruitcake/php-cors", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/fruitcake/php-cors.git", + "reference": "58571acbaa5f9f462c9c77e911700ac66f446d4e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/58571acbaa5f9f462c9c77e911700ac66f446d4e", + "reference": "58571acbaa5f9f462c9c77e911700ac66f446d4e", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0", + "symfony/http-foundation": "^4.4|^5.4|^6" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "phpunit/phpunit": "^9", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "Fruitcake\\Cors\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fruitcake", + "homepage": "https://fruitcake.nl" + }, + { + "name": "Barryvdh", + "email": "barryvdh@gmail.com" + } + ], + "description": "Cross-origin resource sharing library for the Symfony HttpFoundation", + "homepage": "https://github.com/fruitcake/php-cors", + "keywords": [ + "cors", + "laravel", + "symfony" + ], + "support": { + "issues": "https://github.com/fruitcake/php-cors/issues", + "source": "https://github.com/fruitcake/php-cors/tree/v1.2.0" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2022-02-20T15:07:15+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.0", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "a878d45c1914464426dc94da61c9e1d36ae262a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/a878d45c1914464426dc94da61c9e1d36ae262a8", + "reference": "a878d45c1914464426dc94da61c9e1d36ae262a8", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.28 || ^9.5.21" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2022-07-30T15:56:11+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.5.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b50a2a1251152e43f6a37f0fa053e730a67d25ba", + "reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5", + "guzzlehttp/psr7": "^1.9 || ^2.4", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "ext-curl": "*", + "php-http/client-integration-tests": "^3.0", + "phpunit/phpunit": "^8.5.29 || ^9.5.23", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "7.5-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.5.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2022-08-28T15:39:27+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "1.5.2", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "b94b2807d85443f9719887892882d0329d1e2598" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598", + "reference": "b94b2807d85443f9719887892882d0329d1e2598", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "symfony/phpunit-bridge": "^4.4 || ^5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.5-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/1.5.2" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2022-08-28T14:55:35+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.4.3", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "67c26b443f348a51926030c83481b85718457d3d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/67c26b443f348a51926030c83481b85718457d3d", + "reference": "67c26b443f348a51926030c83481b85718457d3d", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "http-interop/http-factory-tests": "^0.9", + "phpunit/phpunit": "^8.5.29 || ^9.5.23" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "2.4-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.4.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2022-10-26T14:07:24+00:00" + }, + { + "name": "laminas/laminas-diactoros", + "version": "2.21.0", + "source": { + "type": "git", + "url": "https://github.com/laminas/laminas-diactoros.git", + "reference": "e5b6419fea007b8b4a71034edc8ec96c88d4c57d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laminas/laminas-diactoros/zipball/e5b6419fea007b8b4a71034edc8ec96c88d4c57d", + "reference": "e5b6419fea007b8b4a71034edc8ec96c88d4c57d", + "shasum": "" + }, + "require": { + "php": "~8.0.0 || ~8.1.0 || ~8.2.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0" + }, + "conflict": { + "zendframework/zend-diactoros": "*" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "ext-curl": "*", + "ext-dom": "*", + "ext-gd": "*", + "ext-libxml": "*", + "http-interop/http-factory-tests": "^0.9.0", + "laminas/laminas-coding-standard": "^2.4.0", + "php-http/psr7-integration-tests": "^1.1.1", + "phpunit/phpunit": "^9.5.26", + "psalm/plugin-phpunit": "^0.18.0", + "vimeo/psalm": "^4.29.0" + }, + "type": "library", + "extra": { + "laminas": { + "config-provider": "Laminas\\Diactoros\\ConfigProvider", + "module": "Laminas\\Diactoros" + } + }, + "autoload": { + "files": [ + "src/functions/create_uploaded_file.php", + "src/functions/marshal_headers_from_sapi.php", + "src/functions/marshal_method_from_sapi.php", + "src/functions/marshal_protocol_version_from_sapi.php", + "src/functions/marshal_uri_from_sapi.php", + "src/functions/normalize_server.php", + "src/functions/normalize_uploaded_files.php", + "src/functions/parse_cookie_header.php", + "src/functions/create_uploaded_file.legacy.php", + "src/functions/marshal_headers_from_sapi.legacy.php", + "src/functions/marshal_method_from_sapi.legacy.php", + "src/functions/marshal_protocol_version_from_sapi.legacy.php", + "src/functions/marshal_uri_from_sapi.legacy.php", + "src/functions/normalize_server.legacy.php", + "src/functions/normalize_uploaded_files.legacy.php", + "src/functions/parse_cookie_header.legacy.php" + ], + "psr-4": { + "Laminas\\Diactoros\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "PSR HTTP Message implementations", + "homepage": "https://laminas.dev", + "keywords": [ + "http", + "laminas", + "psr", + "psr-17", + "psr-7" + ], + "support": { + "chat": "https://laminas.dev/chat", + "docs": "https://docs.laminas.dev/laminas-diactoros/", + "forum": "https://discourse.laminas.dev", + "issues": "https://github.com/laminas/laminas-diactoros/issues", + "rss": "https://github.com/laminas/laminas-diactoros/releases.atom", + "source": "https://github.com/laminas/laminas-diactoros" + }, + "funding": [ + { + "url": "https://funding.communitybridge.org/projects/laminas-project", + "type": "community_bridge" + } + ], + "time": "2022-11-11T09:01:24+00:00" + }, + { + "name": "laravel/framework", + "version": "v9.40.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "9611fdaf2db5759b8299802d7185bcdbee0340bb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/9611fdaf2db5759b8299802d7185bcdbee0340bb", + "reference": "9611fdaf2db5759b8299802d7185bcdbee0340bb", + "shasum": "" + }, + "require": { + "doctrine/inflector": "^2.0", + "dragonmantank/cron-expression": "^3.3.2", + "egulias/email-validator": "^3.2.1", + "ext-mbstring": "*", + "ext-openssl": "*", + "fruitcake/php-cors": "^1.2", + "laravel/serializable-closure": "^1.2.2", + "league/commonmark": "^2.2", + "league/flysystem": "^3.8.0", + "monolog/monolog": "^2.0", + "nesbot/carbon": "^2.62.1", + "nunomaduro/termwind": "^1.13", + "php": "^8.0.2", + "psr/container": "^1.1.1|^2.0.1", + "psr/log": "^1.0|^2.0|^3.0", + "psr/simple-cache": "^1.0|^2.0|^3.0", + "ramsey/uuid": "^4.2.2", + "symfony/console": "^6.0.9", + "symfony/error-handler": "^6.0", + "symfony/finder": "^6.0", + "symfony/http-foundation": "^6.0", + "symfony/http-kernel": "^6.0", + "symfony/mailer": "^6.0", + "symfony/mime": "^6.0", + "symfony/process": "^6.0", + "symfony/routing": "^6.0", + "symfony/uid": "^6.0", + "symfony/var-dumper": "^6.0", + "tijsverkoyen/css-to-inline-styles": "^2.2.5", + "vlucas/phpdotenv": "^5.4.1", + "voku/portable-ascii": "^2.0" + }, + "conflict": { + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.1|2.0", + "psr/simple-cache-implementation": "1.0|2.0|3.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/collections": "self.version", + "illuminate/conditionable": "self.version", + "illuminate/config": "self.version", + "illuminate/console": "self.version", + "illuminate/container": "self.version", + "illuminate/contracts": "self.version", + "illuminate/cookie": "self.version", + "illuminate/database": "self.version", + "illuminate/encryption": "self.version", + "illuminate/events": "self.version", + "illuminate/filesystem": "self.version", + "illuminate/hashing": "self.version", + "illuminate/http": "self.version", + "illuminate/log": "self.version", + "illuminate/macroable": "self.version", + "illuminate/mail": "self.version", + "illuminate/notifications": "self.version", + "illuminate/pagination": "self.version", + "illuminate/pipeline": "self.version", + "illuminate/queue": "self.version", + "illuminate/redis": "self.version", + "illuminate/routing": "self.version", + "illuminate/session": "self.version", + "illuminate/support": "self.version", + "illuminate/testing": "self.version", + "illuminate/translation": "self.version", + "illuminate/validation": "self.version", + "illuminate/view": "self.version" + }, + "require-dev": { + "ably/ably-php": "^1.0", + "aws/aws-sdk-php": "^3.235.5", + "doctrine/dbal": "^2.13.3|^3.1.4", + "fakerphp/faker": "^1.9.2", + "guzzlehttp/guzzle": "^7.5", + "league/flysystem-aws-s3-v3": "^3.0", + "league/flysystem-ftp": "^3.0", + "league/flysystem-path-prefixing": "^3.3", + "league/flysystem-read-only": "^3.3", + "league/flysystem-sftp-v3": "^3.0", + "mockery/mockery": "^1.5.1", + "orchestra/testbench-core": "^7.11", + "pda/pheanstalk": "^4.0", + "phpstan/phpstan": "^1.4.7", + "phpunit/phpunit": "^9.5.8", + "predis/predis": "^1.1.9|^2.0.2", + "symfony/cache": "^6.0" + }, + "suggest": { + "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.235.5).", + "brianium/paratest": "Required to run tests in parallel (^6.0).", + "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.13.3|^3.1.4).", + "ext-bcmath": "Required to use the multiple_of validation rule.", + "ext-ftp": "Required to use the Flysystem FTP driver.", + "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", + "ext-memcached": "Required to use the memcache cache driver.", + "ext-pcntl": "Required to use all features of the queue worker.", + "ext-posix": "Required to use all features of the queue worker.", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).", + "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).", + "filp/whoops": "Required for friendly error pages in development (^2.14.3).", + "guzzlehttp/guzzle": "Required to use the HTTP Client and the ping methods on schedules (^7.5).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.0).", + "league/flysystem-ftp": "Required to use the Flysystem FTP driver (^3.0).", + "league/flysystem-path-prefixing": "Required to use the scoped driver (^3.3).", + "league/flysystem-read-only": "Required to use read-only disks (^3.3)", + "league/flysystem-sftp-v3": "Required to use the Flysystem SFTP driver (^3.0).", + "mockery/mockery": "Required to use mocking (^1.5.1).", + "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).", + "phpunit/phpunit": "Required to use assertions and run tests (^9.5.8).", + "predis/predis": "Required to use the predis connector (^1.1.9|^2.0.2).", + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^6.0).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^6.0).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^6.0).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^6.0).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^6.0).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" + } + }, + "autoload": { + "files": [ + "src/Illuminate/Collections/helpers.php", + "src/Illuminate/Events/functions.php", + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Support/helpers.php" + ], + "psr-4": { + "Illuminate\\": "src/Illuminate/", + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/", + "src/Illuminate/Conditionable/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Laravel Framework.", + "homepage": "https://laravel.com", + "keywords": [ + "framework", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2022-11-15T16:13:22+00:00" + }, + { + "name": "laravel/octane", + "version": "v1.3.8", + "source": { + "type": "git", + "url": "https://github.com/laravel/octane.git", + "reference": "87833f7246992e2652f907104f5c9cf25daa1679" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/octane/zipball/87833f7246992e2652f907104f5c9cf25daa1679", + "reference": "87833f7246992e2652f907104f5c9cf25daa1679", + "shasum": "" + }, + "require": { + "laminas/laminas-diactoros": "^2.5", + "laravel/framework": "^8.83.26|^9.38.0", + "laravel/serializable-closure": "^1.0", + "nesbot/carbon": "^2.60", + "php": "^8.0", + "symfony/psr-http-message-bridge": "^2.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.2", + "mockery/mockery": "^1.4", + "nunomaduro/collision": "^5.10|^6.0", + "orchestra/testbench": "^6.16|^7.0", + "phpunit/phpunit": "^9.3", + "spiral/roadrunner": "^2.8.2" + }, + "bin": [ + "bin/roadrunner-worker", + "bin/swoole-server" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + }, + "laravel": { + "providers": [ + "Laravel\\Octane\\OctaneServiceProvider" + ], + "aliases": { + "Octane": "Laravel\\Octane\\Facades\\Octane" + } + } + }, + "autoload": { + "psr-4": { + "Laravel\\Octane\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Supercharge your Laravel application's performance.", + "keywords": [ + "laravel", + "octane", + "roadrunner", + "swoole" + ], + "support": { + "issues": "https://github.com/laravel/octane/issues", + "source": "https://github.com/laravel/octane" + }, + "time": "2022-11-11T14:45:14+00:00" + }, + { + "name": "laravel/sanctum", + "version": "v3.0.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/sanctum.git", + "reference": "b71e80a3a8e8029e2ec8c1aa814b999609ce16dc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sanctum/zipball/b71e80a3a8e8029e2ec8c1aa814b999609ce16dc", + "reference": "b71e80a3a8e8029e2ec8c1aa814b999609ce16dc", + "shasum": "" + }, + "require": { + "ext-json": "*", + "illuminate/console": "^9.21", + "illuminate/contracts": "^9.21", + "illuminate/database": "^9.21", + "illuminate/support": "^9.21", + "php": "^8.0.2" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "orchestra/testbench": "^7.0", + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + }, + "laravel": { + "providers": [ + "Laravel\\Sanctum\\SanctumServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sanctum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.", + "keywords": [ + "auth", + "laravel", + "sanctum" + ], + "support": { + "issues": "https://github.com/laravel/sanctum/issues", + "source": "https://github.com/laravel/sanctum" + }, + "time": "2022-07-29T21:33:30+00:00" + }, + { + "name": "laravel/serializable-closure", + "version": "v1.2.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "47afb7fae28ed29057fdca37e16a84f90cc62fae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/47afb7fae28ed29057fdca37e16a84f90cc62fae", + "reference": "47afb7fae28ed29057fdca37e16a84f90cc62fae", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "nesbot/carbon": "^2.61", + "pestphp/pest": "^1.21.3", + "phpstan/phpstan": "^1.8.2", + "symfony/var-dumper": "^5.4.11" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\SerializableClosure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "nuno@laravel.com" + } + ], + "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", + "keywords": [ + "closure", + "laravel", + "serializable" + ], + "support": { + "issues": "https://github.com/laravel/serializable-closure/issues", + "source": "https://github.com/laravel/serializable-closure" + }, + "time": "2022-09-08T13:45:54+00:00" + }, + { + "name": "laravel/tinker", + "version": "v2.7.3", + "source": { + "type": "git", + "url": "https://github.com/laravel/tinker.git", + "reference": "5062061b4924af3392225dd482ca7b4d85d8b8ef" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/tinker/zipball/5062061b4924af3392225dd482ca7b4d85d8b8ef", + "reference": "5062061b4924af3392225dd482ca7b4d85d8b8ef", + "shasum": "" + }, + "require": { + "illuminate/console": "^6.0|^7.0|^8.0|^9.0", + "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0", + "php": "^7.2.5|^8.0", + "psy/psysh": "^0.10.4|^0.11.1", + "symfony/var-dumper": "^4.3.4|^5.0|^6.0" + }, + "require-dev": { + "mockery/mockery": "~1.3.3|^1.4.2", + "phpunit/phpunit": "^8.5.8|^9.3.3" + }, + "suggest": { + "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + }, + "laravel": { + "providers": [ + "Laravel\\Tinker\\TinkerServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Tinker\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Powerful REPL for the Laravel framework.", + "keywords": [ + "REPL", + "Tinker", + "laravel", + "psysh" + ], + "support": { + "issues": "https://github.com/laravel/tinker/issues", + "source": "https://github.com/laravel/tinker/tree/v2.7.3" + }, + "time": "2022-11-09T15:11:38+00:00" + }, + { + "name": "league/commonmark", + "version": "2.3.7", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "a36bd2be4f5387c0f3a8792a0d76b7d68865abbf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/a36bd2be4f5387c0f3a8792a0d76b7d68865abbf", + "reference": "a36bd2be4f5387c0f3a8792a0d76b7d68865abbf", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "league/config": "^1.1.1", + "php": "^7.4 || ^8.0", + "psr/event-dispatcher": "^1.0", + "symfony/deprecation-contracts": "^2.1 || ^3.0", + "symfony/polyfill-php80": "^1.16" + }, + "require-dev": { + "cebe/markdown": "^1.0", + "commonmark/cmark": "0.30.0", + "commonmark/commonmark.js": "0.30.0", + "composer/package-versions-deprecated": "^1.8", + "embed/embed": "^4.4", + "erusev/parsedown": "^1.0", + "ext-json": "*", + "github/gfm": "0.29.0", + "michelf/php-markdown": "^1.4 || ^2.0", + "nyholm/psr7": "^1.5", + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.21", + "scrutinizer/ocular": "^1.8.1", + "symfony/finder": "^5.3 | ^6.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0", + "unleashedtech/php-coding-standard": "^3.1.1", + "vimeo/psalm": "^4.24.0" + }, + "suggest": { + "symfony/yaml": "v2.3+ required if using the Front Matter extension" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.4-dev" + } + }, + "autoload": { + "psr-4": { + "League\\CommonMark\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)", + "homepage": "https://commonmark.thephpleague.com", + "keywords": [ + "commonmark", + "flavored", + "gfm", + "github", + "github-flavored", + "markdown", + "md", + "parser" + ], + "support": { + "docs": "https://commonmark.thephpleague.com/", + "forum": "https://github.com/thephpleague/commonmark/discussions", + "issues": "https://github.com/thephpleague/commonmark/issues", + "rss": "https://github.com/thephpleague/commonmark/releases.atom", + "source": "https://github.com/thephpleague/commonmark" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/commonmark", + "type": "tidelift" + } + ], + "time": "2022-11-03T17:29:46+00:00" + }, + { + "name": "league/config", + "version": "v1.1.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/config.git", + "reference": "a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/config/zipball/a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e", + "reference": "a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e", + "shasum": "" + }, + "require": { + "dflydev/dot-access-data": "^3.0.1", + "nette/schema": "^1.2", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.90", + "phpunit/phpunit": "^9.5.5", + "scrutinizer/ocular": "^1.8.1", + "unleashedtech/php-coding-standard": "^3.1", + "vimeo/psalm": "^4.7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Config\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Define configuration arrays with strict schemas and access values with dot notation", + "homepage": "https://config.thephpleague.com", + "keywords": [ + "array", + "config", + "configuration", + "dot", + "dot-access", + "nested", + "schema" + ], + "support": { + "docs": "https://config.thephpleague.com/", + "issues": "https://github.com/thephpleague/config/issues", + "rss": "https://github.com/thephpleague/config/releases.atom", + "source": "https://github.com/thephpleague/config" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + } + ], + "time": "2021-08-14T12:15:32+00:00" + }, + { + "name": "league/flysystem", + "version": "3.10.3", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "8013fb046c6a244b2b1b75cc95d732ed6bcdeb8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/8013fb046c6a244b2b1b75cc95d732ed6bcdeb8a", + "reference": "8013fb046c6a244b2b1b75cc95d732ed6bcdeb8a", + "shasum": "" + }, + "require": { + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "conflict": { + "aws/aws-sdk-php": "3.209.31 || 3.210.0", + "guzzlehttp/guzzle": "<7.0", + "guzzlehttp/ringphp": "<1.1.1", + "phpseclib/phpseclib": "3.0.15", + "symfony/http-client": "<5.2" + }, + "require-dev": { + "async-aws/s3": "^1.5", + "async-aws/simple-s3": "^1.1", + "aws/aws-sdk-php": "^3.198.1", + "composer/semver": "^3.0", + "ext-fileinfo": "*", + "ext-ftp": "*", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.5", + "google/cloud-storage": "^1.23", + "microsoft/azure-storage-blob": "^1.1", + "phpseclib/phpseclib": "^3.0.14", + "phpstan/phpstan": "^0.12.26", + "phpunit/phpunit": "^9.5.11", + "sabre/dav": "^4.3.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "File storage abstraction for PHP", + "keywords": [ + "WebDAV", + "aws", + "cloud", + "file", + "files", + "filesystem", + "filesystems", + "ftp", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/3.10.3" + }, + "funding": [ + { + "url": "https://ecologi.com/frankdejonge", + "type": "custom" + }, + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2022-11-14T10:42:43+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "ff6248ea87a9f116e78edd6002e39e5128a0d4dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/ff6248ea87a9f116e78edd6002e39e5128a0d4dd", + "reference": "ff6248ea87a9f116e78edd6002e39e5128a0d4dd", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "phpstan/phpstan": "^0.12.68", + "phpunit/phpunit": "^8.5.8 || ^9.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\MimeTypeDetection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Mime-type detection for Flysystem", + "support": { + "issues": "https://github.com/thephpleague/mime-type-detection/issues", + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.11.0" + }, + "funding": [ + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2022-04-17T13:12:02+00:00" + }, + { + "name": "monolog/monolog", + "version": "2.8.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "720488632c590286b88b80e62aa3d3d551ad4a50" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/720488632c590286b88b80e62aa3d3d551ad4a50", + "reference": "720488632c590286b88b80e62aa3d3d551ad4a50", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "provide": { + "psr/log-implementation": "1.0.0 || 2.0.0 || 3.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^2.4.9 || ^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", + "graylog2/gelf-php": "^1.4.2", + "guzzlehttp/guzzle": "^7.4", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "phpspec/prophecy": "^1.15", + "phpstan/phpstan": "^0.12.91", + "phpunit/phpunit": "^8.5.14", + "predis/predis": "^1.1 || ^2.0", + "rollbar/rollbar": "^1.3 || ^2 || ^3", + "ruflin/elastica": "^7", + "swiftmailer/swiftmailer": "^5.3|^6.0", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "ext-openssl": "Required to send log messages using SSL", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "https://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "support": { + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/2.8.0" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2022-07-24T11:55:47+00:00" + }, + { + "name": "nesbot/carbon", + "version": "2.63.0", + "source": { + "type": "git", + "url": "https://github.com/briannesbitt/Carbon.git", + "reference": "ad35dd71a6a212b98e4b87e97389b6fa85f0e347" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/ad35dd71a6a212b98e4b87e97389b6fa85f0e347", + "reference": "ad35dd71a6a212b98e4b87e97389b6fa85f0e347", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^7.1.8 || ^8.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/polyfill-php80": "^1.16", + "symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0" + }, + "require-dev": { + "doctrine/dbal": "^2.0 || ^3.0", + "doctrine/orm": "^2.7", + "friendsofphp/php-cs-fixer": "^3.0", + "kylekatarnls/multi-tester": "^2.0", + "ondrejmirtes/better-reflection": "*", + "phpmd/phpmd": "^2.9", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^0.12.99 || ^1.7.14", + "phpunit/php-file-iterator": "^2.0.5 || ^3.0.6", + "phpunit/phpunit": "^7.5.20 || ^8.5.26 || ^9.5.20", + "squizlabs/php_codesniffer": "^3.4" + }, + "bin": [ + "bin/carbon" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-3.x": "3.x-dev", + "dev-master": "2.x-dev" + }, + "laravel": { + "providers": [ + "Carbon\\Laravel\\ServiceProvider" + ] + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "Carbon\\": "src/Carbon/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "https://markido.com" + }, + { + "name": "kylekatarnls", + "homepage": "https://github.com/kylekatarnls" + } + ], + "description": "An API extension for DateTime that supports 281 different languages.", + "homepage": "https://carbon.nesbot.com", + "keywords": [ + "date", + "datetime", + "time" + ], + "support": { + "docs": "https://carbon.nesbot.com/docs", + "issues": "https://github.com/briannesbitt/Carbon/issues", + "source": "https://github.com/briannesbitt/Carbon" + }, + "funding": [ + { + "url": "https://github.com/sponsors/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon#sponsor", + "type": "opencollective" + }, + { + "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", + "type": "tidelift" + } + ], + "time": "2022-10-30T18:34:28+00:00" + }, + { + "name": "nette/schema", + "version": "v1.2.3", + "source": { + "type": "git", + "url": "https://github.com/nette/schema.git", + "reference": "abbdbb70e0245d5f3bf77874cea1dfb0c930d06f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/schema/zipball/abbdbb70e0245d5f3bf77874cea1dfb0c930d06f", + "reference": "abbdbb70e0245d5f3bf77874cea1dfb0c930d06f", + "shasum": "" + }, + "require": { + "nette/utils": "^2.5.7 || ^3.1.5 || ^4.0", + "php": ">=7.1 <8.3" + }, + "require-dev": { + "nette/tester": "^2.3 || ^2.4", + "phpstan/phpstan-nette": "^1.0", + "tracy/tracy": "^2.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "📐 Nette Schema: validating data structures against a given Schema.", + "homepage": "https://nette.org", + "keywords": [ + "config", + "nette" + ], + "support": { + "issues": "https://github.com/nette/schema/issues", + "source": "https://github.com/nette/schema/tree/v1.2.3" + }, + "time": "2022-10-13T01:24:26+00:00" + }, + { + "name": "nette/utils", + "version": "v3.2.8", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "02a54c4c872b99e4ec05c4aec54b5a06eb0f6368" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/02a54c4c872b99e4ec05c4aec54b5a06eb0f6368", + "reference": "02a54c4c872b99e4ec05c4aec54b5a06eb0f6368", + "shasum": "" + }, + "require": { + "php": ">=7.2 <8.3" + }, + "conflict": { + "nette/di": "<3.0.6" + }, + "require-dev": { + "nette/tester": "~2.0", + "phpstan/phpstan": "^1.0", + "tracy/tracy": "^2.3" + }, + "suggest": { + "ext-gd": "to use Image", + "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()", + "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()", + "ext-json": "to use Nette\\Utils\\Json", + "ext-mbstring": "to use Strings::lower() etc...", + "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()", + "ext-xml": "to use Strings::length() etc. when mbstring is not available" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", + "homepage": "https://nette.org", + "keywords": [ + "array", + "core", + "datetime", + "images", + "json", + "nette", + "paginator", + "password", + "slugify", + "string", + "unicode", + "utf-8", + "utility", + "validation" + ], + "support": { + "issues": "https://github.com/nette/utils/issues", + "source": "https://github.com/nette/utils/tree/v3.2.8" + }, + "time": "2022-09-12T23:36:20+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v4.15.2", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", + "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=7.0" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.2" + }, + "time": "2022-11-12T15:38:23+00:00" + }, + { + "name": "nunomaduro/termwind", + "version": "v1.14.2", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "9a8218511eb1a0965629ff820dda25985440aefc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/9a8218511eb1a0965629ff820dda25985440aefc", + "reference": "9a8218511eb1a0965629ff820dda25985440aefc", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^8.0", + "symfony/console": "^5.3.0|^6.0.0" + }, + "require-dev": { + "ergebnis/phpstan-rules": "^1.0.", + "illuminate/console": "^8.0|^9.0", + "illuminate/support": "^8.0|^9.0", + "laravel/pint": "^1.0.0", + "pestphp/pest": "^1.21.0", + "pestphp/pest-plugin-mock": "^1.0", + "phpstan/phpstan": "^1.4.6", + "phpstan/phpstan-strict-rules": "^1.1.0", + "symfony/var-dumper": "^5.2.7|^6.0.0", + "thecodingmachine/phpstan-strict-rules": "^1.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/Functions.php" + ], + "psr-4": { + "Termwind\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Its like Tailwind CSS, but for the console.", + "keywords": [ + "cli", + "console", + "css", + "package", + "php", + "style" + ], + "support": { + "issues": "https://github.com/nunomaduro/termwind/issues", + "source": "https://github.com/nunomaduro/termwind/tree/v1.14.2" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/xiCO2k", + "type": "github" + } + ], + "time": "2022-10-28T22:51:32+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.0", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "dc5ff11e274a90cc1c743f66c9ad700ce50db9ab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/dc5ff11e274a90cc1c743f66c9ad700ce50db9ab", + "reference": "dc5ff11e274a90cc1c743f66c9ad700ce50db9ab", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8", + "phpunit/phpunit": "^8.5.28 || ^9.5.21" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true + }, + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.9.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2022-07-30T15:51:26+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client/tree/master" + }, + "time": "2020-06-29T06:28:15+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "shasum": "" + }, + "require": { + "php": ">=7.0.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/master" + }, + "time": "2019-04-30T12:38:16+00:00" + }, + { + "name": "psr/http-message", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/master" + }, + "time": "2016-08-06T14:39:51+00:00" + }, + { + "name": "psr/log", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.0" + }, + "time": "2021-07-14T16:46:02+00:00" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "time": "2021-10-29T13:26:27+00:00" + }, + { + "name": "psy/psysh", + "version": "v0.11.9", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/psysh.git", + "reference": "1acec99d6684a54ff92f8b548a4e41b566963778" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/1acec99d6684a54ff92f8b548a4e41b566963778", + "reference": "1acec99d6684a54ff92f8b548a4e41b566963778", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "nikic/php-parser": "^4.0 || ^3.1", + "php": "^8.0 || ^7.0.8", + "symfony/console": "^6.0 || ^5.0 || ^4.0 || ^3.4", + "symfony/var-dumper": "^6.0 || ^5.0 || ^4.0 || ^3.4" + }, + "conflict": { + "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.2" + }, + "suggest": { + "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", + "ext-pdo-sqlite": "The doc command requires SQLite to work.", + "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.", + "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history." + }, + "bin": [ + "bin/psysh" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.11.x-dev" + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Psy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info", + "homepage": "http://justinhileman.com" + } + ], + "description": "An interactive shell for modern PHP.", + "homepage": "http://psysh.org", + "keywords": [ + "REPL", + "console", + "interactive", + "shell" + ], + "support": { + "issues": "https://github.com/bobthecow/psysh/issues", + "source": "https://github.com/bobthecow/psysh/tree/v0.11.9" + }, + "time": "2022-11-06T15:29:46+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "ramsey/collection", + "version": "1.2.2", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "cccc74ee5e328031b15640b51056ee8d3bb66c0a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/cccc74ee5e328031b15640b51056ee8d3bb66c0a", + "reference": "cccc74ee5e328031b15640b51056ee8d3bb66c0a", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8", + "symfony/polyfill-php81": "^1.23" + }, + "require-dev": { + "captainhook/captainhook": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "ergebnis/composer-normalize": "^2.6", + "fakerphp/faker": "^1.5", + "hamcrest/hamcrest-php": "^2", + "jangregor/phpstan-prophecy": "^0.8", + "mockery/mockery": "^1.3", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/extension-installer": "^1", + "phpstan/phpstan": "^0.12.32", + "phpstan/phpstan-mockery": "^0.12.5", + "phpstan/phpstan-phpunit": "^0.12.11", + "phpunit/phpunit": "^8.5 || ^9", + "psy/psysh": "^0.10.4", + "slevomat/coding-standard": "^6.3", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/1.2.2" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/collection", + "type": "tidelift" + } + ], + "time": "2021-10-10T03:01:02+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.6.0", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "ad63bc700e7d021039e30ce464eba384c4a1d40f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/ad63bc700e7d021039e30ce464eba384c4a1d40f", + "reference": "ad63bc700e7d021039e30ce464eba384c4a1d40f", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.8 || ^0.9 || ^0.10", + "ext-json": "*", + "php": "^8.0", + "ramsey/collection": "^1.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.10", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.8", + "ergebnis/composer-normalize": "^2.15", + "mockery/mockery": "^1.3", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.2", + "php-mock/php-mock-mockery": "^1.3", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpbench/phpbench": "^1.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^8.5 || ^9", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.9" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.6.0" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid", + "type": "tidelift" + } + ], + "time": "2022-11-05T23:03:38+00:00" + }, + { + "name": "symfony/console", + "version": "v6.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "a1282bd0c096e0bdb8800b104177e2ce404d8815" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/a1282bd0c096e0bdb8800b104177e2ce404d8815", + "reference": "a1282bd0c096e0bdb8800b104177e2ce404d8815", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/string": "^5.4|^6.0" + }, + "conflict": { + "symfony/dependency-injection": "<5.4", + "symfony/dotenv": "<5.4", + "symfony/event-dispatcher": "<5.4", + "symfony/lock": "<5.4", + "symfony/process": "<5.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/lock": "^5.4|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/var-dumper": "^5.4|^6.0" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/lock": "", + "symfony/process": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v6.1.7" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-26T21:42:49+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v6.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "0dd5e36b80e1de97f8f74ed7023ac2b837a36443" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/0dd5e36b80e1de97f8f74ed7023ac2b837a36443", + "reference": "0dd5e36b80e1de97f8f74ed7023ac2b837a36443", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Converts CSS selectors to XPath expressions", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/css-selector/tree/v6.1.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-06-27T17:24:16+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-02-25T11:15:52+00:00" + }, + { + "name": "symfony/error-handler", + "version": "v6.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/error-handler.git", + "reference": "699a26ce5ec656c198bf6e26398b0f0818c7e504" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/699a26ce5ec656c198bf6e26398b0f0818c7e504", + "reference": "699a26ce5ec656c198bf6e26398b0f0818c7e504", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^1|^2|^3", + "symfony/var-dumper": "^5.4|^6.0" + }, + "require-dev": { + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/serializer": "^5.4|^6.0" + }, + "bin": [ + "Resources/bin/patch-type-declarations" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\ErrorHandler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to manage errors and ease debugging PHP code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/error-handler/tree/v6.1.7" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-28T16:23:08+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v6.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "a0449a7ad7daa0f7c0acd508259f80544ab5a347" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a0449a7ad7daa0f7c0acd508259f80544ab5a347", + "reference": "a0449a7ad7daa0f7c0acd508259f80544ab5a347", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/event-dispatcher-contracts": "^2|^3" + }, + "conflict": { + "symfony/dependency-injection": "<5.4" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/error-handler": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/stopwatch": "^5.4|^6.0" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v6.1.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-05T16:51:07+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v3.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "02ff5eea2f453731cfbc6bc215e456b781480448" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/02ff5eea2f453731cfbc6bc215e456b781480448", + "reference": "02ff5eea2f453731cfbc6bc215e456b781480448", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/event-dispatcher": "^1" + }, + "suggest": { + "symfony/event-dispatcher-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-02-25T11:15:52+00:00" + }, + { + "name": "symfony/finder", + "version": "v6.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/39696bff2c2970b3779a5cac7bf9f0b88fc2b709", + "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "symfony/filesystem": "^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v6.1.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-07-29T07:42:06+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v6.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "792a1856d2b95273f0e1c3435785f1d01a60ecc6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/792a1856d2b95273f0e1c3435785f1d01a60ecc6", + "reference": "792a1856d2b95273f0e1c3435785f1d01a60ecc6", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.1" + }, + "require-dev": { + "predis/predis": "~1.0", + "symfony/cache": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-kernel": "^5.4.12|^6.0.12|^6.1.4", + "symfony/mime": "^5.4|^6.0", + "symfony/rate-limiter": "^5.2|^6.0" + }, + "suggest": { + "symfony/mime": "To use the file extension guesser" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Defines an object-oriented layer for the HTTP specification", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-foundation/tree/v6.1.7" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-12T09:44:59+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v6.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "8fc1ffe753948c47a103a809cdd6a4a8458b3254" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/8fc1ffe753948c47a103a809cdd6a4a8458b3254", + "reference": "8fc1ffe753948c47a103a809cdd6a4a8458b3254", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^1|^2|^3", + "symfony/error-handler": "^6.1", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/browser-kit": "<5.4", + "symfony/cache": "<5.4", + "symfony/config": "<6.1", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<6.1", + "symfony/doctrine-bridge": "<5.4", + "symfony/form": "<5.4", + "symfony/http-client": "<5.4", + "symfony/mailer": "<5.4", + "symfony/messenger": "<5.4", + "symfony/translation": "<5.4", + "symfony/twig-bridge": "<5.4", + "symfony/validator": "<5.4", + "twig/twig": "<2.13" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/cache": "^1.0|^2.0|^3.0", + "symfony/browser-kit": "^5.4|^6.0", + "symfony/config": "^6.1", + "symfony/console": "^5.4|^6.0", + "symfony/css-selector": "^5.4|^6.0", + "symfony/dependency-injection": "^6.1", + "symfony/dom-crawler": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-client-contracts": "^1.1|^2|^3", + "symfony/process": "^5.4|^6.0", + "symfony/routing": "^5.4|^6.0", + "symfony/stopwatch": "^5.4|^6.0", + "symfony/translation": "^5.4|^6.0", + "symfony/translation-contracts": "^1.1|^2|^3", + "symfony/uid": "^5.4|^6.0", + "twig/twig": "^2.13|^3.0.4" + }, + "suggest": { + "symfony/browser-kit": "", + "symfony/config": "", + "symfony/console": "", + "symfony/dependency-injection": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpKernel\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a structured process for converting a Request into a Response", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-kernel/tree/v6.1.7" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-28T18:06:36+00:00" + }, + { + "name": "symfony/mailer", + "version": "v6.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailer.git", + "reference": "7e19813c0b43387c55665780c4caea505cc48391" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailer/zipball/7e19813c0b43387c55665780c4caea505cc48391", + "reference": "7e19813c0b43387c55665780c4caea505cc48391", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.1.10|^3", + "php": ">=8.1", + "psr/event-dispatcher": "^1", + "psr/log": "^1|^2|^3", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/mime": "^5.4|^6.0", + "symfony/service-contracts": "^1.1|^2|^3" + }, + "conflict": { + "symfony/http-kernel": "<5.4" + }, + "require-dev": { + "symfony/http-client-contracts": "^1.1|^2|^3", + "symfony/messenger": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Helps sending emails", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/mailer/tree/v6.1.7" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-28T16:23:08+00:00" + }, + { + "name": "symfony/mime", + "version": "v6.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "f440f066d57691088d998d6e437ce98771144618" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/f440f066d57691088d998d6e437ce98771144618", + "reference": "f440f066d57691088d998d6e437ce98771144618", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "egulias/email-validator": "~3.0.0", + "phpdocumentor/reflection-docblock": "<3.2.2", + "phpdocumentor/type-resolver": "<1.4.0", + "symfony/mailer": "<5.4" + }, + "require-dev": { + "egulias/email-validator": "^2.1.10|^3.1", + "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/property-access": "^5.4|^6.0", + "symfony/property-info": "^5.4|^6.0", + "symfony/serializer": "^5.2|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mime\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows manipulating MIME messages", + "homepage": "https://symfony.com", + "keywords": [ + "mime", + "mime-type" + ], + "support": { + "source": "https://github.com/symfony/mime/tree/v6.1.7" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-19T08:10:53+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "511a08c03c1960e08a883f4cffcacd219b758354" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354", + "reference": "511a08c03c1960e08a883f4cffcacd219b758354", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "639084e360537a19f9ee352433b84ce831f3d2da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/639084e360537a19f9ee352433b84ce831f3d2da", + "reference": "639084e360537a19f9ee352433b84ce831f3d2da", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "symfony/polyfill-intl-normalizer": "^1.10", + "symfony/polyfill-php72": "^1.10" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-php72", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "869329b1e9894268a8a61dabb69153029b7a8c97" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/869329b1e9894268a8a61dabb69153029b7a8c97", + "reference": "869329b1e9894268a8a61dabb69153029b7a8c97", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php72\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php72/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-php81", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php81.git", + "reference": "707403074c8ea6e2edaf8794b0157a0bfa52157a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/707403074c8ea6e2edaf8794b0157a0bfa52157a", + "reference": "707403074c8ea6e2edaf8794b0157a0bfa52157a", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php81\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php81/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-uuid", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "f3cf1a645c2734236ed1e2e671e273eeb3586166" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/f3cf1a645c2734236ed1e2e671e273eeb3586166", + "reference": "f3cf1a645c2734236ed1e2e671e273eeb3586166", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-uuid": "*" + }, + "suggest": { + "ext-uuid": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Uuid\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for uuid functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/process", + "version": "v6.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "a6506e99cfad7059b1ab5cab395854a0a0c21292" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/a6506e99cfad7059b1ab5cab395854a0a0c21292", + "reference": "a6506e99cfad7059b1ab5cab395854a0a0c21292", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v6.1.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-06-27T17:24:16+00:00" + }, + { + "name": "symfony/psr-http-message-bridge", + "version": "v2.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/psr-http-message-bridge.git", + "reference": "d444f85dddf65c7e57c58d8e5b3a4dbb593b1840" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/psr-http-message-bridge/zipball/d444f85dddf65c7e57c58d8e5b3a4dbb593b1840", + "reference": "d444f85dddf65c7e57c58d8e5b3a4dbb593b1840", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0", + "symfony/http-foundation": "^4.4 || ^5.0 || ^6.0" + }, + "require-dev": { + "nyholm/psr7": "^1.1", + "psr/log": "^1.1 || ^2 || ^3", + "symfony/browser-kit": "^4.4 || ^5.0 || ^6.0", + "symfony/config": "^4.4 || ^5.0 || ^6.0", + "symfony/event-dispatcher": "^4.4 || ^5.0 || ^6.0", + "symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0", + "symfony/http-kernel": "^4.4 || ^5.0 || ^6.0", + "symfony/phpunit-bridge": "^5.4@dev || ^6.0" + }, + "suggest": { + "nyholm/psr7": "For a super lightweight PSR-7/17 implementation" + }, + "type": "symfony-bridge", + "extra": { + "branch-alias": { + "dev-main": "2.1-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Bridge\\PsrHttpMessage\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + } + ], + "description": "PSR HTTP message bridge", + "homepage": "http://symfony.com", + "keywords": [ + "http", + "http-message", + "psr-17", + "psr-7" + ], + "support": { + "issues": "https://github.com/symfony/psr-http-message-bridge/issues", + "source": "https://github.com/symfony/psr-http-message-bridge/tree/v2.1.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-09-05T10:34:54+00:00" + }, + { + "name": "symfony/routing", + "version": "v6.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "95effeb9d6e2cec861cee06bf5bbf82d09aea7f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/95effeb9d6e2cec861cee06bf5bbf82d09aea7f5", + "reference": "95effeb9d6e2cec861cee06bf5bbf82d09aea7f5", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "conflict": { + "doctrine/annotations": "<1.12", + "symfony/config": "<5.4", + "symfony/dependency-injection": "<5.4", + "symfony/yaml": "<5.4" + }, + "require-dev": { + "doctrine/annotations": "^1.12", + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/yaml": "^5.4|^6.0" + }, + "suggest": { + "symfony/config": "For using the all-in-one router or any loader", + "symfony/expression-language": "For using expression matching", + "symfony/http-foundation": "For using a Symfony Request object", + "symfony/yaml": "For using the YAML loader" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Routing\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Maps an HTTP request to a set of configuration variables", + "homepage": "https://symfony.com", + "keywords": [ + "router", + "routing", + "uri", + "url" + ], + "support": { + "source": "https://github.com/symfony/routing/tree/v6.1.7" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-18T13:12:43+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v3.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/925e713fe8fcacf6bc05e936edd8dd5441a21239", + "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/container": "^2.0" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "suggest": { + "symfony/service-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v3.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-30T19:18:58+00:00" + }, + { + "name": "symfony/string", + "version": "v6.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "823f143370880efcbdfa2dbca946b3358c4707e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/823f143370880efcbdfa2dbca946b3358c4707e5", + "reference": "823f143370880efcbdfa2dbca946b3358c4707e5", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.0" + }, + "require-dev": { + "symfony/error-handler": "^5.4|^6.0", + "symfony/http-client": "^5.4|^6.0", + "symfony/translation-contracts": "^2.0|^3.0", + "symfony/var-exporter": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "support": { + "source": "https://github.com/symfony/string/tree/v6.1.7" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-10T09:34:31+00:00" + }, + { + "name": "symfony/translation", + "version": "v6.1.6", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "e6cd330e5a072518f88d65148f3f165541807494" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/e6cd330e5a072518f88d65148f3f165541807494", + "reference": "e6cd330e5a072518f88d65148f3f165541807494", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^2.3|^3.0" + }, + "conflict": { + "symfony/config": "<5.4", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<5.4", + "symfony/http-kernel": "<5.4", + "symfony/twig-bundle": "<5.4", + "symfony/yaml": "<5.4" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/console": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-client-contracts": "^1.1|^2.0|^3.0", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/intl": "^5.4|^6.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/routing": "^5.4|^6.0", + "symfony/service-contracts": "^1.1.2|^2|^3", + "symfony/yaml": "^5.4|^6.0" + }, + "suggest": { + "psr/log-implementation": "To use logging capability in translator", + "symfony/config": "", + "symfony/yaml": "" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v6.1.6" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-07T08:04:03+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v3.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/606be0f48e05116baef052f7f3abdb345c8e02cc", + "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "suggest": { + "symfony/translation-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/translation-contracts/tree/v3.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-06-27T17:24:16+00:00" + }, + { + "name": "symfony/uid", + "version": "v6.1.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/uid.git", + "reference": "e03519f7b1ce1d3c0b74f751892bb41d549a2d98" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/uid/zipball/e03519f7b1ce1d3c0b74f751892bb41d549a2d98", + "reference": "e03519f7b1ce1d3c0b74f751892bb41d549a2d98", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-uuid": "^1.15" + }, + "require-dev": { + "symfony/console": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Uid\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to generate and represent UIDs", + "homepage": "https://symfony.com", + "keywords": [ + "UID", + "ulid", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/uid/tree/v6.1.5" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-09-09T09:34:27+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v6.1.6", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "0f0adde127f24548e23cbde83bcaeadc491c551f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/0f0adde127f24548e23cbde83bcaeadc491c551f", + "reference": "0f0adde127f24548e23cbde83bcaeadc491c551f", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "phpunit/phpunit": "<5.4.3", + "symfony/console": "<5.4" + }, + "require-dev": { + "ext-iconv": "*", + "symfony/console": "^5.4|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/uid": "^5.4|^6.0", + "twig/twig": "^2.13|^3.0.4" + }, + "suggest": { + "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).", + "ext-intl": "To show region name in time zone dump", + "symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v6.1.6" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-07T08:04:03+00:00" + }, + { + "name": "tijsverkoyen/css-to-inline-styles", + "version": "2.2.5", + "source": { + "type": "git", + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "4348a3a06651827a27d989ad1d13efec6bb49b19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/4348a3a06651827a27d989ad1d13efec6bb49b19", + "reference": "4348a3a06651827a27d989ad1d13efec6bb49b19", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "php": "^5.5 || ^7.0 || ^8.0", + "symfony/css-selector": "^2.7 || ^3.0 || ^4.0 || ^5.0 || ^6.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^7.5 || ^8.5.21 || ^9.5.10" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.2.x-dev" + } + }, + "autoload": { + "psr-4": { + "TijsVerkoyen\\CssToInlineStyles\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Tijs Verkoyen", + "email": "css_to_inline_styles@verkoyen.eu", + "role": "Developer" + } + ], + "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", + "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", + "support": { + "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/2.2.5" + }, + "time": "2022-09-12T13:28:28+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v5.5.0", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7", + "reference": "1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "graham-campbell/result-type": "^1.0.2", + "php": "^7.1.3 || ^8.0", + "phpoption/phpoption": "^1.8", + "symfony/polyfill-ctype": "^1.23", + "symfony/polyfill-mbstring": "^1.23.1", + "symfony/polyfill-php80": "^1.23.1" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "ext-filter": "*", + "phpunit/phpunit": "^7.5.20 || ^8.5.30 || ^9.5.25" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator." + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true + }, + "branch-alias": { + "dev-master": "5.5-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v5.5.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2022-10-16T01:01:54+00:00" + }, + { + "name": "voku/portable-ascii", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "b56450eed252f6801410d810c8e1727224ae0743" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b56450eed252f6801410d810c8e1727224ae0743", + "reference": "b56450eed252f6801410d810c8e1727224ae0743", + "shasum": "" + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" + }, + "type": "library", + "autoload": { + "psr-4": { + "voku\\": "src/voku/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Lars Moelleken", + "homepage": "http://www.moelleken.org/" + } + ], + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", + "keywords": [ + "ascii", + "clean", + "php" + ], + "support": { + "issues": "https://github.com/voku/portable-ascii/issues", + "source": "https://github.com/voku/portable-ascii/tree/2.0.1" + }, + "funding": [ + { + "url": "https://www.paypal.me/moelleken", + "type": "custom" + }, + { + "url": "https://github.com/voku", + "type": "github" + }, + { + "url": "https://opencollective.com/portable-ascii", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/voku", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", + "type": "tidelift" + } + ], + "time": "2022-03-08T17:03:00+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "php": "^7.2 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.13" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.11.0" + }, + "time": "2022-06-03T18:03:27+00:00" + } + ], + "packages-dev": [ + { + "name": "doctrine/instantiator", + "version": "1.4.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.22" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.4.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2022-03-03T08:28:38+00:00" + }, + { + "name": "fakerphp/faker", + "version": "v1.20.0", + "source": { + "type": "git", + "url": "https://github.com/FakerPHP/Faker.git", + "reference": "37f751c67a5372d4e26353bd9384bc03744ec77b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/37f751c67a5372d4e26353bd9384bc03744ec77b", + "reference": "37f751c67a5372d4e26353bd9384bc03744ec77b", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "psr/container": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "conflict": { + "fzaninotto/faker": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "doctrine/persistence": "^1.3 || ^2.0", + "ext-intl": "*", + "symfony/phpunit-bridge": "^4.4 || ^5.2" + }, + "suggest": { + "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", + "ext-curl": "Required by Faker\\Provider\\Image to download images.", + "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", + "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", + "ext-mbstring": "Required for multibyte Unicode string functionality." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "v1.20-dev" + } + }, + "autoload": { + "psr-4": { + "Faker\\": "src/Faker/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "François Zaninotto" + } + ], + "description": "Faker is a PHP library that generates fake data for you.", + "keywords": [ + "data", + "faker", + "fixtures" + ], + "support": { + "issues": "https://github.com/FakerPHP/Faker/issues", + "source": "https://github.com/FakerPHP/Faker/tree/v1.20.0" + }, + "time": "2022-07-20T13:12:54+00:00" + }, + { + "name": "filp/whoops", + "version": "2.14.6", + "source": { + "type": "git", + "url": "https://github.com/filp/whoops.git", + "reference": "f7948baaa0330277c729714910336383286305da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filp/whoops/zipball/f7948baaa0330277c729714910336383286305da", + "reference": "f7948baaa0330277c729714910336383286305da", + "shasum": "" + }, + "require": { + "php": "^5.5.9 || ^7.0 || ^8.0", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "require-dev": { + "mockery/mockery": "^0.9 || ^1.0", + "phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.3", + "symfony/var-dumper": "^2.6 || ^3.0 || ^4.0 || ^5.0" + }, + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Whoops\\": "src/Whoops/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Filipe Dobreira", + "homepage": "https://github.com/filp", + "role": "Developer" + } + ], + "description": "php error handling for cool kids", + "homepage": "https://filp.github.io/whoops/", + "keywords": [ + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" + ], + "support": { + "issues": "https://github.com/filp/whoops/issues", + "source": "https://github.com/filp/whoops/tree/2.14.6" + }, + "funding": [ + { + "url": "https://github.com/denis-sokolov", + "type": "github" + } + ], + "time": "2022-11-02T16:23:29+00:00" + }, + { + "name": "hamcrest/hamcrest-php", + "version": "v2.0.1", + "source": { + "type": "git", + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "shasum": "" + }, + "require": { + "php": "^5.3|^7.0|^8.0" + }, + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" + }, + "require-dev": { + "phpunit/php-file-iterator": "^1.4 || ^2.0", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "hamcrest" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "This is the PHP port of Hamcrest Matchers", + "keywords": [ + "test" + ], + "support": { + "issues": "https://github.com/hamcrest/hamcrest-php/issues", + "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1" + }, + "time": "2020-07-09T08:09:16+00:00" + }, + { + "name": "laravel/pint", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/pint.git", + "reference": "1d276e4c803397a26cc337df908f55c2a4e90d86" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pint/zipball/1d276e4c803397a26cc337df908f55c2a4e90d86", + "reference": "1d276e4c803397a26cc337df908f55c2a4e90d86", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "ext-tokenizer": "*", + "ext-xml": "*", + "php": "^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.11.0", + "illuminate/view": "^9.27", + "laravel-zero/framework": "^9.1.3", + "mockery/mockery": "^1.5.0", + "nunomaduro/larastan": "^2.2", + "nunomaduro/termwind": "^1.14.0", + "pestphp/pest": "^1.22.1" + }, + "bin": [ + "builds/pint" + ], + "type": "project", + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Seeders\\": "database/seeders/", + "Database\\Factories\\": "database/factories/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "An opinionated code formatter for PHP.", + "homepage": "https://laravel.com", + "keywords": [ + "format", + "formatter", + "lint", + "linter", + "php" + ], + "support": { + "issues": "https://github.com/laravel/pint/issues", + "source": "https://github.com/laravel/pint" + }, + "time": "2022-09-13T15:07:15+00:00" + }, + { + "name": "laravel/sail", + "version": "v1.16.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/sail.git", + "reference": "7d1ed5f856ec8b9708712e3fc0708fcabe114659" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sail/zipball/7d1ed5f856ec8b9708712e3fc0708fcabe114659", + "reference": "7d1ed5f856ec8b9708712e3fc0708fcabe114659", + "shasum": "" + }, + "require": { + "illuminate/console": "^8.0|^9.0", + "illuminate/contracts": "^8.0|^9.0", + "illuminate/support": "^8.0|^9.0", + "php": "^7.3|^8.0" + }, + "bin": [ + "bin/sail" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + }, + "laravel": { + "providers": [ + "Laravel\\Sail\\SailServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sail\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Docker files for running a basic Laravel application.", + "keywords": [ + "docker", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/sail/issues", + "source": "https://github.com/laravel/sail" + }, + "time": "2022-09-28T13:13:22+00:00" + }, + { + "name": "mockery/mockery", + "version": "1.5.1", + "source": { + "type": "git", + "url": "https://github.com/mockery/mockery.git", + "reference": "e92dcc83d5a51851baf5f5591d32cb2b16e3684e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mockery/mockery/zipball/e92dcc83d5a51851baf5f5591d32cb2b16e3684e", + "reference": "e92dcc83d5a51851baf5f5591d32cb2b16e3684e", + "shasum": "" + }, + "require": { + "hamcrest/hamcrest-php": "^2.0.1", + "lib-pcre": ">=7.0", + "php": "^7.3 || ^8.0" + }, + "conflict": { + "phpunit/phpunit": "<8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5 || ^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "psr-0": { + "Mockery": "library/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "http://blog.astrumfutura.com" + }, + { + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "http://davedevelopment.co.uk" + } + ], + "description": "Mockery is a simple yet flexible PHP mock object framework", + "homepage": "https://github.com/mockery/mockery", + "keywords": [ + "BDD", + "TDD", + "library", + "mock", + "mock objects", + "mockery", + "stub", + "test", + "test double", + "testing" + ], + "support": { + "issues": "https://github.com/mockery/mockery/issues", + "source": "https://github.com/mockery/mockery/tree/1.5.1" + }, + "time": "2022-09-07T15:32:08+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2022-03-03T13:19:32+00:00" + }, + { + "name": "nunomaduro/collision", + "version": "v6.3.1", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/collision.git", + "reference": "0f6349c3ed5dd28467087b08fb59384bb458a22b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/0f6349c3ed5dd28467087b08fb59384bb458a22b", + "reference": "0f6349c3ed5dd28467087b08fb59384bb458a22b", + "shasum": "" + }, + "require": { + "filp/whoops": "^2.14.5", + "php": "^8.0.0", + "symfony/console": "^6.0.2" + }, + "require-dev": { + "brianium/paratest": "^6.4.1", + "laravel/framework": "^9.26.1", + "laravel/pint": "^1.1.1", + "nunomaduro/larastan": "^1.0.3", + "nunomaduro/mock-final-classes": "^1.1.0", + "orchestra/testbench": "^7.7", + "phpunit/phpunit": "^9.5.23", + "spatie/ignition": "^1.4.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-develop": "6.x-dev" + }, + "laravel": { + "providers": [ + "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "NunoMaduro\\Collision\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Cli error handling for console/command-line PHP applications.", + "keywords": [ + "artisan", + "cli", + "command-line", + "console", + "error", + "handling", + "laravel", + "laravel-zero", + "php", + "symfony" + ], + "support": { + "issues": "https://github.com/nunomaduro/collision/issues", + "source": "https://github.com/nunomaduro/collision" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2022-09-29T12:29:49+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.3" + }, + "time": "2021-07-20T11:28:43+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "9.2.19", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "c77b56b63e3d2031bd8997fcec43c1925ae46559" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c77b56b63e3d2031bd8997fcec43c1925ae46559", + "reference": "c77b56b63e3d2031bd8997fcec43c1925ae46559", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.14", + "php": ">=7.3", + "phpunit/php-file-iterator": "^3.0.3", + "phpunit/php-text-template": "^2.0.2", + "sebastian/code-unit-reverse-lookup": "^2.0.2", + "sebastian/complexity": "^2.0", + "sebastian/environment": "^5.1.2", + "sebastian/lines-of-code": "^1.0.3", + "sebastian/version": "^3.0.1", + "theseer/tokenizer": "^1.2.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcov": "*", + "ext-xdebug": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.19" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-11-18T07:47:47+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "3.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-12-02T12:48:52+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "3.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:58:55+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T05:33:50+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "5.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:16:10+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "9.5.26", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "851867efcbb6a1b992ec515c71cdcf20d895e9d2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/851867efcbb6a1b992ec515c71cdcf20d895e9d2", + "reference": "851867efcbb6a1b992ec515c71cdcf20d895e9d2", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=7.3", + "phpunit/php-code-coverage": "^9.2.13", + "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-invoker": "^3.1.1", + "phpunit/php-text-template": "^2.0.3", + "phpunit/php-timer": "^5.0.2", + "sebastian/cli-parser": "^1.0.1", + "sebastian/code-unit": "^1.0.6", + "sebastian/comparator": "^4.0.8", + "sebastian/diff": "^4.0.3", + "sebastian/environment": "^5.1.3", + "sebastian/exporter": "^4.0.5", + "sebastian/global-state": "^5.0.1", + "sebastian/object-enumerator": "^4.0.3", + "sebastian/resource-operations": "^3.0.3", + "sebastian/type": "^3.2", + "sebastian/version": "^3.0.2" + }, + "suggest": { + "ext-soap": "*", + "ext-xdebug": "*" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.26" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" + } + ], + "time": "2022-10-28T06:00:21+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:08:49+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:08:54+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:30:19+00:00" + }, + { + "name": "sebastian/comparator", + "version": "4.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T12:41:17+00:00" + }, + { + "name": "sebastian/complexity", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.7", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:52:27+00:00" + }, + { + "name": "sebastian/diff", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:10:38+00:00" + }, + { + "name": "sebastian/environment", + "version": "5.1.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-04-03T09:37:03+00:00" + }, + { + "name": "sebastian/exporter", + "version": "4.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T06:03:37+00:00" + }, + { + "name": "sebastian/global-state", + "version": "5.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-02-14T08:28:10+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.6", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-28T06:42:11+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:12:34+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:14:26+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:17:30+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:45:17+00:00" + }, + { + "name": "sebastian/type", + "version": "3.2.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", + "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-12T14:47:03+00:00" + }, + { + "name": "sebastian/version", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c6c1022351a901512170118436c764e473f6de8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:39:44+00:00" + }, + { + "name": "spatie/backtrace", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/backtrace.git", + "reference": "4ee7d41aa5268107906ea8a4d9ceccde136dbd5b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/4ee7d41aa5268107906ea8a4d9ceccde136dbd5b", + "reference": "4ee7d41aa5268107906ea8a4d9ceccde136dbd5b", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "ext-json": "*", + "phpunit/phpunit": "^9.3", + "symfony/var-dumper": "^5.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Backtrace\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van de Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A better backtrace", + "homepage": "https://github.com/spatie/backtrace", + "keywords": [ + "Backtrace", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/backtrace/issues", + "source": "https://github.com/spatie/backtrace/tree/1.2.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2021-11-09T10:57:15+00:00" + }, + { + "name": "spatie/flare-client-php", + "version": "1.3.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/flare-client-php.git", + "reference": "ebb9ae0509b75e02f128b39537eb9a3ef5ce18e8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/ebb9ae0509b75e02f128b39537eb9a3ef5ce18e8", + "reference": "ebb9ae0509b75e02f128b39537eb9a3ef5ce18e8", + "shasum": "" + }, + "require": { + "illuminate/pipeline": "^8.0|^9.0", + "php": "^8.0", + "spatie/backtrace": "^1.2", + "symfony/http-foundation": "^5.0|^6.0", + "symfony/mime": "^5.2|^6.0", + "symfony/process": "^5.2|^6.0", + "symfony/var-dumper": "^5.2|^6.0" + }, + "require-dev": { + "dms/phpunit-arraysubset-asserts": "^0.3.0", + "pestphp/pest": "^1.20", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/phpunit-snapshot-assertions": "^4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.1.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\FlareClient\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Send PHP errors to Flare", + "homepage": "https://github.com/spatie/flare-client-php", + "keywords": [ + "exception", + "flare", + "reporting", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/flare-client-php/issues", + "source": "https://github.com/spatie/flare-client-php/tree/1.3.1" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2022-11-16T08:30:20+00:00" + }, + { + "name": "spatie/ignition", + "version": "1.4.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/ignition.git", + "reference": "dd3d456779108d7078baf4e43f8c2b937d9794a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/ignition/zipball/dd3d456779108d7078baf4e43f8c2b937d9794a1", + "reference": "dd3d456779108d7078baf4e43f8c2b937d9794a1", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "monolog/monolog": "^2.0", + "php": "^8.0", + "spatie/flare-client-php": "^1.1", + "symfony/console": "^5.4|^6.0", + "symfony/var-dumper": "^5.4|^6.0" + }, + "require-dev": { + "mockery/mockery": "^1.4", + "pestphp/pest": "^1.20", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "symfony/process": "^5.4|^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Spatie\\Ignition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for PHP applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/ignition/issues", + "source": "https://github.com/spatie/ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2022-08-26T11:51:15+00:00" + }, + { + "name": "spatie/laravel-ignition", + "version": "1.6.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-ignition.git", + "reference": "2b79cf6ed40946b64ac6713d7d2da8a9d87f612b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-ignition/zipball/2b79cf6ed40946b64ac6713d7d2da8a9d87f612b", + "reference": "2b79cf6ed40946b64ac6713d7d2da8a9d87f612b", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "illuminate/support": "^8.77|^9.27", + "monolog/monolog": "^2.3", + "php": "^8.0", + "spatie/flare-client-php": "^1.0.1", + "spatie/ignition": "^1.4.1", + "symfony/console": "^5.0|^6.0", + "symfony/var-dumper": "^5.0|^6.0" + }, + "require-dev": { + "filp/whoops": "^2.14", + "livewire/livewire": "^2.8|dev-develop", + "mockery/mockery": "^1.4", + "nunomaduro/larastan": "^1.0", + "orchestra/testbench": "^6.23|^7.0", + "pestphp/pest": "^1.20", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/laravel-ray": "^1.27" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\LaravelIgnition\\IgnitionServiceProvider" + ], + "aliases": { + "Flare": "Spatie\\LaravelIgnition\\Facades\\Flare" + } + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\LaravelIgnition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for Laravel applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/laravel-ignition/issues", + "source": "https://github.com/spatie/laravel-ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2022-10-26T17:39:54+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2021-07-28T10:34:58+00:00" + } + ], + "aliases": [], + "minimum-stability": "dev", + "stability-flags": [], + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^8.0.2" + }, + "platform-dev": [], + "plugin-api-version": "2.3.0" +} diff --git a/examples/laravel/config/app.php b/examples/laravel/config/app.php new file mode 100644 index 0000000..ef76a7e --- /dev/null +++ b/examples/laravel/config/app.php @@ -0,0 +1,215 @@ + env('APP_NAME', 'Laravel'), + + /* + |-------------------------------------------------------------------------- + | Application Environment + |-------------------------------------------------------------------------- + | + | This value determines the "environment" your application is currently + | running in. This may determine how you prefer to configure various + | services the application utilizes. Set this in your ".env" file. + | + */ + + 'env' => env('APP_ENV', 'production'), + + /* + |-------------------------------------------------------------------------- + | Application Debug Mode + |-------------------------------------------------------------------------- + | + | When your application is in debug mode, detailed error messages with + | stack traces will be shown on every error that occurs within your + | application. If disabled, a simple generic error page is shown. + | + */ + + 'debug' => (bool) env('APP_DEBUG', false), + + /* + |-------------------------------------------------------------------------- + | Application URL + |-------------------------------------------------------------------------- + | + | This URL is used by the console to properly generate URLs when using + | the Artisan command line tool. You should set this to the root of + | your application so that it is used when running Artisan tasks. + | + */ + + 'url' => env('APP_URL', 'http://localhost'), + + 'asset_url' => env('ASSET_URL'), + + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Here you may specify the default timezone for your application, which + | will be used by the PHP date and date-time functions. We have gone + | ahead and set this to a sensible default for you out of the box. + | + */ + + 'timezone' => 'UTC', + + /* + |-------------------------------------------------------------------------- + | Application Locale Configuration + |-------------------------------------------------------------------------- + | + | The application locale determines the default locale that will be used + | by the translation service provider. You are free to set this value + | to any of the locales which will be supported by the application. + | + */ + + 'locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Application Fallback Locale + |-------------------------------------------------------------------------- + | + | The fallback locale determines the locale to use when the current one + | is not available. You may change the value to correspond to any of + | the language folders that are provided through your application. + | + */ + + 'fallback_locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Faker Locale + |-------------------------------------------------------------------------- + | + | This locale will be used by the Faker PHP library when generating fake + | data for your database seeds. For example, this will be used to get + | localized telephone numbers, street address information and more. + | + */ + + 'faker_locale' => 'en_US', + + /* + |-------------------------------------------------------------------------- + | Encryption Key + |-------------------------------------------------------------------------- + | + | This key is used by the Illuminate encrypter service and should be set + | to a random, 32 character string, otherwise these encrypted strings + | will not be safe. Please do this before deploying an application! + | + */ + + 'key' => env('APP_KEY'), + + 'cipher' => 'AES-256-CBC', + + /* + |-------------------------------------------------------------------------- + | Maintenance Mode Driver + |-------------------------------------------------------------------------- + | + | These configuration options determine the driver used to determine and + | manage Laravel's "maintenance mode" status. The "cache" driver will + | allow maintenance mode to be controlled across multiple machines. + | + | Supported drivers: "file", "cache" + | + */ + + 'maintenance' => [ + 'driver' => 'file', + // 'store' => 'redis', + ], + + /* + |-------------------------------------------------------------------------- + | Autoloaded Service Providers + |-------------------------------------------------------------------------- + | + | The service providers listed here will be automatically loaded on the + | request to your application. Feel free to add your own services to + | this array to grant expanded functionality to your applications. + | + */ + + 'providers' => [ + + /* + * Laravel Framework Service Providers... + */ + Illuminate\Auth\AuthServiceProvider::class, + Illuminate\Broadcasting\BroadcastServiceProvider::class, + Illuminate\Bus\BusServiceProvider::class, + Illuminate\Cache\CacheServiceProvider::class, + Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, + Illuminate\Cookie\CookieServiceProvider::class, + Illuminate\Database\DatabaseServiceProvider::class, + Illuminate\Encryption\EncryptionServiceProvider::class, + Illuminate\Filesystem\FilesystemServiceProvider::class, + Illuminate\Foundation\Providers\FoundationServiceProvider::class, + Illuminate\Hashing\HashServiceProvider::class, + Illuminate\Mail\MailServiceProvider::class, + Illuminate\Notifications\NotificationServiceProvider::class, + Illuminate\Pagination\PaginationServiceProvider::class, + Illuminate\Pipeline\PipelineServiceProvider::class, + Illuminate\Queue\QueueServiceProvider::class, + Illuminate\Redis\RedisServiceProvider::class, + Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, + Illuminate\Session\SessionServiceProvider::class, + Illuminate\Translation\TranslationServiceProvider::class, + Illuminate\Validation\ValidationServiceProvider::class, + Illuminate\View\ViewServiceProvider::class, + + /* + * Package Service Providers... + */ + + /* + * Application Service Providers... + */ + App\Providers\AppServiceProvider::class, + App\Providers\AuthServiceProvider::class, + // App\Providers\BroadcastServiceProvider::class, + App\Providers\EventServiceProvider::class, + App\Providers\RouteServiceProvider::class, + + ], + + /* + |-------------------------------------------------------------------------- + | Class Aliases + |-------------------------------------------------------------------------- + | + | This array of class aliases will be registered when this application + | is started. However, feel free to register as many as you wish as + | the aliases are "lazy" loaded so they don't hinder performance. + | + */ + + 'aliases' => Facade::defaultAliases()->merge([ + // 'ExampleClass' => App\Example\ExampleClass::class, + ])->toArray(), + +]; diff --git a/examples/laravel/config/auth.php b/examples/laravel/config/auth.php new file mode 100644 index 0000000..d8c6cee --- /dev/null +++ b/examples/laravel/config/auth.php @@ -0,0 +1,111 @@ + [ + 'guard' => 'web', + 'passwords' => 'users', + ], + + /* + |-------------------------------------------------------------------------- + | Authentication Guards + |-------------------------------------------------------------------------- + | + | Next, you may define every authentication guard for your application. + | Of course, a great default configuration has been defined for you + | here which uses session storage and the Eloquent user provider. + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | Supported: "session" + | + */ + + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + ], + + /* + |-------------------------------------------------------------------------- + | User Providers + |-------------------------------------------------------------------------- + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | If you have multiple user tables or models you may configure multiple + | sources which represent each model / table. These sources may then + | be assigned to any extra authentication guards you have defined. + | + | Supported: "database", "eloquent" + | + */ + + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => App\Models\User::class, + ], + + // 'users' => [ + // 'driver' => 'database', + // 'table' => 'users', + // ], + ], + + /* + |-------------------------------------------------------------------------- + | Resetting Passwords + |-------------------------------------------------------------------------- + | + | You may specify multiple password reset configurations if you have more + | than one user table or model in the application and you want to have + | separate password reset settings based on the specific user types. + | + | The expire time is the number of minutes that each reset token will be + | considered valid. This security feature keeps tokens short-lived so + | they have less time to be guessed. You may change this as needed. + | + */ + + 'passwords' => [ + 'users' => [ + 'provider' => 'users', + 'table' => 'password_resets', + 'expire' => 60, + 'throttle' => 60, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Password Confirmation Timeout + |-------------------------------------------------------------------------- + | + | Here you may define the amount of seconds before a password confirmation + | times out and the user is prompted to re-enter their password via the + | confirmation screen. By default, the timeout lasts for three hours. + | + */ + + 'password_timeout' => 10800, + +]; diff --git a/examples/laravel/config/broadcasting.php b/examples/laravel/config/broadcasting.php new file mode 100644 index 0000000..9e4d4aa --- /dev/null +++ b/examples/laravel/config/broadcasting.php @@ -0,0 +1,70 @@ + env('BROADCAST_DRIVER', 'null'), + + /* + |-------------------------------------------------------------------------- + | Broadcast Connections + |-------------------------------------------------------------------------- + | + | Here you may define all of the broadcast connections that will be used + | to broadcast events to other systems or over websockets. Samples of + | each available type of connection are provided inside this array. + | + */ + + 'connections' => [ + + 'pusher' => [ + 'driver' => 'pusher', + 'key' => env('PUSHER_APP_KEY'), + 'secret' => env('PUSHER_APP_SECRET'), + 'app_id' => env('PUSHER_APP_ID'), + 'options' => [ + 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', + 'port' => env('PUSHER_PORT', 443), + 'scheme' => env('PUSHER_SCHEME', 'https'), + 'encrypted' => true, + 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', + ], + 'client_options' => [ + // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html + ], + ], + + 'ably' => [ + 'driver' => 'ably', + 'key' => env('ABLY_KEY'), + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + ], + + 'log' => [ + 'driver' => 'log', + ], + + 'null' => [ + 'driver' => 'null', + ], + + ], + +]; diff --git a/examples/laravel/config/cache.php b/examples/laravel/config/cache.php new file mode 100644 index 0000000..33bb295 --- /dev/null +++ b/examples/laravel/config/cache.php @@ -0,0 +1,110 @@ + env('CACHE_DRIVER', 'file'), + + /* + |-------------------------------------------------------------------------- + | Cache Stores + |-------------------------------------------------------------------------- + | + | Here you may define all of the cache "stores" for your application as + | well as their drivers. You may even define multiple stores for the + | same cache driver to group types of items stored in your caches. + | + | Supported drivers: "apc", "array", "database", "file", + | "memcached", "redis", "dynamodb", "octane", "null" + | + */ + + 'stores' => [ + + 'apc' => [ + 'driver' => 'apc', + ], + + 'array' => [ + 'driver' => 'array', + 'serialize' => false, + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'cache', + 'connection' => null, + 'lock_connection' => null, + ], + + 'file' => [ + 'driver' => 'file', + 'path' => storage_path('framework/cache/data'), + ], + + 'memcached' => [ + 'driver' => 'memcached', + 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), + 'sasl' => [ + env('MEMCACHED_USERNAME'), + env('MEMCACHED_PASSWORD'), + ], + 'options' => [ + // Memcached::OPT_CONNECT_TIMEOUT => 2000, + ], + 'servers' => [ + [ + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), + 'port' => env('MEMCACHED_PORT', 11211), + 'weight' => 100, + ], + ], + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'cache', + 'lock_connection' => 'default', + ], + + 'dynamodb' => [ + 'driver' => 'dynamodb', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), + 'endpoint' => env('DYNAMODB_ENDPOINT'), + ], + + 'octane' => [ + 'driver' => 'octane', + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Cache Key Prefix + |-------------------------------------------------------------------------- + | + | When utilizing the APC, database, memcached, Redis, or DynamoDB cache + | stores there might be other applications using the same cache. For + | that reason, you may prefix every cache key to avoid collisions. + | + */ + + 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), + +]; diff --git a/examples/laravel/config/cors.php b/examples/laravel/config/cors.php new file mode 100644 index 0000000..8a39e6d --- /dev/null +++ b/examples/laravel/config/cors.php @@ -0,0 +1,34 @@ + ['api/*', 'sanctum/csrf-cookie'], + + 'allowed_methods' => ['*'], + + 'allowed_origins' => ['*'], + + 'allowed_origins_patterns' => [], + + 'allowed_headers' => ['*'], + + 'exposed_headers' => [], + + 'max_age' => 0, + + 'supports_credentials' => false, + +]; diff --git a/examples/laravel/config/database.php b/examples/laravel/config/database.php new file mode 100644 index 0000000..137ad18 --- /dev/null +++ b/examples/laravel/config/database.php @@ -0,0 +1,151 @@ + env('DB_CONNECTION', 'mysql'), + + /* + |-------------------------------------------------------------------------- + | Database Connections + |-------------------------------------------------------------------------- + | + | Here are each of the database connections setup for your application. + | Of course, examples of configuring each database platform that is + | supported by Laravel is shown below to make development simple. + | + | + | All database work in Laravel is done through the PHP PDO facilities + | so make sure you have the driver for your particular database of + | choice installed on your machine before you begin development. + | + */ + + 'connections' => [ + + 'sqlite' => [ + 'driver' => 'sqlite', + 'url' => env('DATABASE_URL'), + 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'prefix' => '', + 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), + ], + + 'mysql' => [ + 'driver' => 'mysql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], + + 'pgsql' => [ + 'driver' => 'pgsql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '5432'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', + 'prefix_indexes' => true, + 'search_path' => 'public', + 'sslmode' => 'prefer', + ], + + 'sqlsrv' => [ + 'driver' => 'sqlsrv', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', '1433'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', + 'prefix_indexes' => true, + // 'encrypt' => env('DB_ENCRYPT', 'yes'), + // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'), + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Migration Repository Table + |-------------------------------------------------------------------------- + | + | This table keeps track of all the migrations that have already run for + | your application. Using this information, we can determine which of + | the migrations on disk haven't actually been run in the database. + | + */ + + 'migrations' => 'migrations', + + /* + |-------------------------------------------------------------------------- + | Redis Databases + |-------------------------------------------------------------------------- + | + | Redis is an open source, fast, and advanced key-value store that also + | provides a richer body of commands than a typical key-value system + | such as APC or Memcached. Laravel makes it easy to dig right in. + | + */ + + 'redis' => [ + + 'client' => env('REDIS_CLIENT', 'phpredis'), + + 'options' => [ + 'cluster' => env('REDIS_CLUSTER', 'redis'), + 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), + ], + + 'default' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_DB', '0'), + ], + + 'cache' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_CACHE_DB', '1'), + ], + + ], + +]; diff --git a/examples/laravel/config/filesystems.php b/examples/laravel/config/filesystems.php new file mode 100644 index 0000000..e9d9dbd --- /dev/null +++ b/examples/laravel/config/filesystems.php @@ -0,0 +1,76 @@ + env('FILESYSTEM_DISK', 'local'), + + /* + |-------------------------------------------------------------------------- + | Filesystem Disks + |-------------------------------------------------------------------------- + | + | Here you may configure as many filesystem "disks" as you wish, and you + | may even configure multiple disks of the same driver. Defaults have + | been set up for each driver as an example of the required values. + | + | Supported Drivers: "local", "ftp", "sftp", "s3" + | + */ + + 'disks' => [ + + 'local' => [ + 'driver' => 'local', + 'root' => storage_path('app'), + 'throw' => false, + ], + + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => env('APP_URL').'/storage', + 'visibility' => 'public', + 'throw' => false, + ], + + 's3' => [ + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), + 'url' => env('AWS_URL'), + 'endpoint' => env('AWS_ENDPOINT'), + 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), + 'throw' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Symbolic Links + |-------------------------------------------------------------------------- + | + | Here you may configure the symbolic links that will be created when the + | `storage:link` Artisan command is executed. The array keys should be + | the locations of the links and the values should be their targets. + | + */ + + 'links' => [ + public_path('storage') => storage_path('app/public'), + ], + +]; diff --git a/examples/laravel/config/hashing.php b/examples/laravel/config/hashing.php new file mode 100644 index 0000000..bcd3be4 --- /dev/null +++ b/examples/laravel/config/hashing.php @@ -0,0 +1,52 @@ + 'bcrypt', + + /* + |-------------------------------------------------------------------------- + | Bcrypt Options + |-------------------------------------------------------------------------- + | + | Here you may specify the configuration options that should be used when + | passwords are hashed using the Bcrypt algorithm. This will allow you + | to control the amount of time it takes to hash the given password. + | + */ + + 'bcrypt' => [ + 'rounds' => env('BCRYPT_ROUNDS', 10), + ], + + /* + |-------------------------------------------------------------------------- + | Argon Options + |-------------------------------------------------------------------------- + | + | Here you may specify the configuration options that should be used when + | passwords are hashed using the Argon algorithm. These will allow you + | to control the amount of time it takes to hash the given password. + | + */ + + 'argon' => [ + 'memory' => 65536, + 'threads' => 1, + 'time' => 4, + ], + +]; diff --git a/examples/laravel/config/logging.php b/examples/laravel/config/logging.php new file mode 100644 index 0000000..5aa1dbb --- /dev/null +++ b/examples/laravel/config/logging.php @@ -0,0 +1,122 @@ + env('LOG_CHANNEL', 'stack'), + + /* + |-------------------------------------------------------------------------- + | Deprecations Log Channel + |-------------------------------------------------------------------------- + | + | This option controls the log channel that should be used to log warnings + | regarding deprecated PHP and library features. This allows you to get + | your application ready for upcoming major versions of dependencies. + | + */ + + 'deprecations' => [ + 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), + 'trace' => false, + ], + + /* + |-------------------------------------------------------------------------- + | Log Channels + |-------------------------------------------------------------------------- + | + | Here you may configure the log channels for your application. Out of + | the box, Laravel uses the Monolog PHP logging library. This gives + | you a variety of powerful log handlers / formatters to utilize. + | + | Available Drivers: "single", "daily", "slack", "syslog", + | "errorlog", "monolog", + | "custom", "stack" + | + */ + + 'channels' => [ + 'stack' => [ + 'driver' => 'stack', + 'channels' => ['single'], + 'ignore_exceptions' => false, + ], + + 'single' => [ + 'driver' => 'single', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'daily' => [ + 'driver' => 'daily', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'days' => 14, + ], + + 'slack' => [ + 'driver' => 'slack', + 'url' => env('LOG_SLACK_WEBHOOK_URL'), + 'username' => 'Laravel Log', + 'emoji' => ':boom:', + 'level' => env('LOG_LEVEL', 'critical'), + ], + + 'papertrail' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), + 'handler_with' => [ + 'host' => env('PAPERTRAIL_URL'), + 'port' => env('PAPERTRAIL_PORT'), + 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), + ], + ], + + 'stderr' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => StreamHandler::class, + 'formatter' => env('LOG_STDERR_FORMATTER'), + 'with' => [ + 'stream' => 'php://stderr', + ], + ], + + 'syslog' => [ + 'driver' => 'syslog', + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'errorlog' => [ + 'driver' => 'errorlog', + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'null' => [ + 'driver' => 'monolog', + 'handler' => NullHandler::class, + ], + + 'emergency' => [ + 'path' => storage_path('logs/laravel.log'), + ], + ], + +]; diff --git a/examples/laravel/config/mail.php b/examples/laravel/config/mail.php new file mode 100644 index 0000000..534395a --- /dev/null +++ b/examples/laravel/config/mail.php @@ -0,0 +1,118 @@ + env('MAIL_MAILER', 'smtp'), + + /* + |-------------------------------------------------------------------------- + | Mailer Configurations + |-------------------------------------------------------------------------- + | + | Here you may configure all of the mailers used by your application plus + | their respective settings. Several examples have been configured for + | you and you are free to add your own as your application requires. + | + | Laravel supports a variety of mail "transport" drivers to be used while + | sending an e-mail. You will specify which one you are using for your + | mailers below. You are free to add additional mailers as required. + | + | Supported: "smtp", "sendmail", "mailgun", "ses", + | "postmark", "log", "array", "failover" + | + */ + + 'mailers' => [ + 'smtp' => [ + 'transport' => 'smtp', + 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), + 'port' => env('MAIL_PORT', 587), + 'encryption' => env('MAIL_ENCRYPTION', 'tls'), + 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), + 'timeout' => null, + 'local_domain' => env('MAIL_EHLO_DOMAIN'), + ], + + 'ses' => [ + 'transport' => 'ses', + ], + + 'mailgun' => [ + 'transport' => 'mailgun', + ], + + 'postmark' => [ + 'transport' => 'postmark', + ], + + 'sendmail' => [ + 'transport' => 'sendmail', + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), + ], + + 'log' => [ + 'transport' => 'log', + 'channel' => env('MAIL_LOG_CHANNEL'), + ], + + 'array' => [ + 'transport' => 'array', + ], + + 'failover' => [ + 'transport' => 'failover', + 'mailers' => [ + 'smtp', + 'log', + ], + ], + ], + + /* + |-------------------------------------------------------------------------- + | Global "From" Address + |-------------------------------------------------------------------------- + | + | You may wish for all e-mails sent by your application to be sent from + | the same address. Here, you may specify a name and address that is + | used globally for all e-mails that are sent by your application. + | + */ + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', 'Example'), + ], + + /* + |-------------------------------------------------------------------------- + | Markdown Mail Settings + |-------------------------------------------------------------------------- + | + | If you are using Markdown based email rendering, you may configure your + | theme and component paths here, allowing you to customize the design + | of the emails. Or, you may simply stick with the Laravel defaults! + | + */ + + 'markdown' => [ + 'theme' => 'default', + + 'paths' => [ + resource_path('views/vendor/mail'), + ], + ], + +]; diff --git a/examples/laravel/config/octane.php b/examples/laravel/config/octane.php new file mode 100644 index 0000000..818ee70 --- /dev/null +++ b/examples/laravel/config/octane.php @@ -0,0 +1,221 @@ + env('OCTANE_SERVER', 'roadrunner'), + + /* + |-------------------------------------------------------------------------- + | Force HTTPS + |-------------------------------------------------------------------------- + | + | When this configuration value is set to "true", Octane will inform the + | framework that all absolute links must be generated using the HTTPS + | protocol. Otherwise your links may be generated using plain HTTP. + | + */ + + 'https' => env('OCTANE_HTTPS', false), + + /* + |-------------------------------------------------------------------------- + | Octane Listeners + |-------------------------------------------------------------------------- + | + | All of the event listeners for Octane's events are defined below. These + | listeners are responsible for resetting your application's state for + | the next request. You may even add your own listeners to the list. + | + */ + + 'listeners' => [ + WorkerStarting::class => [ + EnsureUploadedFilesAreValid::class, + EnsureUploadedFilesCanBeMoved::class, + ], + + RequestReceived::class => [ + ...Octane::prepareApplicationForNextOperation(), + ...Octane::prepareApplicationForNextRequest(), + // + ], + + RequestHandled::class => [ + // + ], + + RequestTerminated::class => [ + // FlushUploadedFiles::class, + ], + + TaskReceived::class => [ + ...Octane::prepareApplicationForNextOperation(), + // + ], + + TaskTerminated::class => [ + // + ], + + TickReceived::class => [ + ...Octane::prepareApplicationForNextOperation(), + // + ], + + TickTerminated::class => [ + // + ], + + OperationTerminated::class => [ + FlushTemporaryContainerInstances::class, + // DisconnectFromDatabases::class, + // CollectGarbage::class, + ], + + WorkerErrorOccurred::class => [ + ReportException::class, + StopWorkerIfNecessary::class, + ], + + WorkerStopping::class => [ + // + ], + ], + + /* + |-------------------------------------------------------------------------- + | Warm / Flush Bindings + |-------------------------------------------------------------------------- + | + | The bindings listed below will either be pre-warmed when a worker boots + | or they will be flushed before every new request. Flushing a binding + | will force the container to resolve that binding again when asked. + | + */ + + 'warm' => [ + ...Octane::defaultServicesToWarm(), + ], + + 'flush' => [ + // + ], + + /* + |-------------------------------------------------------------------------- + | Octane Cache Table + |-------------------------------------------------------------------------- + | + | While using Swoole, you may leverage the Octane cache, which is powered + | by a Swoole table. You may set the maximum number of rows as well as + | the number of bytes per row using the configuration options below. + | + */ + + 'cache' => [ + 'rows' => 1000, + 'bytes' => 10000, + ], + + /* + |-------------------------------------------------------------------------- + | Octane Swoole Tables + |-------------------------------------------------------------------------- + | + | While using Swoole, you may define additional tables as required by the + | application. These tables can be used to store data that needs to be + | quickly accessed by other workers on the particular Swoole server. + | + */ + + 'tables' => [ + 'example:1000' => [ + 'name' => 'string:1000', + 'votes' => 'int', + ], + ], + + /* + |-------------------------------------------------------------------------- + | File Watching + |-------------------------------------------------------------------------- + | + | The following list of files and directories will be watched when using + | the --watch option offered by Octane. If any of the directories and + | files are changed, Octane will automatically reload your workers. + | + */ + + 'watch' => [ + 'app', + 'bootstrap', + 'config', + 'database', + 'public/**/*.php', + 'resources/**/*.php', + 'routes', + 'composer.lock', + '.env', + ], + + /* + |-------------------------------------------------------------------------- + | Garbage Collection Threshold + |-------------------------------------------------------------------------- + | + | When executing long-lived PHP scripts such as Octane, memory can build + | up before being cleared by PHP. You can force Octane to run garbage + | collection if your application consumes this amount of megabytes. + | + */ + + 'garbage' => 50, + + /* + |-------------------------------------------------------------------------- + | Maximum Execution Time + |-------------------------------------------------------------------------- + | + | The following setting configures the maximum execution time for requests + | being handled by Octane. You may set this value to 0 to indicate that + | there isn't a specific time limit on Octane request execution time. + | + */ + + 'max_execution_time' => 30, + +]; diff --git a/examples/laravel/config/queue.php b/examples/laravel/config/queue.php new file mode 100644 index 0000000..25ea5a8 --- /dev/null +++ b/examples/laravel/config/queue.php @@ -0,0 +1,93 @@ + env('QUEUE_CONNECTION', 'sync'), + + /* + |-------------------------------------------------------------------------- + | Queue Connections + |-------------------------------------------------------------------------- + | + | Here you may configure the connection information for each server that + | is used by your application. A default configuration has been added + | for each back-end shipped with Laravel. You are free to add more. + | + | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" + | + */ + + 'connections' => [ + + 'sync' => [ + 'driver' => 'sync', + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'jobs', + 'queue' => 'default', + 'retry_after' => 90, + 'after_commit' => false, + ], + + 'beanstalkd' => [ + 'driver' => 'beanstalkd', + 'host' => 'localhost', + 'queue' => 'default', + 'retry_after' => 90, + 'block_for' => 0, + 'after_commit' => false, + ], + + 'sqs' => [ + 'driver' => 'sqs', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), + 'queue' => env('SQS_QUEUE', 'default'), + 'suffix' => env('SQS_SUFFIX'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'after_commit' => false, + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + 'queue' => env('REDIS_QUEUE', 'default'), + 'retry_after' => 90, + 'block_for' => null, + 'after_commit' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Failed Queue Jobs + |-------------------------------------------------------------------------- + | + | These options configure the behavior of failed queue job logging so you + | can control which database and table are used to store the jobs that + | have failed. You may change them to any database / table you wish. + | + */ + + 'failed' => [ + 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), + 'database' => env('DB_CONNECTION', 'mysql'), + 'table' => 'failed_jobs', + ], + +]; diff --git a/examples/laravel/config/sanctum.php b/examples/laravel/config/sanctum.php new file mode 100644 index 0000000..529cfdc --- /dev/null +++ b/examples/laravel/config/sanctum.php @@ -0,0 +1,67 @@ + explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( + '%s%s', + 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', + Sanctum::currentApplicationUrlWithPort() + ))), + + /* + |-------------------------------------------------------------------------- + | Sanctum Guards + |-------------------------------------------------------------------------- + | + | This array contains the authentication guards that will be checked when + | Sanctum is trying to authenticate a request. If none of these guards + | are able to authenticate the request, Sanctum will use the bearer + | token that's present on an incoming request for authentication. + | + */ + + 'guard' => ['web'], + + /* + |-------------------------------------------------------------------------- + | Expiration Minutes + |-------------------------------------------------------------------------- + | + | This value controls the number of minutes until an issued token will be + | considered expired. If this value is null, personal access tokens do + | not expire. This won't tweak the lifetime of first-party sessions. + | + */ + + 'expiration' => null, + + /* + |-------------------------------------------------------------------------- + | Sanctum Middleware + |-------------------------------------------------------------------------- + | + | When authenticating your first-party SPA with Sanctum you may need to + | customize some of the middleware Sanctum uses while processing the + | request. You may change the middleware listed below as required. + | + */ + + 'middleware' => [ + 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, + 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, + ], + +]; diff --git a/examples/laravel/config/services.php b/examples/laravel/config/services.php new file mode 100644 index 0000000..0ace530 --- /dev/null +++ b/examples/laravel/config/services.php @@ -0,0 +1,34 @@ + [ + 'domain' => env('MAILGUN_DOMAIN'), + 'secret' => env('MAILGUN_SECRET'), + 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), + 'scheme' => 'https', + ], + + 'postmark' => [ + 'token' => env('POSTMARK_TOKEN'), + ], + + 'ses' => [ + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + ], + +]; diff --git a/examples/laravel/config/session.php b/examples/laravel/config/session.php new file mode 100644 index 0000000..8fed97c --- /dev/null +++ b/examples/laravel/config/session.php @@ -0,0 +1,201 @@ + env('SESSION_DRIVER', 'file'), + + /* + |-------------------------------------------------------------------------- + | Session Lifetime + |-------------------------------------------------------------------------- + | + | Here you may specify the number of minutes that you wish the session + | to be allowed to remain idle before it expires. If you want them + | to immediately expire on the browser closing, set that option. + | + */ + + 'lifetime' => env('SESSION_LIFETIME', 120), + + 'expire_on_close' => false, + + /* + |-------------------------------------------------------------------------- + | Session Encryption + |-------------------------------------------------------------------------- + | + | This option allows you to easily specify that all of your session data + | should be encrypted before it is stored. All encryption will be run + | automatically by Laravel and you can use the Session like normal. + | + */ + + 'encrypt' => false, + + /* + |-------------------------------------------------------------------------- + | Session File Location + |-------------------------------------------------------------------------- + | + | When using the native session driver, we need a location where session + | files may be stored. A default has been set for you but a different + | location may be specified. This is only needed for file sessions. + | + */ + + 'files' => storage_path('framework/sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Database Connection + |-------------------------------------------------------------------------- + | + | When using the "database" or "redis" session drivers, you may specify a + | connection that should be used to manage these sessions. This should + | correspond to a connection in your database configuration options. + | + */ + + 'connection' => env('SESSION_CONNECTION'), + + /* + |-------------------------------------------------------------------------- + | Session Database Table + |-------------------------------------------------------------------------- + | + | When using the "database" session driver, you may specify the table we + | should use to manage the sessions. Of course, a sensible default is + | provided for you; however, you are free to change this as needed. + | + */ + + 'table' => 'sessions', + + /* + |-------------------------------------------------------------------------- + | Session Cache Store + |-------------------------------------------------------------------------- + | + | While using one of the framework's cache driven session backends you may + | list a cache store that should be used for these sessions. This value + | must match with one of the application's configured cache "stores". + | + | Affects: "apc", "dynamodb", "memcached", "redis" + | + */ + + 'store' => env('SESSION_STORE'), + + /* + |-------------------------------------------------------------------------- + | Session Sweeping Lottery + |-------------------------------------------------------------------------- + | + | Some session drivers must manually sweep their storage location to get + | rid of old sessions from storage. Here are the chances that it will + | happen on a given request. By default, the odds are 2 out of 100. + | + */ + + 'lottery' => [2, 100], + + /* + |-------------------------------------------------------------------------- + | Session Cookie Name + |-------------------------------------------------------------------------- + | + | Here you may change the name of the cookie used to identify a session + | instance by ID. The name specified here will get used every time a + | new session cookie is created by the framework for every driver. + | + */ + + 'cookie' => env( + 'SESSION_COOKIE', + Str::slug(env('APP_NAME', 'laravel'), '_').'_session' + ), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Path + |-------------------------------------------------------------------------- + | + | The session cookie path determines the path for which the cookie will + | be regarded as available. Typically, this will be the root path of + | your application but you are free to change this when necessary. + | + */ + + 'path' => '/', + + /* + |-------------------------------------------------------------------------- + | Session Cookie Domain + |-------------------------------------------------------------------------- + | + | Here you may change the domain of the cookie used to identify a session + | in your application. This will determine which domains the cookie is + | available to in your application. A sensible default has been set. + | + */ + + 'domain' => env('SESSION_DOMAIN'), + + /* + |-------------------------------------------------------------------------- + | HTTPS Only Cookies + |-------------------------------------------------------------------------- + | + | By setting this option to true, session cookies will only be sent back + | to the server if the browser has a HTTPS connection. This will keep + | the cookie from being sent to you when it can't be done securely. + | + */ + + 'secure' => env('SESSION_SECURE_COOKIE'), + + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. You are free to modify this option if needed. + | + */ + + 'http_only' => true, + + /* + |-------------------------------------------------------------------------- + | Same-Site Cookies + |-------------------------------------------------------------------------- + | + | This option determines how your cookies behave when cross-site requests + | take place, and can be used to mitigate CSRF attacks. By default, we + | will set this value to "lax" since this is a secure default value. + | + | Supported: "lax", "strict", "none", null + | + */ + + 'same_site' => 'lax', + +]; diff --git a/examples/laravel/config/view.php b/examples/laravel/config/view.php new file mode 100644 index 0000000..22b8a18 --- /dev/null +++ b/examples/laravel/config/view.php @@ -0,0 +1,36 @@ + [ + resource_path('views'), + ], + + /* + |-------------------------------------------------------------------------- + | Compiled View Path + |-------------------------------------------------------------------------- + | + | This option determines where all the compiled Blade templates will be + | stored for your application. Typically, this is within the storage + | directory. However, as usual, you are free to change this value. + | + */ + + 'compiled' => env( + 'VIEW_COMPILED_PATH', + realpath(storage_path('framework/views')) + ), + +]; diff --git a/examples/laravel/database/.gitignore b/examples/laravel/database/.gitignore new file mode 100644 index 0000000..9b19b93 --- /dev/null +++ b/examples/laravel/database/.gitignore @@ -0,0 +1 @@ +*.sqlite* diff --git a/examples/laravel/database/factories/UserFactory.php b/examples/laravel/database/factories/UserFactory.php new file mode 100644 index 0000000..41f8ae8 --- /dev/null +++ b/examples/laravel/database/factories/UserFactory.php @@ -0,0 +1,40 @@ + + */ +class UserFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition() + { + return [ + 'name' => fake()->name(), + 'email' => fake()->unique()->safeEmail(), + 'email_verified_at' => now(), + 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password + 'remember_token' => Str::random(10), + ]; + } + + /** + * Indicate that the model's email address should be unverified. + * + * @return static + */ + public function unverified() + { + return $this->state(fn (array $attributes) => [ + 'email_verified_at' => null, + ]); + } +} diff --git a/examples/laravel/database/migrations/2014_10_12_000000_create_users_table.php b/examples/laravel/database/migrations/2014_10_12_000000_create_users_table.php new file mode 100644 index 0000000..cf6b776 --- /dev/null +++ b/examples/laravel/database/migrations/2014_10_12_000000_create_users_table.php @@ -0,0 +1,36 @@ +id(); + $table->string('name'); + $table->string('email')->unique(); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password'); + $table->rememberToken(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('users'); + } +}; diff --git a/examples/laravel/database/migrations/2014_10_12_100000_create_password_resets_table.php b/examples/laravel/database/migrations/2014_10_12_100000_create_password_resets_table.php new file mode 100644 index 0000000..fcacb80 --- /dev/null +++ b/examples/laravel/database/migrations/2014_10_12_100000_create_password_resets_table.php @@ -0,0 +1,32 @@ +string('email')->index(); + $table->string('token'); + $table->timestamp('created_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('password_resets'); + } +}; diff --git a/examples/laravel/database/migrations/2019_08_19_000000_create_failed_jobs_table.php b/examples/laravel/database/migrations/2019_08_19_000000_create_failed_jobs_table.php new file mode 100644 index 0000000..1719198 --- /dev/null +++ b/examples/laravel/database/migrations/2019_08_19_000000_create_failed_jobs_table.php @@ -0,0 +1,36 @@ +id(); + $table->string('uuid')->unique(); + $table->text('connection'); + $table->text('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('failed_jobs'); + } +}; diff --git a/examples/laravel/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/examples/laravel/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php new file mode 100644 index 0000000..6c81fd2 --- /dev/null +++ b/examples/laravel/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php @@ -0,0 +1,37 @@ +id(); + $table->morphs('tokenable'); + $table->string('name'); + $table->string('token', 64)->unique(); + $table->text('abilities')->nullable(); + $table->timestamp('last_used_at')->nullable(); + $table->timestamp('expires_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('personal_access_tokens'); + } +}; diff --git a/examples/laravel/database/migrations/2022_11_18_171656_create_logged_requests_table.php b/examples/laravel/database/migrations/2022_11_18_171656_create_logged_requests_table.php new file mode 100644 index 0000000..54d976d --- /dev/null +++ b/examples/laravel/database/migrations/2022_11_18_171656_create_logged_requests_table.php @@ -0,0 +1,32 @@ +id(); + $table->json('request'); + $table->timestamps(precision: 6); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('logged_requests'); + } +}; diff --git a/examples/laravel/database/seeders/DatabaseSeeder.php b/examples/laravel/database/seeders/DatabaseSeeder.php new file mode 100644 index 0000000..76d96dc --- /dev/null +++ b/examples/laravel/database/seeders/DatabaseSeeder.php @@ -0,0 +1,24 @@ +create(); + + // \App\Models\User::factory()->create([ + // 'name' => 'Test User', + // 'email' => 'test@example.com', + // ]); + } +} diff --git a/examples/laravel/docker-compose.yaml b/examples/laravel/docker-compose.yaml new file mode 100644 index 0000000..98646f2 --- /dev/null +++ b/examples/laravel/docker-compose.yaml @@ -0,0 +1,121 @@ +version: "3" + +services: + # Laravel Octane + octane: + image: laravel-docker-base/octane:local + build: + context: . + dockerfile: Dockerfile.octane + volumes: + - .env:/var/www/html/.env:ro + ports: + - 80:80 + networks: + - laravel + extra_hosts: + - host.docker.internal:host-gateway + healthcheck: + test: ["CMD", "curl", "-f", "http://127.0.0.1/health"] + retries: 3 + interval: 5s + timeout: 3s + start_period: 10s + depends_on: + postgres: + condition: service_healthy + redis: + condition: service_healthy + octane.scheduler: + condition: service_started + octane.queues: + condition: service_started + octane.scheduler: + image: laravel-docker-base/octane:local + build: + context: . + dockerfile: Dockerfile.octane + volumes: + - .env:/var/www/html/.env:ro + entrypoint: + - php + - artisan + - schedule:work + networks: + - laravel + healthcheck: + test: ["CMD", "php", "-v"] + retries: 3 + interval: 5s + timeout: 3s + depends_on: + postgres: + condition: service_healthy + redis: + condition: service_healthy + octane.queues: + image: laravel-docker-base/octane:local + build: + context: . + dockerfile: Dockerfile.octane + volumes: + - .env:/var/www/html/.env:ro + entrypoint: + - php + - artisan + - queue:work + - --name=octane-default + - --queue=default + networks: + - laravel + healthcheck: + test: ["CMD", "php", "-v"] + retries: 3 + interval: 5s + timeout: 3s + depends_on: + postgres: + condition: service_healthy + redis: + condition: service_healthy + + # Other services (i.e. databases) + postgres: + image: postgres:14 + ports: + - ${FORWARD_DB_PORT:-5432}:5432 + environment: + PGPASSWORD: ${DB_PASSWORD:-secret} + POSTGRES_DB: ${DB_DATABASE} + POSTGRES_USER: ${DB_USERNAME} + POSTGRES_PASSWORD: ${DB_PASSWORD:-secret} + volumes: + - pgsql-data:/var/lib/postgresql/data + networks: + - laravel + healthcheck: + test: ["CMD", "pg_isready", "-q", "-d", "${DB_DATABASE}", "-U", "${DB_USERNAME}"] + retries: 3 + timeout: 5s + redis: + image: redis:alpine + ports: + - ${FORWARD_REDIS_PORT:-6379}:6379 + volumes: + - redis-data:/data + networks: + - laravel + healthcheck: + test: ["CMD", "redis-cli", "ping"] + retries: 3 + timeout: 5s + +networks: + laravel: + driver: bridge + +volumes: + pgsql-data: + driver: local + redis-data: + driver: local diff --git a/examples/laravel/entrypoint-octane b/examples/laravel/entrypoint-octane new file mode 100644 index 0000000..64b3da6 --- /dev/null +++ b/examples/laravel/entrypoint-octane @@ -0,0 +1,20 @@ +#!/bin/ash + +# Cache configs. +php artisan config:cache +php artisan event:cache +php artisan route:cache +php artisan view:cache + +# Run migrations. +php artisan migrate --force + +# Start Octane. +php -d variables_order=EGPCS \ + artisan \ + octane:start \ + --port=80 \ + --host=0.0.0.0 \ + --server=swoole \ + --workers=4 \ + --task-workers=6 diff --git a/examples/laravel/lang/en/auth.php b/examples/laravel/lang/en/auth.php new file mode 100644 index 0000000..6598e2c --- /dev/null +++ b/examples/laravel/lang/en/auth.php @@ -0,0 +1,20 @@ + 'These credentials do not match our records.', + 'password' => 'The provided password is incorrect.', + 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', + +]; diff --git a/examples/laravel/lang/en/pagination.php b/examples/laravel/lang/en/pagination.php new file mode 100644 index 0000000..d481411 --- /dev/null +++ b/examples/laravel/lang/en/pagination.php @@ -0,0 +1,19 @@ + '« Previous', + 'next' => 'Next »', + +]; diff --git a/examples/laravel/lang/en/passwords.php b/examples/laravel/lang/en/passwords.php new file mode 100644 index 0000000..2345a56 --- /dev/null +++ b/examples/laravel/lang/en/passwords.php @@ -0,0 +1,22 @@ + 'Your password has been reset!', + 'sent' => 'We have emailed your password reset link!', + 'throttled' => 'Please wait before retrying.', + 'token' => 'This password reset token is invalid.', + 'user' => "We can't find a user with that email address.", + +]; diff --git a/examples/laravel/lang/en/validation.php b/examples/laravel/lang/en/validation.php new file mode 100644 index 0000000..f3d8cc5 --- /dev/null +++ b/examples/laravel/lang/en/validation.php @@ -0,0 +1,176 @@ + 'The :attribute must be accepted.', + 'accepted_if' => 'The :attribute must be accepted when :other is :value.', + 'active_url' => 'The :attribute is not a valid URL.', + 'after' => 'The :attribute must be a date after :date.', + 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', + 'alpha' => 'The :attribute must only contain letters.', + 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.', + 'alpha_num' => 'The :attribute must only contain letters and numbers.', + 'array' => 'The :attribute must be an array.', + 'before' => 'The :attribute must be a date before :date.', + 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', + 'between' => [ + 'array' => 'The :attribute must have between :min and :max items.', + 'file' => 'The :attribute must be between :min and :max kilobytes.', + 'numeric' => 'The :attribute must be between :min and :max.', + 'string' => 'The :attribute must be between :min and :max characters.', + ], + 'boolean' => 'The :attribute field must be true or false.', + 'confirmed' => 'The :attribute confirmation does not match.', + 'current_password' => 'The password is incorrect.', + 'date' => 'The :attribute is not a valid date.', + 'date_equals' => 'The :attribute must be a date equal to :date.', + 'date_format' => 'The :attribute does not match the format :format.', + 'declined' => 'The :attribute must be declined.', + 'declined_if' => 'The :attribute must be declined when :other is :value.', + 'different' => 'The :attribute and :other must be different.', + 'digits' => 'The :attribute must be :digits digits.', + 'digits_between' => 'The :attribute must be between :min and :max digits.', + 'dimensions' => 'The :attribute has invalid image dimensions.', + 'distinct' => 'The :attribute field has a duplicate value.', + 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', + 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', + 'email' => 'The :attribute must be a valid email address.', + 'ends_with' => 'The :attribute must end with one of the following: :values.', + 'enum' => 'The selected :attribute is invalid.', + 'exists' => 'The selected :attribute is invalid.', + 'file' => 'The :attribute must be a file.', + 'filled' => 'The :attribute field must have a value.', + 'gt' => [ + 'array' => 'The :attribute must have more than :value items.', + 'file' => 'The :attribute must be greater than :value kilobytes.', + 'numeric' => 'The :attribute must be greater than :value.', + 'string' => 'The :attribute must be greater than :value characters.', + ], + 'gte' => [ + 'array' => 'The :attribute must have :value items or more.', + 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be greater than or equal to :value.', + 'string' => 'The :attribute must be greater than or equal to :value characters.', + ], + 'image' => 'The :attribute must be an image.', + 'in' => 'The selected :attribute is invalid.', + 'in_array' => 'The :attribute field does not exist in :other.', + 'integer' => 'The :attribute must be an integer.', + 'ip' => 'The :attribute must be a valid IP address.', + 'ipv4' => 'The :attribute must be a valid IPv4 address.', + 'ipv6' => 'The :attribute must be a valid IPv6 address.', + 'json' => 'The :attribute must be a valid JSON string.', + 'lowercase' => 'The :attribute must be lowercase.', + 'lt' => [ + 'array' => 'The :attribute must have less than :value items.', + 'file' => 'The :attribute must be less than :value kilobytes.', + 'numeric' => 'The :attribute must be less than :value.', + 'string' => 'The :attribute must be less than :value characters.', + ], + 'lte' => [ + 'array' => 'The :attribute must not have more than :value items.', + 'file' => 'The :attribute must be less than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be less than or equal to :value.', + 'string' => 'The :attribute must be less than or equal to :value characters.', + ], + 'mac_address' => 'The :attribute must be a valid MAC address.', + 'max' => [ + 'array' => 'The :attribute must not have more than :max items.', + 'file' => 'The :attribute must not be greater than :max kilobytes.', + 'numeric' => 'The :attribute must not be greater than :max.', + 'string' => 'The :attribute must not be greater than :max characters.', + ], + 'max_digits' => 'The :attribute must not have more than :max digits.', + 'mimes' => 'The :attribute must be a file of type: :values.', + 'mimetypes' => 'The :attribute must be a file of type: :values.', + 'min' => [ + 'array' => 'The :attribute must have at least :min items.', + 'file' => 'The :attribute must be at least :min kilobytes.', + 'numeric' => 'The :attribute must be at least :min.', + 'string' => 'The :attribute must be at least :min characters.', + ], + 'min_digits' => 'The :attribute must have at least :min digits.', + 'multiple_of' => 'The :attribute must be a multiple of :value.', + 'not_in' => 'The selected :attribute is invalid.', + 'not_regex' => 'The :attribute format is invalid.', + 'numeric' => 'The :attribute must be a number.', + 'password' => [ + 'letters' => 'The :attribute must contain at least one letter.', + 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', + 'numbers' => 'The :attribute must contain at least one number.', + 'symbols' => 'The :attribute must contain at least one symbol.', + 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', + ], + 'present' => 'The :attribute field must be present.', + 'prohibited' => 'The :attribute field is prohibited.', + 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', + 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', + 'prohibits' => 'The :attribute field prohibits :other from being present.', + 'regex' => 'The :attribute format is invalid.', + 'required' => 'The :attribute field is required.', + 'required_array_keys' => 'The :attribute field must contain entries for: :values.', + 'required_if' => 'The :attribute field is required when :other is :value.', + 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', + 'required_unless' => 'The :attribute field is required unless :other is in :values.', + 'required_with' => 'The :attribute field is required when :values is present.', + 'required_with_all' => 'The :attribute field is required when :values are present.', + 'required_without' => 'The :attribute field is required when :values is not present.', + 'required_without_all' => 'The :attribute field is required when none of :values are present.', + 'same' => 'The :attribute and :other must match.', + 'size' => [ + 'array' => 'The :attribute must contain :size items.', + 'file' => 'The :attribute must be :size kilobytes.', + 'numeric' => 'The :attribute must be :size.', + 'string' => 'The :attribute must be :size characters.', + ], + 'starts_with' => 'The :attribute must start with one of the following: :values.', + 'string' => 'The :attribute must be a string.', + 'timezone' => 'The :attribute must be a valid timezone.', + 'unique' => 'The :attribute has already been taken.', + 'uploaded' => 'The :attribute failed to upload.', + 'uppercase' => 'The :attribute must be uppercase.', + 'url' => 'The :attribute must be a valid URL.', + 'uuid' => 'The :attribute must be a valid UUID.', + + /* + |-------------------------------------------------------------------------- + | Custom Validation Language Lines + |-------------------------------------------------------------------------- + | + | Here you may specify custom validation messages for attributes using the + | convention "attribute.rule" to name the lines. This makes it quick to + | specify a specific custom language line for a given attribute rule. + | + */ + + 'custom' => [ + 'attribute-name' => [ + 'rule-name' => 'custom-message', + ], + ], + + /* + |-------------------------------------------------------------------------- + | Custom Validation Attributes + |-------------------------------------------------------------------------- + | + | The following language lines are used to swap our attribute placeholder + | with something more reader friendly such as "E-Mail Address" instead + | of "email". This simply helps us make our message more expressive. + | + */ + + 'attributes' => [], + +]; diff --git a/examples/laravel/package.json b/examples/laravel/package.json new file mode 100644 index 0000000..36489d9 --- /dev/null +++ b/examples/laravel/package.json @@ -0,0 +1,14 @@ +{ + "private": true, + "scripts": { + "dev": "vite", + "build": "vite build" + }, + "devDependencies": { + "axios": "^1.1.2", + "laravel-vite-plugin": "^0.6.0", + "lodash": "^4.17.19", + "postcss": "^8.1.14", + "vite": "^3.0.0" + } +} diff --git a/examples/laravel/phpunit.xml b/examples/laravel/phpunit.xml new file mode 100644 index 0000000..2ac86a1 --- /dev/null +++ b/examples/laravel/phpunit.xml @@ -0,0 +1,31 @@ + + + + + ./tests/Unit + + + ./tests/Feature + + + + + ./app + + + + + + + + + + + + + + diff --git a/examples/laravel/public/.htaccess b/examples/laravel/public/.htaccess new file mode 100644 index 0000000..3aec5e2 --- /dev/null +++ b/examples/laravel/public/.htaccess @@ -0,0 +1,21 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/examples/laravel/public/favicon.ico b/examples/laravel/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/examples/laravel/public/index.php b/examples/laravel/public/index.php new file mode 100644 index 0000000..1d69f3a --- /dev/null +++ b/examples/laravel/public/index.php @@ -0,0 +1,55 @@ +make(Kernel::class); + +$response = $kernel->handle( + $request = Request::capture() +)->send(); + +$kernel->terminate($request, $response); diff --git a/examples/laravel/public/robots.txt b/examples/laravel/public/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/examples/laravel/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/examples/laravel/resources/css/app.css b/examples/laravel/resources/css/app.css new file mode 100644 index 0000000..e69de29 diff --git a/examples/laravel/resources/js/app.js b/examples/laravel/resources/js/app.js new file mode 100644 index 0000000..e59d6a0 --- /dev/null +++ b/examples/laravel/resources/js/app.js @@ -0,0 +1 @@ +import './bootstrap'; diff --git a/examples/laravel/resources/js/bootstrap.js b/examples/laravel/resources/js/bootstrap.js new file mode 100644 index 0000000..366c49d --- /dev/null +++ b/examples/laravel/resources/js/bootstrap.js @@ -0,0 +1,34 @@ +import _ from 'lodash'; +window._ = _; + +/** + * We'll load the axios HTTP library which allows us to easily issue requests + * to our Laravel back-end. This library automatically handles sending the + * CSRF token as a header based on the value of the "XSRF" token cookie. + */ + +import axios from 'axios'; +window.axios = axios; + +window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; + +/** + * Echo exposes an expressive API for subscribing to channels and listening + * for events that are broadcast by Laravel. Echo and event broadcasting + * allows your team to easily build robust real-time web applications. + */ + +// import Echo from 'laravel-echo'; + +// import Pusher from 'pusher-js'; +// window.Pusher = Pusher; + +// window.Echo = new Echo({ +// broadcaster: 'pusher', +// key: import.meta.env.VITE_PUSHER_APP_KEY, +// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, +// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, +// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, +// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', +// enabledTransports: ['ws', 'wss'], +// }); diff --git a/examples/laravel/resources/views/welcome.blade.php b/examples/laravel/resources/views/welcome.blade.php new file mode 100644 index 0000000..0ad6097 --- /dev/null +++ b/examples/laravel/resources/views/welcome.blade.php @@ -0,0 +1,132 @@ + + + + + + + Laravel + + + + + + + + + + +
+ @if (Route::has('login')) + + @endif + +
+
+ + + + + +
+ +
+
+
+ + +
+
+ Laravel has wonderful, thorough documentation covering every aspect of the framework. Whether you are new to the framework or have previous experience with Laravel, we recommend reading all of the documentation from beginning to end. +
+
+
+ +
+
+ + +
+ +
+
+ Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process. +
+
+
+ +
+
+ + +
+ +
+
+ Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials. +
+
+
+ +
+
+ +
Vibrant Ecosystem
+
+ +
+
+ Laravel's robust library of first-party tools and libraries, such as Forge, Vapor, Nova, and Envoyer help you take your projects to the next level. Pair them with powerful open source libraries like Cashier, Dusk, Echo, Horizon, Sanctum, Telescope, and more. +
+
+
+
+
+ +
+
+
+ + + + + + Shop + + + + + + + + Sponsor + +
+
+ +
+ Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) +
+
+
+
+ + diff --git a/examples/laravel/routes/api.php b/examples/laravel/routes/api.php new file mode 100644 index 0000000..eb6fa48 --- /dev/null +++ b/examples/laravel/routes/api.php @@ -0,0 +1,19 @@ +get('/user', function (Request $request) { + return $request->user(); +}); diff --git a/examples/laravel/routes/channels.php b/examples/laravel/routes/channels.php new file mode 100644 index 0000000..5d451e1 --- /dev/null +++ b/examples/laravel/routes/channels.php @@ -0,0 +1,18 @@ +id === (int) $id; +}); diff --git a/examples/laravel/routes/console.php b/examples/laravel/routes/console.php new file mode 100644 index 0000000..e05f4c9 --- /dev/null +++ b/examples/laravel/routes/console.php @@ -0,0 +1,19 @@ +comment(Inspiring::quote()); +})->purpose('Display an inspiring quote'); diff --git a/examples/laravel/routes/web.php b/examples/laravel/routes/web.php new file mode 100644 index 0000000..401a526 --- /dev/null +++ b/examples/laravel/routes/web.php @@ -0,0 +1,18 @@ +name('log-request'); +Route::get('/health', fn () => 'OK'); diff --git a/examples/laravel/storage/app/.gitignore b/examples/laravel/storage/app/.gitignore new file mode 100644 index 0000000..8f4803c --- /dev/null +++ b/examples/laravel/storage/app/.gitignore @@ -0,0 +1,3 @@ +* +!public/ +!.gitignore diff --git a/examples/laravel/storage/app/public/.gitignore b/examples/laravel/storage/app/public/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/examples/laravel/storage/app/public/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/examples/laravel/storage/framework/.gitignore b/examples/laravel/storage/framework/.gitignore new file mode 100644 index 0000000..05c4471 --- /dev/null +++ b/examples/laravel/storage/framework/.gitignore @@ -0,0 +1,9 @@ +compiled.php +config.php +down +events.scanned.php +maintenance.php +routes.php +routes.scanned.php +schedule-* +services.json diff --git a/examples/laravel/storage/framework/cache/.gitignore b/examples/laravel/storage/framework/cache/.gitignore new file mode 100644 index 0000000..01e4a6c --- /dev/null +++ b/examples/laravel/storage/framework/cache/.gitignore @@ -0,0 +1,3 @@ +* +!data/ +!.gitignore diff --git a/examples/laravel/storage/framework/cache/data/.gitignore b/examples/laravel/storage/framework/cache/data/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/examples/laravel/storage/framework/cache/data/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/examples/laravel/storage/framework/sessions/.gitignore b/examples/laravel/storage/framework/sessions/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/examples/laravel/storage/framework/sessions/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/examples/laravel/storage/framework/testing/.gitignore b/examples/laravel/storage/framework/testing/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/examples/laravel/storage/framework/testing/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/examples/laravel/storage/framework/views/.gitignore b/examples/laravel/storage/framework/views/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/examples/laravel/storage/framework/views/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/examples/laravel/storage/logs/.gitignore b/examples/laravel/storage/logs/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/examples/laravel/storage/logs/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/examples/laravel/tests/CreatesApplication.php b/examples/laravel/tests/CreatesApplication.php new file mode 100644 index 0000000..547152f --- /dev/null +++ b/examples/laravel/tests/CreatesApplication.php @@ -0,0 +1,22 @@ +make(Kernel::class)->bootstrap(); + + return $app; + } +} diff --git a/examples/laravel/tests/Feature/ExampleTest.php b/examples/laravel/tests/Feature/ExampleTest.php new file mode 100644 index 0000000..1eafba6 --- /dev/null +++ b/examples/laravel/tests/Feature/ExampleTest.php @@ -0,0 +1,21 @@ +get('/'); + + $response->assertStatus(200); + } +} diff --git a/examples/laravel/tests/TestCase.php b/examples/laravel/tests/TestCase.php new file mode 100644 index 0000000..2932d4a --- /dev/null +++ b/examples/laravel/tests/TestCase.php @@ -0,0 +1,10 @@ +assertTrue(true); + } +} diff --git a/examples/laravel/vite.config.js b/examples/laravel/vite.config.js new file mode 100644 index 0000000..421b569 --- /dev/null +++ b/examples/laravel/vite.config.js @@ -0,0 +1,11 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; + +export default defineConfig({ + plugins: [ + laravel({ + input: ['resources/css/app.css', 'resources/js/app.js'], + refresh: true, + }), + ], +}); From 3d2f3689bf805973ea5cbeba5cbb9ca27d08cb65 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sat, 19 Nov 2022 17:31:26 +0200 Subject: [PATCH 08/30] Added set -ex --- .dockerignore | 3 +++ Dockerfile.fpm | 9 ++++----- Dockerfile.octane | 9 ++++----- Dockerfile.worker | 9 ++++----- docker-php-cleanup | 3 ++- 5 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..2dea548 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.git/**/* +.github/**/* +examples/**/* diff --git a/Dockerfile.fpm b/Dockerfile.fpm index 41ad963..835d7eb 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -2,11 +2,10 @@ ARG BASE_TAG=8.1-fpm-alpine FROM --platform=$BUILDPLATFORM php:$BASE_TAG -ARG PHPIZE_DEPS +COPY docker-php-cleanup /usr/local/bin/ -ADD docker-php-cleanup /usr/local/bin/ - -RUN apk --update --no-cache add \ +RUN set -ex ; \ + apk --update --no-cache add \ ${PHPIZE_DEPS} \ build-base \ composer \ @@ -51,6 +50,6 @@ RUN apk --update --no-cache add \ zip ; \ ln -sf $(which composer.phar) $(which composer) ; \ chmod +x /usr/local/bin/docker-php-cleanup ; \ - sh /usr/local/bin/docker-php-cleanup + docker-php-cleanup WORKDIR /var/www/html diff --git a/Dockerfile.octane b/Dockerfile.octane index fe0dab3..a8c22ab 100644 --- a/Dockerfile.octane +++ b/Dockerfile.octane @@ -3,11 +3,10 @@ ARG BASE_TAG=4.8-php8.1-alpine # https://hub.docker.com/r/phpswoole/swoole FROM --platform=$BUILDPLATFORM phpswoole/swoole:$BASE_TAG -ARG PHPIZE_DEPS +COPY docker-php-cleanup /usr/local/bin/ -ADD docker-php-cleanup /usr/local/bin/ - -RUN apk --update --no-cache add \ +RUN set -ex ; \ + apk --update --no-cache add \ ${PHPIZE_DEPS} \ build-base \ composer \ @@ -52,7 +51,7 @@ RUN apk --update --no-cache add \ zip ; \ ln -sf $(which composer.phar) $(which composer) ; \ chmod +x /usr/local/bin/docker-php-cleanup ; \ - sh /usr/local/bin/docker-php-cleanup + docker-php-cleanup WORKDIR /var/www/html diff --git a/Dockerfile.worker b/Dockerfile.worker index 2024f63..37177fe 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -2,11 +2,10 @@ ARG BASE_TAG=8.1-cli-alpine FROM --platform=$BUILDPLATFORM php:$BASE_TAG -ARG PHPIZE_DEPS +COPY docker-php-cleanup /usr/local/bin/ -ADD docker-php-cleanup /usr/local/bin/ - -RUN apk --update --no-cache add \ +RUN set -ex ; \ + apk --update --no-cache add \ ${PHPIZE_DEPS} \ build-base \ composer \ @@ -51,7 +50,7 @@ RUN apk --update --no-cache add \ zip ; \ ln -sf $(which composer.phar) $(which composer) ; \ chmod +x /usr/local/bin/docker-php-cleanup ; \ - sh /usr/local/bin/docker-php-cleanup + docker-php-cleanup WORKDIR /var/www/html diff --git a/docker-php-cleanup b/docker-php-cleanup index 4f16d88..3b913e3 100644 --- a/docker-php-cleanup +++ b/docker-php-cleanup @@ -1,4 +1,5 @@ -#!/bin/ash +#!/bin/sh +set -e rm -rf /tmp/* rm -rf /usr/local/bin/phpdbg From 0a44a6b50272d11e38ac6a9b7a77b5643d8975ef Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sat, 19 Nov 2022 17:40:18 +0200 Subject: [PATCH 09/30] Updated permissions --- Dockerfile.fpm | 1 - Dockerfile.octane | 1 - Dockerfile.worker | 1 - docker-php-cleanup | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) mode change 100644 => 100755 docker-php-cleanup diff --git a/Dockerfile.fpm b/Dockerfile.fpm index 835d7eb..4eba029 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -49,7 +49,6 @@ RUN set -ex ; \ xsl \ zip ; \ ln -sf $(which composer.phar) $(which composer) ; \ - chmod +x /usr/local/bin/docker-php-cleanup ; \ docker-php-cleanup WORKDIR /var/www/html diff --git a/Dockerfile.octane b/Dockerfile.octane index a8c22ab..6f7c49a 100644 --- a/Dockerfile.octane +++ b/Dockerfile.octane @@ -50,7 +50,6 @@ RUN set -ex ; \ xsl \ zip ; \ ln -sf $(which composer.phar) $(which composer) ; \ - chmod +x /usr/local/bin/docker-php-cleanup ; \ docker-php-cleanup WORKDIR /var/www/html diff --git a/Dockerfile.worker b/Dockerfile.worker index 37177fe..03e51f7 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -49,7 +49,6 @@ RUN set -ex ; \ xsl \ zip ; \ ln -sf $(which composer.phar) $(which composer) ; \ - chmod +x /usr/local/bin/docker-php-cleanup ; \ docker-php-cleanup WORKDIR /var/www/html diff --git a/docker-php-cleanup b/docker-php-cleanup old mode 100644 new mode 100755 index 3b913e3..75e351b --- a/docker-php-cleanup +++ b/docker-php-cleanup @@ -14,4 +14,4 @@ apk del --purge .phpize-deps apk del --purge build-base apk del --purge ${PHPIZE_DEPS} -docker-php-source delete \ No newline at end of file +docker-php-source delete From bf2939406019d0c72ba4f2a4cc508363c1d34590 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sat, 19 Nov 2022 17:56:14 +0200 Subject: [PATCH 10/30] Updated cleanup images --- Dockerfile.fpm | 1 + Dockerfile.octane | 1 + Dockerfile.worker | 1 + docker-php-cleanup | 34 +++++++++++++++++----------------- 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/Dockerfile.fpm b/Dockerfile.fpm index 4eba029..835d7eb 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -49,6 +49,7 @@ RUN set -ex ; \ xsl \ zip ; \ ln -sf $(which composer.phar) $(which composer) ; \ + chmod +x /usr/local/bin/docker-php-cleanup ; \ docker-php-cleanup WORKDIR /var/www/html diff --git a/Dockerfile.octane b/Dockerfile.octane index 6f7c49a..a8c22ab 100644 --- a/Dockerfile.octane +++ b/Dockerfile.octane @@ -50,6 +50,7 @@ RUN set -ex ; \ xsl \ zip ; \ ln -sf $(which composer.phar) $(which composer) ; \ + chmod +x /usr/local/bin/docker-php-cleanup ; \ docker-php-cleanup WORKDIR /var/www/html diff --git a/Dockerfile.worker b/Dockerfile.worker index 03e51f7..37177fe 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -49,6 +49,7 @@ RUN set -ex ; \ xsl \ zip ; \ ln -sf $(which composer.phar) $(which composer) ; \ + chmod +x /usr/local/bin/docker-php-cleanup ; \ docker-php-cleanup WORKDIR /var/www/html diff --git a/docker-php-cleanup b/docker-php-cleanup index 75e351b..feaae5d 100755 --- a/docker-php-cleanup +++ b/docker-php-cleanup @@ -1,17 +1,17 @@ -#!/bin/sh -set -e - -rm -rf /tmp/* -rm -rf /usr/local/bin/phpdbg -rm -rf /usr/local/bin/php-cgi -rm -rf /usr/src/php.tar* -rm -rf /usr/includes/* -rm -rf /usr/share/man/* -rm -rf /var/cache/apk/* -rm -rf /var/tmp/* - -apk del --purge .phpize-deps -apk del --purge build-base -apk del --purge ${PHPIZE_DEPS} - -docker-php-source delete +#!/bin/sh +set -e + +rm -rf /tmp/* +rm -rf /usr/local/bin/phpdbg +rm -rf /usr/local/bin/php-cgi +rm -rf /usr/src/php.tar* +rm -rf /usr/includes/* +rm -rf /usr/share/man/* +rm -rf /var/cache/apk/* +rm -rf /var/tmp/* + +apk del --purge .phpize-deps +apk del --purge build-base +apk del --purge ${PHPIZE_DEPS} + +docker-php-source delete From 6f4d4d9d08a35249e7ebddc6bfb2aef196ca42e3 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sat, 19 Nov 2022 19:08:53 +0200 Subject: [PATCH 11/30] Added quiet for deps --- docker-php-cleanup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-php-cleanup b/docker-php-cleanup index feaae5d..b3e359d 100755 --- a/docker-php-cleanup +++ b/docker-php-cleanup @@ -10,8 +10,8 @@ rm -rf /usr/share/man/* rm -rf /var/cache/apk/* rm -rf /var/tmp/* -apk del --purge .phpize-deps -apk del --purge build-base -apk del --purge ${PHPIZE_DEPS} +apk del --purge -q .phpize-deps +apk del --purge -q build-base +apk del --purge -q ${PHPIZE_DEPS} docker-php-source delete From 06884a3a396367d5548fd009d9a0fc803db2f49b Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sat, 19 Nov 2022 19:16:47 +0200 Subject: [PATCH 12/30] Removed set -e --- docker-php-cleanup | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker-php-cleanup b/docker-php-cleanup index b3e359d..bc8700d 100755 --- a/docker-php-cleanup +++ b/docker-php-cleanup @@ -1,5 +1,4 @@ #!/bin/sh -set -e rm -rf /tmp/* rm -rf /usr/local/bin/phpdbg @@ -10,8 +9,8 @@ rm -rf /usr/share/man/* rm -rf /var/cache/apk/* rm -rf /var/tmp/* -apk del --purge -q .phpize-deps -apk del --purge -q build-base -apk del --purge -q ${PHPIZE_DEPS} +apk del --purge .phpize-deps +apk del --purge build-base +apk del --purge ${PHPIZE_DEPS} docker-php-source delete From 024dfb3238de1baf094c028bd84049e429f39077 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sat, 19 Nov 2022 19:25:50 +0200 Subject: [PATCH 13/30] Waiting for 8.2 to release on Docker --- .github/workflows/docker-commit.yml | 2 -- .github/workflows/docker-latest-tag.yaml | 2 -- .github/workflows/docker-release-tag.yaml | 3 --- 3 files changed, 7 deletions(-) diff --git a/.github/workflows/docker-commit.yml b/.github/workflows/docker-commit.yml index f67745b..a551e5f 100644 --- a/.github/workflows/docker-commit.yml +++ b/.github/workflows/docker-commit.yml @@ -81,10 +81,8 @@ jobs: fail-fast: false matrix: base-tag: - - 5.0-php8.2-alpine - 5.0-php8.1-alpine - 5.0-php8.0-alpine - - 4.8-php8.2-alpine - 4.8-php8.1-alpine - 4.8-php8.0-alpine diff --git a/.github/workflows/docker-latest-tag.yaml b/.github/workflows/docker-latest-tag.yaml index acb7fc7..73f45a1 100644 --- a/.github/workflows/docker-latest-tag.yaml +++ b/.github/workflows/docker-latest-tag.yaml @@ -75,10 +75,8 @@ jobs: fail-fast: false matrix: base-tag: - - 5.0-php8.2-alpine - 5.0-php8.1-alpine - 5.0-php8.0-alpine - - 4.8-php8.2-alpine - 4.8-php8.1-alpine - 4.8-php8.0-alpine diff --git a/.github/workflows/docker-release-tag.yaml b/.github/workflows/docker-release-tag.yaml index 708a5c3..4e838aa 100644 --- a/.github/workflows/docker-release-tag.yaml +++ b/.github/workflows/docker-release-tag.yaml @@ -75,10 +75,8 @@ jobs: strategy: matrix: base-tag: - - 5.0-php8.2-alpine - 5.0-php8.1-alpine - 5.0-php8.0-alpine - - 4.8-php8.2-alpine - 4.8-php8.1-alpine - 4.8-php8.0-alpine @@ -137,7 +135,6 @@ jobs: strategy: matrix: base-tag: - - 8.2-cli-alpine - 8.1-cli-alpine - 8.0-cli-alpine From dc27afaa960474ddc2d813e81c91ceac2b10f2d8 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sat, 19 Nov 2022 19:29:47 +0200 Subject: [PATCH 14/30] Let PHP source stay --- docker-php-cleanup | 1 - 1 file changed, 1 deletion(-) diff --git a/docker-php-cleanup b/docker-php-cleanup index bc8700d..a3ef59c 100755 --- a/docker-php-cleanup +++ b/docker-php-cleanup @@ -3,7 +3,6 @@ rm -rf /tmp/* rm -rf /usr/local/bin/phpdbg rm -rf /usr/local/bin/php-cgi -rm -rf /usr/src/php.tar* rm -rf /usr/includes/* rm -rf /usr/share/man/* rm -rf /var/cache/apk/* From ad048da69e25d59e8698a9a46363e522d8d76a3d Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sat, 19 Nov 2022 23:17:02 +0200 Subject: [PATCH 15/30] Updated project --- examples/laravel/Dockerfile.octane | 24 ++++- examples/laravel/README.md | 94 +++++++------------ .../Http/Controllers/LogRequestController.php | 2 +- .../Controllers/RandomImageController.php | 47 ++++++++++ examples/laravel/composer.json | 1 + examples/laravel/composer.lock | 86 ++++++++++++++++- examples/laravel/config/image.php | 20 ++++ examples/laravel/phpunit.xml | 4 +- examples/laravel/routes/web.php | 4 +- .../laravel/tests/Feature/ControllerTest.php | 31 ++++++ .../laravel/tests/Feature/ExampleTest.php | 21 ----- 11 files changed, 243 insertions(+), 91 deletions(-) create mode 100644 examples/laravel/app/Http/Controllers/RandomImageController.php create mode 100644 examples/laravel/config/image.php create mode 100644 examples/laravel/tests/Feature/ControllerTest.php delete mode 100644 examples/laravel/tests/Feature/ExampleTest.php diff --git a/examples/laravel/Dockerfile.octane b/examples/laravel/Dockerfile.octane index 824de5e..4cbbace 100644 --- a/examples/laravel/Dockerfile.octane +++ b/examples/laravel/Dockerfile.octane @@ -7,7 +7,7 @@ FROM quay.io/renokico/laravel-base:$OCTANE_TAG as build COPY . /var/www/html # Update permissions -RUN chown www-data:www-data /var/www/html; \ +RUN chown www-data:www-data /var/www/html ; \ chmod -R 777 /var/www/html # Install dependencies. @@ -15,6 +15,15 @@ RUN apk --update --no-cache add \ nodejs \ npm +# For our demo, we will be able to generate an image using Imagemagick +# so we need GD & ImageMagick +RUN apk --update --no-cache add \ + libjpeg-turbo-dev \ + jpeg-dev \ + libpng-dev ; \ + docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ ; \ + docker-php-ext-install gd + RUN composer install \ --no-ansi \ --no-dev \ @@ -33,9 +42,6 @@ RUN npm run build RUN rm -rf \ node_modules/ \ .env ; \ - php artisan view:clear ; \ - php artisan cache:clear file ; \ - php artisan event:clear ; \ php artisan optimize:clear # 2. Build the final image from a clean base, making a copy of the prepared project. @@ -44,6 +50,16 @@ FROM quay.io/renokico/laravel-base:$OCTANE_TAG COPY --from=build /var/www/html . +RUN chown www-data:www-data /var/www/html ; \ + chmod -R 777 /var/www/html ; \ + apk --update --no-cache add \ + libjpeg-turbo-dev \ + jpeg-dev \ + libpng-dev ; \ + docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ ; \ + docker-php-ext-install gd ; \ + docker-php-cleanup + # Make sure to change the image user to www-data. USER www-data diff --git a/examples/laravel/README.md b/examples/laravel/README.md index 8f6e6fa..af0f82c 100644 --- a/examples/laravel/README.md +++ b/examples/laravel/README.md @@ -14,6 +14,7 @@ cp .env.example .env This project is simple: +- there is a `GET /image` endpoint that generates a random shape with GD (an extension that is not included in the original Docker Base image) - there is a `GET /health` endpoint for healthchecks - there is a `ANY /` endpoint that will dispatch a job to store a record in the database (in `logged_requests`) - has a Job ([`LogRequest`](app/Jobs/LogRequest.php)) that will execute the `logged_requests` INSERT query @@ -58,9 +59,6 @@ After the assets got compiled in the first step, you should do a cleanup, like r RUN rm -rf \ node_modules/ \ .env ; \ - php artisan view:clear ; \ - php artisan cache:clear file ; \ - php artisan event:clear ; \ php artisan optimize:clear ``` @@ -70,83 +68,49 @@ More or less, all Docker images come pre-packaged with the following extensions:
View extensions - ``` - bcmath - Core - ctype - curl - date - dom - fileinfo - filter - ftp - gettext - hash - iconv - intl - json - libxml - mbstring - mcrypt - mysqli - mysqlnd - openssl - pcntl - pcre - PDO - pdo_mysql - pdo_pgsql - pdo_sqlite - Phar - posix - readline - redis - Reflection - session - SimpleXML - soap - sockets - sodium - SPL - sqlite3 - standard - tokenizer - xml - xmlreader - xmlwriter - xsl - zip - zlib - ``` + bcmath Core ctype curl date dom fileinfo filter ftp gettext hash iconv intl json libxml mbstring mcrypt mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite Phar posix readline redis Reflection session SimpleXML soap sockets sodium SPL sqlite3 standard tokenizer xml xmlreader xmlwriter xsl zip zlib
-To install custom extensions, you can do one of the following install & configure them when building your project. +To install custom extensions, you can install & configure them when building your project. Make sure that after you are done, you are cleaning up the image again: after we install extensions, traces of build binaries used to compile them are still left in your image, pontetially making your final image bigger. The delivered Docker images are pre-packaged with a `docker-php-cleanup` file whose job is to clean them up: ```dockerfile +# Note: this image does not need cleanup, the stage will not get to the final image. + FROM quay.io... as build # Some Composer packages might require "ext-gd" -RUN docker-php-ext-configure gd ; \ +RUN apk --update --no-cache add \ + libjpeg-turbo-dev \ + jpeg-dev \ + libpng-dev \ + imagemagick-dev \ + imagemagick \ + docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ ; \ docker-php-ext-install gd -# i.e. composer install - -# Note: this image does not need to be cleaned up -# because the stage will not get into the final image. +# Proceed with the installation +composer install --no-dev ... FROM quay.io... COPY --from=build /var/www/html . # The final image does not contain gd, so it has to be installed again. -# Note: Here, cleanup should be called. -RUN docker-php-ext-configure gd ; \ +# Note: Here, "docker-php-cleanup" should be called, +# and all commands should be condensed into a single layer. +RUN apk --update --no-cache add \ + libjpeg-turbo-dev \ + jpeg-dev \ + libpng-dev \ + imagemagick-dev \ + imagemagick \ + docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ ; \ docker-php-ext-install gd ; \ - sh /usr/local/bin/docker-php-cleanup + docker-php-cleanup ``` ## ⛽️ Octane @@ -159,7 +123,15 @@ To get started, run the Octane example: docker-compose up --wait -d octane ``` -- It spins up an Octane-powered server on `http://localhost` +You can test your application: + +```bash +curl -X GET http://127.0.0.1 +``` + +The stack contains: + +- It spins up an Octane-powered server on `http://127.0.0.1` - It spins up a container that will run the Scheduler (for the CRON tasks), using the same image - It spins up a container that will run the Queues worker, using the same image - Secrets: the secrets are not compiled in the final image; the `*:cache` commands are going to be called when the container starts diff --git a/examples/laravel/app/Http/Controllers/LogRequestController.php b/examples/laravel/app/Http/Controllers/LogRequestController.php index 964f718..c5d2801 100644 --- a/examples/laravel/app/Http/Controllers/LogRequestController.php +++ b/examples/laravel/app/Http/Controllers/LogRequestController.php @@ -20,7 +20,7 @@ public function __invoke(Request $request) return Response::json([ 'status' => 'success', - 'request' => $request, + 'request' => $request->__toString(), ]); } } diff --git a/examples/laravel/app/Http/Controllers/RandomImageController.php b/examples/laravel/app/Http/Controllers/RandomImageController.php new file mode 100644 index 0000000..c72aa0f --- /dev/null +++ b/examples/laravel/app/Http/Controllers/RandomImageController.php @@ -0,0 +1,47 @@ +fill('#222'); + + $canvas->polygon($coordinates, function (PolygonShape $polygon) { + $polygon->background('#0000ff'); + $polygon->border(1, '#ff0000'); + }); + + return $canvas; + }); + + return $image->response('jpeg', quality: 70); + } +} diff --git a/examples/laravel/composer.json b/examples/laravel/composer.json index 24c22d2..998d403 100644 --- a/examples/laravel/composer.json +++ b/examples/laravel/composer.json @@ -7,6 +7,7 @@ "require": { "php": "^8.0.2", "guzzlehttp/guzzle": "^7.2", + "intervention/image": "^2.7", "laravel/framework": "^9.19", "laravel/octane": "^1.3", "laravel/sanctum": "^3.0", diff --git a/examples/laravel/composer.lock b/examples/laravel/composer.lock index fc0c8b3..1325ea8 100644 --- a/examples/laravel/composer.lock +++ b/examples/laravel/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e2cb2eb829fe92b0a0a9250cc38dbd0c", + "content-hash": "3e94ddbccdc1c9ff07e011c749616710", "packages": [ { "name": "brick/math", @@ -897,6 +897,90 @@ ], "time": "2022-10-26T14:07:24+00:00" }, + { + "name": "intervention/image", + "version": "2.7.2", + "source": { + "type": "git", + "url": "https://github.com/Intervention/image.git", + "reference": "04be355f8d6734c826045d02a1079ad658322dad" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Intervention/image/zipball/04be355f8d6734c826045d02a1079ad658322dad", + "reference": "04be355f8d6734c826045d02a1079ad658322dad", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "guzzlehttp/psr7": "~1.1 || ^2.0", + "php": ">=5.4.0" + }, + "require-dev": { + "mockery/mockery": "~0.9.2", + "phpunit/phpunit": "^4.8 || ^5.7 || ^7.5.15" + }, + "suggest": { + "ext-gd": "to use GD library based image processing.", + "ext-imagick": "to use Imagick based image processing.", + "intervention/imagecache": "Caching extension for the Intervention Image library" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + }, + "laravel": { + "providers": [ + "Intervention\\Image\\ImageServiceProvider" + ], + "aliases": { + "Image": "Intervention\\Image\\Facades\\Image" + } + } + }, + "autoload": { + "psr-4": { + "Intervention\\Image\\": "src/Intervention/Image" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Oliver Vogel", + "email": "oliver@intervention.io", + "homepage": "https://intervention.io/" + } + ], + "description": "Image handling and manipulation library with support for Laravel integration", + "homepage": "http://image.intervention.io/", + "keywords": [ + "gd", + "image", + "imagick", + "laravel", + "thumbnail", + "watermark" + ], + "support": { + "issues": "https://github.com/Intervention/image/issues", + "source": "https://github.com/Intervention/image/tree/2.7.2" + }, + "funding": [ + { + "url": "https://paypal.me/interventionio", + "type": "custom" + }, + { + "url": "https://github.com/Intervention", + "type": "github" + } + ], + "time": "2022-05-21T17:30:32+00:00" + }, { "name": "laminas/laminas-diactoros", "version": "2.21.0", diff --git a/examples/laravel/config/image.php b/examples/laravel/config/image.php new file mode 100644 index 0000000..2b1d2c3 --- /dev/null +++ b/examples/laravel/config/image.php @@ -0,0 +1,20 @@ + 'gd' + +]; diff --git a/examples/laravel/phpunit.xml b/examples/laravel/phpunit.xml index 2ac86a1..370faf0 100644 --- a/examples/laravel/phpunit.xml +++ b/examples/laravel/phpunit.xml @@ -21,8 +21,8 @@ - - + + diff --git a/examples/laravel/routes/web.php b/examples/laravel/routes/web.php index 401a526..336dc32 100644 --- a/examples/laravel/routes/web.php +++ b/examples/laravel/routes/web.php @@ -1,6 +1,7 @@ name('log-request'); -Route::get('/health', fn () => 'OK'); +Route::any('/image', RandomImageController::class)->name('random-image'); +Route::get('/health', fn () => 'OK')->name('healthcheck'); diff --git a/examples/laravel/tests/Feature/ControllerTest.php b/examples/laravel/tests/Feature/ControllerTest.php new file mode 100644 index 0000000..e8da536 --- /dev/null +++ b/examples/laravel/tests/Feature/ControllerTest.php @@ -0,0 +1,31 @@ +getJson(route('log-request')) + ->assertJson(['status' => 'success']); + + $this->assertDatabaseHas('logged_requests', ['id' => 1]); + } + + public function test_image_gets_created() + { + $this->get(route('random-image')) + ->assertSee('CREATOR: gd-jpeg'); + } + + public function test_healthcheck_works() + { + $this->get(route('healthcheck')) + ->assertSee('OK'); + } +} diff --git a/examples/laravel/tests/Feature/ExampleTest.php b/examples/laravel/tests/Feature/ExampleTest.php deleted file mode 100644 index 1eafba6..0000000 --- a/examples/laravel/tests/Feature/ExampleTest.php +++ /dev/null @@ -1,21 +0,0 @@ -get('/'); - - $response->assertStatus(200); - } -} From 648ce344ff2436cec58c59609c509fd465bfe9d8 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sun, 20 Nov 2022 09:45:54 +0200 Subject: [PATCH 16/30] Updated shebang --- examples/laravel/entrypoint-octane | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/laravel/entrypoint-octane b/examples/laravel/entrypoint-octane index 64b3da6..9f3a899 100644 --- a/examples/laravel/entrypoint-octane +++ b/examples/laravel/entrypoint-octane @@ -1,4 +1,4 @@ -#!/bin/ash +#!/bin/sh # Cache configs. php artisan config:cache From 668badd68c56519d268db6e59294c72d068efb0e Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sun, 20 Nov 2022 19:19:19 +0200 Subject: [PATCH 17/30] Removed www-data user --- examples/laravel/Dockerfile.octane | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/laravel/Dockerfile.octane b/examples/laravel/Dockerfile.octane index 4cbbace..01e1747 100644 --- a/examples/laravel/Dockerfile.octane +++ b/examples/laravel/Dockerfile.octane @@ -60,7 +60,4 @@ RUN chown www-data:www-data /var/www/html ; \ docker-php-ext-install gd ; \ docker-php-cleanup -# Make sure to change the image user to www-data. -USER www-data - ENTRYPOINT ["./entrypoint-octane"] From e874400b32dcb4a99fd807939b7e6ee1c0592a98 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sun, 20 Nov 2022 20:06:07 +0200 Subject: [PATCH 18/30] Added redis as extension --- Dockerfile.fpm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile.fpm b/Dockerfile.fpm index 835d7eb..ba05316 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -32,7 +32,9 @@ RUN set -ex ; \ xz ; \ pecl channel-update pecl.php.net ; \ pecl install mcrypt ; \ + pecl install redis ; \ docker-php-ext-enable mcrypt ; \ + docker-php-ext-enable redis ; \ docker-php-ext-configure intl ; \ docker-php-ext-install \ bcmath \ From 75213fa9222f51abf74dab2fdd2e2cea5f7f585a Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sat, 26 Nov 2022 14:32:10 +0200 Subject: [PATCH 19/30] Fixed octane permissions --- .gitignore | 1 + examples/laravel/Dockerfile.octane | 8 +++----- .../laravel/app/Http/Controllers/LogRequestController.php | 2 ++ 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a725465 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +vendor/ \ No newline at end of file diff --git a/examples/laravel/Dockerfile.octane b/examples/laravel/Dockerfile.octane index 01e1747..107073e 100644 --- a/examples/laravel/Dockerfile.octane +++ b/examples/laravel/Dockerfile.octane @@ -1,4 +1,4 @@ -ARG OCTANE_TAG=pr-27-octane-4.8-php8.1-alpine +ARG OCTANE_TAG=octane-a65874dd8e099759ebdd6271caff2ae2513cc65f-4.8-php8.1-alpine # 1. Create a preliminary step to build the required assets & dependencies. ########################################################################### @@ -7,8 +7,7 @@ FROM quay.io/renokico/laravel-base:$OCTANE_TAG as build COPY . /var/www/html # Update permissions -RUN chown www-data:www-data /var/www/html ; \ - chmod -R 777 /var/www/html +RUN chmod -R 777 /var/www/html # Install dependencies. RUN apk --update --no-cache add \ @@ -50,8 +49,7 @@ FROM quay.io/renokico/laravel-base:$OCTANE_TAG COPY --from=build /var/www/html . -RUN chown www-data:www-data /var/www/html ; \ - chmod -R 777 /var/www/html ; \ +RUN chmod -R 777 /var/www/html ; \ apk --update --no-cache add \ libjpeg-turbo-dev \ jpeg-dev \ diff --git a/examples/laravel/app/Http/Controllers/LogRequestController.php b/examples/laravel/app/Http/Controllers/LogRequestController.php index c5d2801..fafde60 100644 --- a/examples/laravel/app/Http/Controllers/LogRequestController.php +++ b/examples/laravel/app/Http/Controllers/LogRequestController.php @@ -4,6 +4,7 @@ use App\Jobs\LogRequest; use Illuminate\Http\Request; +use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Response; class LogRequestController extends Controller @@ -17,6 +18,7 @@ class LogRequestController extends Controller public function __invoke(Request $request) { LogRequest::dispatch($request->__toString()); + Log::debug($request->__toString()); return Response::json([ 'status' => 'success', From ed8768e4d51d5c397ab9e54bff279a033451415e Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Mon, 28 Nov 2022 11:05:47 +0200 Subject: [PATCH 20/30] Added openswoole --- .github/workflows/docker-commit.yml | 61 +++++++++++++++++++++++ .github/workflows/docker-latest-tag.yaml | 58 +++++++++++++++++++++ .github/workflows/docker-release-tag.yaml | 58 +++++++++++++++++++++ Dockerfile.openswoole | 60 ++++++++++++++++++++++ 4 files changed, 237 insertions(+) create mode 100644 Dockerfile.openswoole diff --git a/.github/workflows/docker-commit.yml b/.github/workflows/docker-commit.yml index a551e5f..075720c 100644 --- a/.github/workflows/docker-commit.yml +++ b/.github/workflows/docker-commit.yml @@ -133,6 +133,67 @@ jobs: linux/arm64 linux/arm/v7 + push_openswoole: + if: "!contains(github.event.head_commit.message, 'skip ci')" + + runs-on: ubuntu-latest + + name: Tag Commit (Openswoole for Octane, ${{ matrix.base-tag }}) + + strategy: + fail-fast: false + matrix: + base-tag: + - 4.11-php8.1-alpine + - 4.11-php8.0-alpine + + steps: + - uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Docker meta + id: docker_meta + uses: docker/metadata-action@v4.0.1 + with: + images: quay.io/renokico/laravel-base + tags: | + type=ref,event=pr,suffix=-openswoole-${{ matrix.base-tag }} + type=raw,value=openswoole-${{ github.sha }}-${{ matrix.base-tag }} + labels: | + quay.expires-after=7d + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to Quay + uses: docker/login-action@v2 + with: + registry: quay.io + username: ${{ secrets.DOCKER_REPOSITORY_USERNAME }} + password: ${{ secrets.DOCKER_REPOSITORY_TOKEN }} + + - name: Build and push + id: docker + uses: docker/build-push-action@v3 + with: + push: true + context: . + tags: ${{ steps.docker_meta.outputs.tags }} + labels: ${{ steps.docker_meta.outputs.labels }} + file: Dockerfile.openswoole + build-args: | + BASE_TAG=${{ matrix.base-tag }} + cache-from: | + type=gha,scope=openswoole + cache-to: | + type=gha,scope=openswoole + platforms: | + linux/amd64 + linux/arm64 + linux/arm/v7 + push_worker: if: "!contains(github.event.head_commit.message, 'skip ci')" diff --git a/.github/workflows/docker-latest-tag.yaml b/.github/workflows/docker-latest-tag.yaml index 73f45a1..1c3a76a 100644 --- a/.github/workflows/docker-latest-tag.yaml +++ b/.github/workflows/docker-latest-tag.yaml @@ -124,6 +124,64 @@ jobs: linux/arm64 linux/arm/v7 + push_openswoole: + if: "!contains(github.event.head_commit.message, 'skip ci')" + + runs-on: ubuntu-latest + + name: Tag Latest (Open Swoole for Octane, ${{ matrix.base-tag }}) + + strategy: + fail-fast: false + matrix: + base-tag: + - 4.11-php8.1-alpine + - 4.11-php8.0-alpine + + steps: + - uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Docker meta + id: docker_meta + uses: docker/metadata-action@v4.0.1 + with: + images: quay.io/renokico/laravel-base + tags: | + type=raw,value=openswoole-latest-${{ matrix.base-tag }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to Quay + uses: docker/login-action@v2 + with: + registry: quay.io + username: ${{ secrets.DOCKER_REPOSITORY_USERNAME }} + password: ${{ secrets.DOCKER_REPOSITORY_TOKEN }} + + - name: Build and push + id: docker + uses: docker/build-push-action@v3 + with: + push: true + context: . + tags: ${{ steps.docker_meta.outputs.tags }} + labels: ${{ steps.docker_meta.outputs.labels }} + file: Dockerfile.openswoole + build-args: | + BASE_TAG=${{ matrix.base-tag }} + cache-from: | + type=gha,scope=openswoole + cache-to: | + type=gha,scope=openswoole + platforms: | + linux/amd64 + linux/arm64 + linux/arm/v7 + push_worker: if: "!contains(github.event.head_commit.message, 'skip ci')" diff --git a/.github/workflows/docker-release-tag.yaml b/.github/workflows/docker-release-tag.yaml index 4e838aa..467ed0f 100644 --- a/.github/workflows/docker-release-tag.yaml +++ b/.github/workflows/docker-release-tag.yaml @@ -125,6 +125,64 @@ jobs: linux/arm64 linux/arm/v7 + push_openswoole: + if: "!contains(github.event.head_commit.message, 'skip ci')" + + runs-on: ubuntu-latest + + name: Tag Release (Open Swoole for Octane, ${{ matrix.base-tag }}) + + strategy: + matrix: + base-tag: + - 4.11-php8.1-alpine + - 4.11-php8.0-alpine + + steps: + - uses: actions/checkout@v3 + + - name: Docker meta + id: docker_meta + uses: docker/metadata-action@v4.0.1 + with: + images: quay.io/renokico/laravel-base + tags: | + type=semver,pattern=openswoole-{{version}}-${{ matrix.base-tag }} + type=semver,pattern=openswoole-{{major}}.{{minor}}-${{ matrix.base-tag }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to Quay + uses: docker/login-action@v2 + with: + registry: quay.io + username: ${{ secrets.DOCKER_REPOSITORY_USERNAME }} + password: ${{ secrets.DOCKER_REPOSITORY_TOKEN }} + + - name: Build and Push + id: docker + uses: docker/build-push-action@v3 + with: + push: true + context: . + tags: ${{ steps.docker_meta.outputs.tags }} + labels: ${{ steps.docker_meta.outputs.labels }} + file: Dockerfile.openswoole + build-args: | + BASE_TAG=${{ matrix.base-tag }} + cache-from: | + type=gha,scope=openswoole + cache-to: | + type=gha,scope=openswoole + platforms: | + linux/amd64 + linux/arm64 + linux/arm/v7 + push_worker: if: "!contains(github.event.head_commit.message, 'skip ci')" diff --git a/Dockerfile.openswoole b/Dockerfile.openswoole new file mode 100644 index 0000000..a1343fe --- /dev/null +++ b/Dockerfile.openswoole @@ -0,0 +1,60 @@ +ARG BASE_TAG=4.11-php8.1-alpine + +# https://hub.docker.com/r/openswoole/swoole +FROM --platform=$BUILDPLATFORM openswoole/swoole:$BASE_TAG + +COPY docker-php-cleanup /usr/local/bin/ + +RUN set -ex ; \ + apk --update --no-cache add \ + ${PHPIZE_DEPS} \ + build-base \ + composer \ + freetype-dev \ + gettext-dev \ + icu-dev \ + libgcrypt-dev \ + libmcrypt-dev \ + libpq-dev \ + libxml2-dev \ + libxslt-dev \ + libzip-dev \ + oniguruma-dev \ + openssl \ + openssl-dev \ + pcre-dev \ + wget \ + zlib-dev ; \ + apk add --update --no-cache --virtual \ + .persistent-deps \ + curl \ + ca-certificates \ + tar \ + xz ; \ + pecl channel-update pecl.php.net ; \ + pecl install mcrypt ; \ + docker-php-ext-enable mcrypt ; \ + docker-php-ext-configure intl ; \ + docker-php-ext-install \ + bcmath \ + gettext \ + intl \ + mbstring \ + mysqli \ + pcntl \ + pdo \ + pdo_pgsql \ + soap \ + sockets \ + xml \ + xsl \ + zip ; \ + ln -sf $(which composer.phar) $(which composer) ; \ + chmod +x /usr/local/bin/docker-php-cleanup ; \ + docker-php-cleanup + +WORKDIR /var/www/html + +ENTRYPOINT ["php", "-d", "variables_order=EGPCS", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=80"] + +EXPOSE 80 From 44e4d8ecacdb220d0ef01fc2294ec57a292233c0 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Tue, 29 Nov 2022 03:34:51 +0200 Subject: [PATCH 21/30] Added mixes for swoole and openswoole --- .github/workflows/docker-commit.yml | 99 ++++++----------------- .github/workflows/docker-latest-tag.yaml | 94 ++++++--------------- .github/workflows/docker-release-tag.yaml | 96 ++++++---------------- Dockerfile.openswoole | 60 -------------- Dockerfile.octane => Dockerfile.swoole | 38 ++++++++- 5 files changed, 109 insertions(+), 278 deletions(-) delete mode 100644 Dockerfile.openswoole rename Dockerfile.octane => Dockerfile.swoole (51%) diff --git a/.github/workflows/docker-commit.yml b/.github/workflows/docker-commit.yml index 075720c..3ad21ef 100644 --- a/.github/workflows/docker-commit.yml +++ b/.github/workflows/docker-commit.yml @@ -70,82 +70,31 @@ jobs: linux/arm64 linux/arm/v7 - push_octane: + push_swoole: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-latest - name: Tag Commit (Octane, ${{ matrix.base-tag }}) + name: Tag Commit (${{ matrix.swoole }}/v${{ matrix.swoole-version }} with ${{ matrix.php-tag }}) strategy: fail-fast: false matrix: - base-tag: - - 5.0-php8.1-alpine - - 5.0-php8.0-alpine - - 4.8-php8.1-alpine - - 4.8-php8.0-alpine - - steps: - - uses: actions/checkout@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Docker meta - id: docker_meta - uses: docker/metadata-action@v4.0.1 - with: - images: quay.io/renokico/laravel-base - tags: | - type=ref,event=pr,suffix=-octane-${{ matrix.base-tag }} - type=raw,value=octane-${{ github.sha }}-${{ matrix.base-tag }} - labels: | - quay.expires-after=7d - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to Quay - uses: docker/login-action@v2 - with: - registry: quay.io - username: ${{ secrets.DOCKER_REPOSITORY_USERNAME }} - password: ${{ secrets.DOCKER_REPOSITORY_TOKEN }} - - - name: Build and push - id: docker - uses: docker/build-push-action@v3 - with: - push: true - context: . - tags: ${{ steps.docker_meta.outputs.tags }} - labels: ${{ steps.docker_meta.outputs.labels }} - file: Dockerfile.octane - build-args: | - BASE_TAG=${{ matrix.base-tag }} - cache-from: | - type=gha,scope=octane - cache-to: | - type=gha,scope=octane - platforms: | - linux/amd64 - linux/arm64 - linux/arm/v7 - - push_openswoole: - if: "!contains(github.event.head_commit.message, 'skip ci')" - - runs-on: ubuntu-latest - - name: Tag Commit (Openswoole for Octane, ${{ matrix.base-tag }}) - - strategy: - fail-fast: false - matrix: - base-tag: - - 4.11-php8.1-alpine - - 4.11-php8.0-alpine + php-tag: + - php8.1-cli-alpine3.15 + - php8.0-cli-alpine3.15 + swoole: + - openswoole + - swoole + includes: + - swoole: openswoole + swoole-version: "4.12.0" + - swoole: openswoole + swoole-version: "4.11.1" + - swoole: swoole + swoole-version: "4.8.9" + - swoole: swoole + swoole-version: "5.0.1" steps: - uses: actions/checkout@v3 @@ -159,8 +108,8 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=ref,event=pr,suffix=-openswoole-${{ matrix.base-tag }} - type=raw,value=openswoole-${{ github.sha }}-${{ matrix.base-tag }} + type=ref,event=pr,suffix=-${{ matrix.swoole }}${{ matrix.swoole-version }}-${{ matrix.php-tag }} + type=raw,value=${{ github.sha }}-${{ matrix.swoole }}${{ matrix.swoole-version }}-${{ matrix.php-tag }} labels: | quay.expires-after=7d @@ -182,13 +131,15 @@ jobs: context: . tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }} - file: Dockerfile.openswoole + file: Dockerfile.swoole build-args: | - BASE_TAG=${{ matrix.base-tag }} + SWOOLE=${{ matrix.swoole }} + SWOOLE_VERSION=${{ matrix.swoole-version }} + PHP_TAG=${{ matrix.php-tag }} cache-from: | - type=gha,scope=openswoole + type=gha,scope=swoole cache-to: | - type=gha,scope=openswoole + type=gha,scope=swoole platforms: | linux/amd64 linux/arm64 diff --git a/.github/workflows/docker-latest-tag.yaml b/.github/workflows/docker-latest-tag.yaml index 1c3a76a..309238c 100644 --- a/.github/workflows/docker-latest-tag.yaml +++ b/.github/workflows/docker-latest-tag.yaml @@ -64,79 +64,31 @@ jobs: linux/arm64 linux/arm/v7 - push_octane: + push_swoole: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-latest - name: Tag Latest (Octane, ${{ matrix.base-tag }}) + name: Tag Latest (${{ matrix.swoole }}/v${{ matrix.swoole-version }} with ${{ matrix.php-tag }}) strategy: fail-fast: false matrix: - base-tag: - - 5.0-php8.1-alpine - - 5.0-php8.0-alpine - - 4.8-php8.1-alpine - - 4.8-php8.0-alpine - - steps: - - uses: actions/checkout@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Docker meta - id: docker_meta - uses: docker/metadata-action@v4.0.1 - with: - images: quay.io/renokico/laravel-base - tags: | - type=raw,value=octane-latest-${{ matrix.base-tag }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to Quay - uses: docker/login-action@v2 - with: - registry: quay.io - username: ${{ secrets.DOCKER_REPOSITORY_USERNAME }} - password: ${{ secrets.DOCKER_REPOSITORY_TOKEN }} - - - name: Build and push - id: docker - uses: docker/build-push-action@v3 - with: - push: true - context: . - tags: ${{ steps.docker_meta.outputs.tags }} - labels: ${{ steps.docker_meta.outputs.labels }} - file: Dockerfile.octane - build-args: | - BASE_TAG=${{ matrix.base-tag }} - cache-from: | - type=gha,scope=octane - cache-to: | - type=gha,scope=octane - platforms: | - linux/amd64 - linux/arm64 - linux/arm/v7 - - push_openswoole: - if: "!contains(github.event.head_commit.message, 'skip ci')" - - runs-on: ubuntu-latest - - name: Tag Latest (Open Swoole for Octane, ${{ matrix.base-tag }}) - - strategy: - fail-fast: false - matrix: - base-tag: - - 4.11-php8.1-alpine - - 4.11-php8.0-alpine + php-tag: + - php8.1-cli-alpine3.15 + - php8.0-cli-alpine3.15 + swoole: + - openswoole + - swoole + includes: + - swoole: openswoole + swoole-version: "4.12.0" + - swoole: openswoole + swoole-version: "4.11.1" + - swoole: swoole + swoole-version: "4.8.9" + - swoole: swoole + swoole-version: "5.0.1" steps: - uses: actions/checkout@v3 @@ -150,7 +102,7 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=raw,value=openswoole-latest-${{ matrix.base-tag }} + type=raw,value=latest-${{ matrix.swoole }}${{ matrix.swoole-version }}-${{ matrix.php-tag }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -170,13 +122,15 @@ jobs: context: . tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }} - file: Dockerfile.openswoole + file: Dockerfile.swoole build-args: | - BASE_TAG=${{ matrix.base-tag }} + SWOOLE=${{ matrix.swoole }} + SWOOLE_VERSION=${{ matrix.swoole-version }} + PHP_TAG=${{ matrix.php-tag }} cache-from: | - type=gha,scope=openswoole + type=gha,scope=swoole cache-to: | - type=gha,scope=openswoole + type=gha,scope=swoole platforms: | linux/amd64 linux/arm64 diff --git a/.github/workflows/docker-release-tag.yaml b/.github/workflows/docker-release-tag.yaml index 467ed0f..02fd976 100644 --- a/.github/workflows/docker-release-tag.yaml +++ b/.github/workflows/docker-release-tag.yaml @@ -65,20 +65,30 @@ jobs: linux/arm64 linux/arm/v7 - push_octane: + push_swoole: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-latest - name: Tag Release (Octane, ${{ matrix.base-tag }}) + name: Tag Release (${{ matrix.swoole }}/v${{ matrix.swoole-version }} with ${{ matrix.php-tag }}) strategy: matrix: - base-tag: - - 5.0-php8.1-alpine - - 5.0-php8.0-alpine - - 4.8-php8.1-alpine - - 4.8-php8.0-alpine + php-tag: + - php8.1-cli-alpine3.15 + - php8.0-cli-alpine3.15 + swoole: + - openswoole + - swoole + includes: + - swoole: openswoole + swoole-version: "4.12.0" + - swoole: openswoole + swoole-version: "4.11.1" + - swoole: swoole + swoole-version: "4.8.9" + - swoole: swoole + swoole-version: "5.0.1" steps: - uses: actions/checkout@v3 @@ -89,8 +99,8 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=semver,pattern=octane-{{version}}-${{ matrix.base-tag }} - type=semver,pattern=octane-{{major}}.{{minor}}-${{ matrix.base-tag }} + type=semver,pattern={{version}}-${{ matrix.swoole }}${{ matrix.swoole-version }}-${{ matrix.php-tag }} + type=semver,pattern={{major}}.{{minor}}-${{ matrix.swoole }}${{ matrix.swoole-version }}-${{ matrix.php-tag }} - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -113,71 +123,15 @@ jobs: context: . tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }} - file: Dockerfile.octane + file: Dockerfile.swoole build-args: | - BASE_TAG=${{ matrix.base-tag }} - cache-from: | - type=gha,scope=octane - cache-to: | - type=gha,scope=octane - platforms: | - linux/amd64 - linux/arm64 - linux/arm/v7 - - push_openswoole: - if: "!contains(github.event.head_commit.message, 'skip ci')" - - runs-on: ubuntu-latest - - name: Tag Release (Open Swoole for Octane, ${{ matrix.base-tag }}) - - strategy: - matrix: - base-tag: - - 4.11-php8.1-alpine - - 4.11-php8.0-alpine - - steps: - - uses: actions/checkout@v3 - - - name: Docker meta - id: docker_meta - uses: docker/metadata-action@v4.0.1 - with: - images: quay.io/renokico/laravel-base - tags: | - type=semver,pattern=openswoole-{{version}}-${{ matrix.base-tag }} - type=semver,pattern=openswoole-{{major}}.{{minor}}-${{ matrix.base-tag }} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to Quay - uses: docker/login-action@v2 - with: - registry: quay.io - username: ${{ secrets.DOCKER_REPOSITORY_USERNAME }} - password: ${{ secrets.DOCKER_REPOSITORY_TOKEN }} - - - name: Build and Push - id: docker - uses: docker/build-push-action@v3 - with: - push: true - context: . - tags: ${{ steps.docker_meta.outputs.tags }} - labels: ${{ steps.docker_meta.outputs.labels }} - file: Dockerfile.openswoole - build-args: | - BASE_TAG=${{ matrix.base-tag }} + SWOOLE=${{ matrix.swoole }} + SWOOLE_VERSION=${{ matrix.swoole-version }} + PHP_TAG=${{ matrix.php-tag }} cache-from: | - type=gha,scope=openswoole + type=gha,scope=swoole cache-to: | - type=gha,scope=openswoole + type=gha,scope=swoole platforms: | linux/amd64 linux/arm64 diff --git a/Dockerfile.openswoole b/Dockerfile.openswoole deleted file mode 100644 index a1343fe..0000000 --- a/Dockerfile.openswoole +++ /dev/null @@ -1,60 +0,0 @@ -ARG BASE_TAG=4.11-php8.1-alpine - -# https://hub.docker.com/r/openswoole/swoole -FROM --platform=$BUILDPLATFORM openswoole/swoole:$BASE_TAG - -COPY docker-php-cleanup /usr/local/bin/ - -RUN set -ex ; \ - apk --update --no-cache add \ - ${PHPIZE_DEPS} \ - build-base \ - composer \ - freetype-dev \ - gettext-dev \ - icu-dev \ - libgcrypt-dev \ - libmcrypt-dev \ - libpq-dev \ - libxml2-dev \ - libxslt-dev \ - libzip-dev \ - oniguruma-dev \ - openssl \ - openssl-dev \ - pcre-dev \ - wget \ - zlib-dev ; \ - apk add --update --no-cache --virtual \ - .persistent-deps \ - curl \ - ca-certificates \ - tar \ - xz ; \ - pecl channel-update pecl.php.net ; \ - pecl install mcrypt ; \ - docker-php-ext-enable mcrypt ; \ - docker-php-ext-configure intl ; \ - docker-php-ext-install \ - bcmath \ - gettext \ - intl \ - mbstring \ - mysqli \ - pcntl \ - pdo \ - pdo_pgsql \ - soap \ - sockets \ - xml \ - xsl \ - zip ; \ - ln -sf $(which composer.phar) $(which composer) ; \ - chmod +x /usr/local/bin/docker-php-cleanup ; \ - docker-php-cleanup - -WORKDIR /var/www/html - -ENTRYPOINT ["php", "-d", "variables_order=EGPCS", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=80"] - -EXPOSE 80 diff --git a/Dockerfile.octane b/Dockerfile.swoole similarity index 51% rename from Dockerfile.octane rename to Dockerfile.swoole index a8c22ab..77971de 100644 --- a/Dockerfile.octane +++ b/Dockerfile.swoole @@ -1,15 +1,28 @@ -ARG BASE_TAG=4.8-php8.1-alpine +ARG PHP_TAG=php8.1-cli-alpine3.15 +ARG SWOOLE_VERSION=4.8.12 +ARG SWOOLE=swoole -# https://hub.docker.com/r/phpswoole/swoole -FROM --platform=$BUILDPLATFORM phpswoole/swoole:$BASE_TAG +FROM --platform=$BUILDPLATFORM php:$PHP_TAG + +LABEL maintainer="Alex Renoki " + +ARG SWOOLE +ARG SWOOLE_VERSION +ARG WWWUSER=1000 +ARG WWWGROUP=1000 +ARG TZ=UTC COPY docker-php-cleanup /usr/local/bin/ RUN set -ex ; \ + ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \ + && echo $TZ > /etc/timezone \ apk --update --no-cache add \ ${PHPIZE_DEPS} \ + .build-deps \ build-base \ composer \ + curl-dev \ freetype-dev \ gettext-dev \ icu-dev \ @@ -23,6 +36,7 @@ RUN set -ex ; \ openssl \ openssl-dev \ pcre-dev \ + pcre2-dev \ wget \ zlib-dev ; \ apk add --update --no-cache --virtual \ @@ -41,6 +55,7 @@ RUN set -ex ; \ intl \ mbstring \ mysqli \ + opcache \ pcntl \ pdo \ pdo_pgsql \ @@ -49,8 +64,25 @@ RUN set -ex ; \ xml \ xsl \ zip ; \ + docker-php-source extract ; \ + mkdir /usr/src/php/ext/${SWOOLE} ; \ + curl -sfL https://github.com/${SWOOLE}/swoole-src/archive/v${SWOOLE_VERSION}.tar.gz -o swoole.tar.gz ; \ + tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/${SWOOLE} ; \ + docker-php-ext-configure ${SWOOLE} \ + --enable-http2 \ + --enable-mysqlnd \ + --enable-openssl \ + --enable-sockets \ + --enable-swoole-curl \ + --enable-swoole-json \ + --with-postgres ; \ + docker-php-ext-install -j$(nproc) ${SWOOLE} ; \ + rm -f swoole.tar.gz $HOME/.composer/*-old.phar ; \ ln -sf $(which composer.phar) $(which composer) ; \ + groupadd --force -g $WWWGROUP swoole ; \ + useradd -ms /bin/bash --no-log-init --no-user-group -g $WWWGROUP -u $WWWUSER swoole ; \ chmod +x /usr/local/bin/docker-php-cleanup ; \ + apk del --purge .build-deps ; \ docker-php-cleanup WORKDIR /var/www/html From 5f7615c83392288c50b39c739d54f125d5e6b241 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Tue, 29 Nov 2022 03:36:44 +0200 Subject: [PATCH 22/30] Typo --- .github/workflows/docker-commit.yml | 2 +- .github/workflows/docker-latest-tag.yaml | 2 +- .github/workflows/docker-release-tag.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-commit.yml b/.github/workflows/docker-commit.yml index 3ad21ef..b5c7eb0 100644 --- a/.github/workflows/docker-commit.yml +++ b/.github/workflows/docker-commit.yml @@ -86,7 +86,7 @@ jobs: swoole: - openswoole - swoole - includes: + include: - swoole: openswoole swoole-version: "4.12.0" - swoole: openswoole diff --git a/.github/workflows/docker-latest-tag.yaml b/.github/workflows/docker-latest-tag.yaml index 309238c..8ae06c5 100644 --- a/.github/workflows/docker-latest-tag.yaml +++ b/.github/workflows/docker-latest-tag.yaml @@ -80,7 +80,7 @@ jobs: swoole: - openswoole - swoole - includes: + include: - swoole: openswoole swoole-version: "4.12.0" - swoole: openswoole diff --git a/.github/workflows/docker-release-tag.yaml b/.github/workflows/docker-release-tag.yaml index 02fd976..81485b8 100644 --- a/.github/workflows/docker-release-tag.yaml +++ b/.github/workflows/docker-release-tag.yaml @@ -80,7 +80,7 @@ jobs: swoole: - openswoole - swoole - includes: + include: - swoole: openswoole swoole-version: "4.12.0" - swoole: openswoole From 3b80ad6b7303feb5bb9c1b8848195d8c251f0c10 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Tue, 29 Nov 2022 03:39:34 +0200 Subject: [PATCH 23/30] Image name typos --- .github/workflows/docker-commit.yml | 4 ++-- .github/workflows/docker-latest-tag.yaml | 4 ++-- .github/workflows/docker-release-tag.yaml | 4 ++-- Dockerfile.swoole | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-commit.yml b/.github/workflows/docker-commit.yml index b5c7eb0..28bd4e0 100644 --- a/.github/workflows/docker-commit.yml +++ b/.github/workflows/docker-commit.yml @@ -81,8 +81,8 @@ jobs: fail-fast: false matrix: php-tag: - - php8.1-cli-alpine3.15 - - php8.0-cli-alpine3.15 + - 8.1-cli-alpine3.15 + - 8.0-cli-alpine3.15 swoole: - openswoole - swoole diff --git a/.github/workflows/docker-latest-tag.yaml b/.github/workflows/docker-latest-tag.yaml index 8ae06c5..70b2648 100644 --- a/.github/workflows/docker-latest-tag.yaml +++ b/.github/workflows/docker-latest-tag.yaml @@ -75,8 +75,8 @@ jobs: fail-fast: false matrix: php-tag: - - php8.1-cli-alpine3.15 - - php8.0-cli-alpine3.15 + - 8.1-cli-alpine3.15 + - 8.0-cli-alpine3.15 swoole: - openswoole - swoole diff --git a/.github/workflows/docker-release-tag.yaml b/.github/workflows/docker-release-tag.yaml index 81485b8..a5b1b0a 100644 --- a/.github/workflows/docker-release-tag.yaml +++ b/.github/workflows/docker-release-tag.yaml @@ -75,8 +75,8 @@ jobs: strategy: matrix: php-tag: - - php8.1-cli-alpine3.15 - - php8.0-cli-alpine3.15 + - 8.1-cli-alpine3.15 + - 8.0-cli-alpine3.15 swoole: - openswoole - swoole diff --git a/Dockerfile.swoole b/Dockerfile.swoole index 77971de..c05752c 100644 --- a/Dockerfile.swoole +++ b/Dockerfile.swoole @@ -1,4 +1,4 @@ -ARG PHP_TAG=php8.1-cli-alpine3.15 +ARG PHP_TAG=8.1-cli-alpine3.15 ARG SWOOLE_VERSION=4.8.12 ARG SWOOLE=swoole From 6a3db674396e6de639bb09ebba9e791bdd1f85c5 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Tue, 29 Nov 2022 12:02:02 +0200 Subject: [PATCH 24/30] Updated images for slimmer versions --- .github/workflows/docker-commit.yml | 42 ++++---- .github/workflows/docker-latest-tag.yaml | 36 +++---- .github/workflows/docker-release-tag.yaml | 42 ++++---- Dockerfile.fpm | 103 ++++++++++++++----- Dockerfile.swoole | 115 ++++++++++++++-------- Dockerfile.worker | 99 ++++++++++++++----- docker-extract-apt | 11 +++ docker-php-cleanup | 12 +-- 8 files changed, 302 insertions(+), 158 deletions(-) create mode 100755 docker-extract-apt diff --git a/.github/workflows/docker-commit.yml b/.github/workflows/docker-commit.yml index 28bd4e0..9add99d 100644 --- a/.github/workflows/docker-commit.yml +++ b/.github/workflows/docker-commit.yml @@ -14,14 +14,14 @@ jobs: runs-on: ubuntu-latest - name: Tag Commit (PHP-FPM, ${{ matrix.base-tag }}) + name: Tag Commit (PHP-FPM with PHP${{ matrix.php }}) strategy: fail-fast: false matrix: - base-tag: - - 8.1-fpm-alpine - - 8.0-fpm-alpine + php: + - "8.1" + - "8.0" steps: - uses: actions/checkout@v3 @@ -35,8 +35,8 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=ref,event=pr,suffix=-${{ matrix.base-tag }} - type=raw,value=${{ github.sha }}-${{ matrix.base-tag }} + type=ref,event=pr,suffix=-${{ matrix.php }} + type=raw,value=${{ github.sha }}-${{ matrix.php }}-fpm labels: | quay.expires-after=7d @@ -60,7 +60,7 @@ jobs: labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.fpm build-args: | - BASE_TAG=${{ matrix.base-tag }} + PHP_VERSION=${{ matrix.php }} cache-from: | type=gha,scope=php-fpm cache-to: | @@ -75,14 +75,14 @@ jobs: runs-on: ubuntu-latest - name: Tag Commit (${{ matrix.swoole }}/v${{ matrix.swoole-version }} with ${{ matrix.php-tag }}) + name: Tag Commit (${{ matrix.swoole }}/v${{ matrix.swoole-version }} with PHP${{ matrix.php }}) strategy: fail-fast: false matrix: - php-tag: - - 8.1-cli-alpine3.15 - - 8.0-cli-alpine3.15 + php: + - "8.1" + - "8.0" swoole: - openswoole - swoole @@ -108,8 +108,8 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=ref,event=pr,suffix=-${{ matrix.swoole }}${{ matrix.swoole-version }}-${{ matrix.php-tag }} - type=raw,value=${{ github.sha }}-${{ matrix.swoole }}${{ matrix.swoole-version }}-${{ matrix.php-tag }} + type=ref,event=pr,suffix=-php${{ matrix.php }}-${{ matrix.swoole }}${{ matrix.swoole-version }} + type=raw,value=${{ github.sha }}-php${{ matrix.php }}-${{ matrix.swoole }}${{ matrix.swoole-version }} labels: | quay.expires-after=7d @@ -135,7 +135,7 @@ jobs: build-args: | SWOOLE=${{ matrix.swoole }} SWOOLE_VERSION=${{ matrix.swoole-version }} - PHP_TAG=${{ matrix.php-tag }} + PHP_VERSION=${{ matrix.php }} cache-from: | type=gha,scope=swoole cache-to: | @@ -150,14 +150,14 @@ jobs: runs-on: ubuntu-latest - name: Tag Commit (Worker, ${{ matrix.base-tag }}) + name: Tag Commit (Worker with PHP${{ matrix.php }} CLI) strategy: fail-fast: false matrix: - base-tag: - - 8.1-cli-alpine - - 8.0-cli-alpine + php: + - "8.1" + - "8.0" steps: - uses: actions/checkout@v3 @@ -171,8 +171,8 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=ref,event=pr,suffix=-worker-${{ matrix.base-tag }} - type=raw,value=worker-${{ github.sha }}-${{ matrix.base-tag }} + type=ref,event=pr,suffix=-worker-${{ matrix.php }} + type=raw,value=worker-${{ github.sha }}-${{ matrix.php }} labels: | quay.expires-after=7d @@ -196,7 +196,7 @@ jobs: labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.worker build-args: | - BASE_TAG=${{ matrix.base-tag }} + PHP_VERSION=${{ matrix.php }} cache-from: | type=gha,scope=worker cache-to: | diff --git a/.github/workflows/docker-latest-tag.yaml b/.github/workflows/docker-latest-tag.yaml index 70b2648..e5c9563 100644 --- a/.github/workflows/docker-latest-tag.yaml +++ b/.github/workflows/docker-latest-tag.yaml @@ -11,14 +11,14 @@ jobs: runs-on: ubuntu-latest - name: Tag Latest (PHP-FPM, ${{ matrix.base-tag }}) + name: Tag Latest (PHP-FPM with PHP${{ matrix.php }}) strategy: fail-fast: false matrix: - base-tag: - - 8.1-fpm-alpine - - 8.0-fpm-alpine + php: + - "8.1" + - "8.0" steps: - uses: actions/checkout@v3 @@ -32,7 +32,7 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=raw,value=latest-${{ matrix.base-tag }} + type=raw,value=latest-${{ matrix.php }}-fpm - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -54,7 +54,7 @@ jobs: labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.fpm build-args: | - BASE_TAG=${{ matrix.base-tag }} + PHP_VERSION=${{ matrix.php }} cache-from: | type=gha,scope=php-fpm cache-to: | @@ -69,14 +69,14 @@ jobs: runs-on: ubuntu-latest - name: Tag Latest (${{ matrix.swoole }}/v${{ matrix.swoole-version }} with ${{ matrix.php-tag }}) + name: Tag Latest (${{ matrix.swoole }}/v${{ matrix.swoole-version }} with PHP${{ matrix.php }}) strategy: fail-fast: false matrix: - php-tag: - - 8.1-cli-alpine3.15 - - 8.0-cli-alpine3.15 + php: + - "8.1" + - "8.0" swoole: - openswoole - swoole @@ -102,7 +102,7 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=raw,value=latest-${{ matrix.swoole }}${{ matrix.swoole-version }}-${{ matrix.php-tag }} + type=raw,value=latest-php${{ matrix.php }}-${{ matrix.swoole }}${{ matrix.swoole-version }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -126,7 +126,7 @@ jobs: build-args: | SWOOLE=${{ matrix.swoole }} SWOOLE_VERSION=${{ matrix.swoole-version }} - PHP_TAG=${{ matrix.php-tag }} + PHP_VERSION=${{ matrix.php }} cache-from: | type=gha,scope=swoole cache-to: | @@ -141,14 +141,14 @@ jobs: runs-on: ubuntu-latest - name: Tag Latest (Worker, ${{ matrix.base-tag }}) + name: Tag Latest (Worker with PHP${{ matrix.php }} CLI) strategy: fail-fast: false matrix: - base-tag: - - 8.1-cli-alpine - - 8.0-cli-alpine + php: + - "8.1" + - "8.0" steps: - uses: actions/checkout@v3 @@ -162,7 +162,7 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=raw,value=worker-latest-${{ matrix.base-tag }} + type=raw,value=worker-latest-${{ matrix.php }}-worker - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -184,7 +184,7 @@ jobs: labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.worker build-args: | - BASE_TAG=${{ matrix.base-tag }} + PHP_VERSION=${{ matrix.php }} cache-from: | type=gha,scope=worker cache-to: | diff --git a/.github/workflows/docker-release-tag.yaml b/.github/workflows/docker-release-tag.yaml index a5b1b0a..1e0bc30 100644 --- a/.github/workflows/docker-release-tag.yaml +++ b/.github/workflows/docker-release-tag.yaml @@ -11,14 +11,14 @@ jobs: runs-on: ubuntu-latest - name: Tag Release (PHP-FPM, ${{ matrix.base-tag }}) + name: Tag Release (PHP-FPM with PHP${{ matrix.php }}) strategy: fail-fast: false matrix: - base-tag: - - 8.1-fpm-alpine - - 8.0-fpm-alpine + php: + - "8.1" + - "8.0" steps: - uses: actions/checkout@v3 @@ -29,8 +29,8 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=semver,pattern={{version}}-${{ matrix.base-tag }} - type=semver,pattern={{major}}.{{minor}}-${{ matrix.base-tag }} + type=semver,pattern={{version}}-${{ matrix.php }}-fpm + type=semver,pattern={{major}}.{{minor}}-${{ matrix.php }}-fpm - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -55,7 +55,7 @@ jobs: labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.fpm build-args: | - BASE_TAG=${{ matrix.base-tag }} + PHP_VERSION=${{ matrix.php }} cache-from: | type=gha,scope=php-fpm cache-to: | @@ -70,13 +70,13 @@ jobs: runs-on: ubuntu-latest - name: Tag Release (${{ matrix.swoole }}/v${{ matrix.swoole-version }} with ${{ matrix.php-tag }}) + name: Tag Release (${{ matrix.swoole }}/v${{ matrix.swoole-version }} with PHP${{ matrix.php }}) strategy: matrix: - php-tag: - - 8.1-cli-alpine3.15 - - 8.0-cli-alpine3.15 + php: + - "8.1" + - "8.0" swoole: - openswoole - swoole @@ -99,8 +99,8 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=semver,pattern={{version}}-${{ matrix.swoole }}${{ matrix.swoole-version }}-${{ matrix.php-tag }} - type=semver,pattern={{major}}.{{minor}}-${{ matrix.swoole }}${{ matrix.swoole-version }}-${{ matrix.php-tag }} + type=semver,pattern={{version}}-php${{ matrix.php }}-${{ matrix.swoole }}${{ matrix.swoole-version }} + type=semver,pattern={{major}}.{{minor}}-php${{ matrix.php }}-${{ matrix.swoole }}${{ matrix.swoole-version }} - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -127,7 +127,7 @@ jobs: build-args: | SWOOLE=${{ matrix.swoole }} SWOOLE_VERSION=${{ matrix.swoole-version }} - PHP_TAG=${{ matrix.php-tag }} + PHP_VERSION=${{ matrix.php }} cache-from: | type=gha,scope=swoole cache-to: | @@ -142,13 +142,13 @@ jobs: runs-on: ubuntu-latest - name: Tag Release (Worker, ${{ matrix.base-tag }}) + name: Tag Release (Worker with PHP${{ matrix.php }} CLI) strategy: matrix: - base-tag: - - 8.1-cli-alpine - - 8.0-cli-alpine + php: + - "8.1" + - "8.0" steps: - uses: actions/checkout@v3 @@ -159,8 +159,8 @@ jobs: with: images: quay.io/renokico/laravel-base tags: | - type=semver,pattern=worker-{{version}}-${{ matrix.base-tag }} - type=semver,pattern=worker-{{major}}.{{minor}}-${{ matrix.base-tag }} + type=semver,pattern={{version}}-${{ matrix.php }}-worker + type=semver,pattern={{major}}.{{minor}}-${{ matrix.php }}-worker - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -185,7 +185,7 @@ jobs: labels: ${{ steps.docker_meta.outputs.labels }} file: Dockerfile.worker build-args: | - BASE_TAG=${{ matrix.base-tag }} + PHP_VERSION=${{ matrix.php }} cache-from: | type=gha,scope=worker cache-to: | diff --git a/Dockerfile.fpm b/Dockerfile.fpm index ba05316..12fc528 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -1,40 +1,54 @@ -ARG BASE_TAG=8.1-fpm-alpine +ARG PHP_VERSION=8.1 +ARG WWWUSER=1000 +ARG WWWGROUP=1000 +ARG TZ=UTC -FROM --platform=$BUILDPLATFORM php:$BASE_TAG +FROM --platform=$BUILDPLATFORM php:$PHP_VERSION-fpm-bullseye as build -COPY docker-php-cleanup /usr/local/bin/ +ENV DEBIAN_FRONTEND=noninteractive -RUN set -ex ; \ - apk --update --no-cache add \ +COPY docker-php-cleanup docker-extract-apt /usr/local/bin/ + +RUN set -eux ; \ + apt update -y ; \ + apt install -y \ ${PHPIZE_DEPS} \ - build-base \ - composer \ - freetype-dev \ - gettext-dev \ - icu-dev \ - libgcrypt-dev \ + apt-utils \ + ca-certificates \ + curl \ + gnupg \ + gosu \ + git \ + wget ; \ + apt install -y \ + g++ \ + libargon2-1 \ + libbrotli-dev \ + libc-ares-dev \ + libcurl4-openssl-dev \ + libfreetype6-dev \ + libidn2-0 \ + libicu-dev \ libmcrypt-dev \ + libonig-dev \ libpq-dev \ + libpcre2-8-0 \ + libpcre3 \ + libssl-dev \ + libwebp-dev \ libxml2-dev \ libxslt-dev \ + libz-dev \ libzip-dev \ - oniguruma-dev \ - openssl \ - openssl-dev \ - pcre-dev \ - wget \ - zlib-dev ; \ - apk add --update --no-cache --virtual \ - .persistent-deps \ - curl \ - ca-certificates \ - tar \ - xz ; \ + libzstd1 \ + procps \ + unzip \ + zip \ + zlib1g-dev ; \ + docker-php-source extract ; \ pecl channel-update pecl.php.net ; \ pecl install mcrypt ; \ - pecl install redis ; \ docker-php-ext-enable mcrypt ; \ - docker-php-ext-enable redis ; \ docker-php-ext-configure intl ; \ docker-php-ext-install \ bcmath \ @@ -42,6 +56,7 @@ RUN set -ex ; \ intl \ mbstring \ mysqli \ + opcache \ pcntl \ pdo \ pdo_pgsql \ @@ -50,8 +65,44 @@ RUN set -ex ; \ xml \ xsl \ zip ; \ - ln -sf $(which composer.phar) $(which composer) ; \ chmod +x /usr/local/bin/docker-php-cleanup ; \ + chmod +x /usr/local/bin/docker-extract-apt ; \ + docker-php-cleanup ; \ + docker-extract-apt + +FROM debian:bullseye-slim + +ARG WWWUSER +ARG WWWGROUP +ARG TZ + +LABEL maintainer="Alex Renoki " + +ENV PHP_INI_DIR /usr/local/etc/php +ENV DEBIAN_FRONTEND=noninteractive + +COPY --from=build /usr/local/include/ /usr/local/include/ +COPY --from=build /usr/local/lib/php/ /usr/local/lib/php/ +COPY --from=build /usr/local/bin /usr/local/bin +COPY --from=build /usr/local/sbin /usr/local/sbin +COPY --from=build /usr/local/etc /usr/local/etc +COPY --from=build /PACKAGES / + +RUN set -eux ; \ + apt-get update -y ; \ + ln -snf /usr/share/zoneinfo/$TZ /etc/localtime ; \ + echo $TZ > /etc/timezone ; \ + apt-get install -y --no-install-recommends \ + $(cat /PACKAGES) \ + ca-certificates \ + curl ; \ + php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer ; \ + groupadd --force -g $WWWGROUP sailor ; \ + useradd -ms /bin/bash --no-log-init --no-user-group -g $WWWGROUP -u $WWWUSER sailor ; \ docker-php-cleanup WORKDIR /var/www/html + +ENTRYPOINT ["php-fpm"] + +EXPOSE 9000 \ No newline at end of file diff --git a/Dockerfile.swoole b/Dockerfile.swoole index c05752c..8b8702e 100644 --- a/Dockerfile.swoole +++ b/Dockerfile.swoole @@ -1,50 +1,56 @@ -ARG PHP_TAG=8.1-cli-alpine3.15 +ARG PHP_VERSION=8.1 ARG SWOOLE_VERSION=4.8.12 ARG SWOOLE=swoole +ARG WWWUSER=1000 +ARG WWWGROUP=1000 +ARG TZ=UTC -FROM --platform=$BUILDPLATFORM php:$PHP_TAG - -LABEL maintainer="Alex Renoki " +FROM --platform=$BUILDPLATFORM php:$PHP_VERSION-cli-bullseye as build ARG SWOOLE ARG SWOOLE_VERSION -ARG WWWUSER=1000 -ARG WWWGROUP=1000 -ARG TZ=UTC -COPY docker-php-cleanup /usr/local/bin/ +ENV DEBIAN_FRONTEND=noninteractive -RUN set -ex ; \ - ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \ - && echo $TZ > /etc/timezone \ - apk --update --no-cache add \ +COPY docker-php-cleanup docker-extract-apt /usr/local/bin/ + +RUN set -eux ; \ + apt update -y ; \ + apt install -y \ ${PHPIZE_DEPS} \ - .build-deps \ - build-base \ - composer \ - curl-dev \ - freetype-dev \ - gettext-dev \ - icu-dev \ - libgcrypt-dev \ + apt-utils \ + ca-certificates \ + curl \ + gnupg \ + gosu \ + git \ + wget ; \ + apt install -y \ + g++ \ + libargon2-1 \ + libbrotli-dev \ + libc-ares-dev \ + libcurl4-openssl-dev \ + libfreetype6-dev \ + libidn2-0 \ + libicu-dev \ libmcrypt-dev \ + libonig-dev \ libpq-dev \ + libpcre2-8-0 \ + libpcre3 \ + libssl-dev \ + libwebp-dev \ libxml2-dev \ libxslt-dev \ + libz-dev \ libzip-dev \ - oniguruma-dev \ - openssl \ - openssl-dev \ - pcre-dev \ - pcre2-dev \ - wget \ - zlib-dev ; \ - apk add --update --no-cache --virtual \ - .persistent-deps \ - curl \ - ca-certificates \ - tar \ - xz ; \ + libzstd1 \ + procps \ + unzip \ + zip \ + zlib1g-dev ; \ + docker-php-source extract ; \ pecl channel-update pecl.php.net ; \ pecl install mcrypt ; \ docker-php-ext-enable mcrypt ; \ @@ -64,7 +70,6 @@ RUN set -ex ; \ xml \ xsl \ zip ; \ - docker-php-source extract ; \ mkdir /usr/src/php/ext/${SWOOLE} ; \ curl -sfL https://github.com/${SWOOLE}/swoole-src/archive/v${SWOOLE_VERSION}.tar.gz -o swoole.tar.gz ; \ tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/${SWOOLE} ; \ @@ -74,19 +79,47 @@ RUN set -ex ; \ --enable-openssl \ --enable-sockets \ --enable-swoole-curl \ - --enable-swoole-json \ - --with-postgres ; \ + --enable-swoole-json ; \ docker-php-ext-install -j$(nproc) ${SWOOLE} ; \ rm -f swoole.tar.gz $HOME/.composer/*-old.phar ; \ - ln -sf $(which composer.phar) $(which composer) ; \ - groupadd --force -g $WWWGROUP swoole ; \ - useradd -ms /bin/bash --no-log-init --no-user-group -g $WWWGROUP -u $WWWUSER swoole ; \ chmod +x /usr/local/bin/docker-php-cleanup ; \ - apk del --purge .build-deps ; \ + chmod +x /usr/local/bin/docker-extract-apt ; \ + docker-php-cleanup ; \ + docker-extract-apt + +FROM debian:bullseye-slim + +ARG WWWUSER +ARG WWWGROUP +ARG TZ + +LABEL maintainer="Alex Renoki " + +ENV PHP_INI_DIR /usr/local/etc/php +ENV DEBIAN_FRONTEND=noninteractive + +COPY --from=build /usr/local/include/ /usr/local/include/ +COPY --from=build /usr/local/lib/php/ /usr/local/lib/php/ +COPY --from=build /usr/local/bin /usr/local/bin +COPY --from=build /usr/local/sbin /usr/local/sbin +COPY --from=build /usr/local/etc /usr/local/etc +COPY --from=build /PACKAGES / + +RUN set -eux ; \ + apt-get update -y ; \ + ln -snf /usr/share/zoneinfo/$TZ /etc/localtime ; \ + echo $TZ > /etc/timezone ; \ + apt-get install -y --no-install-recommends \ + $(cat /PACKAGES) \ + ca-certificates \ + curl ; \ + php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer ; \ + groupadd --force -g $WWWGROUP sailor ; \ + useradd -ms /bin/bash --no-log-init --no-user-group -g $WWWGROUP -u $WWWUSER sailor ; \ docker-php-cleanup WORKDIR /var/www/html ENTRYPOINT ["php", "-d", "variables_order=EGPCS", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=80"] -EXPOSE 80 +EXPOSE 80 \ No newline at end of file diff --git a/Dockerfile.worker b/Dockerfile.worker index 37177fe..443ec9b 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -1,35 +1,51 @@ -ARG BASE_TAG=8.1-cli-alpine +ARG PHP_VERSION=8.1 +ARG WWWUSER=1000 +ARG WWWGROUP=1000 +ARG TZ=UTC -FROM --platform=$BUILDPLATFORM php:$BASE_TAG +FROM --platform=$BUILDPLATFORM php:$PHP_VERSION-cli-bullseye as build -COPY docker-php-cleanup /usr/local/bin/ +ENV DEBIAN_FRONTEND=noninteractive -RUN set -ex ; \ - apk --update --no-cache add \ +COPY docker-php-cleanup docker-extract-apt /usr/local/bin/ + +RUN set -eux ; \ + apt update -y ; \ + apt install -y \ ${PHPIZE_DEPS} \ - build-base \ - composer \ - freetype-dev \ - gettext-dev \ - icu-dev \ - libgcrypt-dev \ + apt-utils \ + ca-certificates \ + curl \ + gnupg \ + gosu \ + git \ + wget ; \ + apt install -y \ + g++ \ + libargon2-1 \ + libbrotli-dev \ + libc-ares-dev \ + libcurl4-openssl-dev \ + libfreetype6-dev \ + libidn2-0 \ + libicu-dev \ libmcrypt-dev \ + libonig-dev \ libpq-dev \ + libpcre2-8-0 \ + libpcre3 \ + libssl-dev \ + libwebp-dev \ libxml2-dev \ libxslt-dev \ + libz-dev \ libzip-dev \ - oniguruma-dev \ - openssl \ - openssl-dev \ - pcre-dev \ - wget \ - zlib-dev ; \ - apk add --update --no-cache --virtual \ - .persistent-deps \ - curl \ - ca-certificates \ - tar \ - xz ; \ + libzstd1 \ + procps \ + unzip \ + zip \ + zlib1g-dev ; \ + docker-php-source extract ; \ pecl channel-update pecl.php.net ; \ pecl install mcrypt ; \ docker-php-ext-enable mcrypt ; \ @@ -40,6 +56,7 @@ RUN set -ex ; \ intl \ mbstring \ mysqli \ + opcache \ pcntl \ pdo \ pdo_pgsql \ @@ -48,10 +65,44 @@ RUN set -ex ; \ xml \ xsl \ zip ; \ - ln -sf $(which composer.phar) $(which composer) ; \ chmod +x /usr/local/bin/docker-php-cleanup ; \ + chmod +x /usr/local/bin/docker-extract-apt ; \ + docker-php-cleanup ; \ + docker-extract-apt + +FROM debian:bullseye-slim + +ARG WWWUSER +ARG WWWGROUP +ARG TZ + +LABEL maintainer="Alex Renoki " + +ENV PHP_INI_DIR /usr/local/etc/php +ENV DEBIAN_FRONTEND=noninteractive + +COPY --from=build /usr/local/include/ /usr/local/include/ +COPY --from=build /usr/local/lib/php/ /usr/local/lib/php/ +COPY --from=build /usr/local/bin /usr/local/bin +COPY --from=build /usr/local/sbin /usr/local/sbin +COPY --from=build /usr/local/etc /usr/local/etc +COPY --from=build /PACKAGES / + +RUN set -eux ; \ + apt-get update -y ; \ + ln -snf /usr/share/zoneinfo/$TZ /etc/localtime ; \ + echo $TZ > /etc/timezone ; \ + apt-get install -y --no-install-recommends \ + $(cat /PACKAGES) \ + ca-certificates \ + curl ; \ + php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer ; \ + groupadd --force -g $WWWGROUP sailor ; \ + useradd -ms /bin/bash --no-log-init --no-user-group -g $WWWGROUP -u $WWWUSER sailor ; \ docker-php-cleanup WORKDIR /var/www/html ENTRYPOINT ["php", "-a"] + +EXPOSE 80 \ No newline at end of file diff --git a/docker-extract-apt b/docker-extract-apt new file mode 100755 index 0000000..0f4e193 --- /dev/null +++ b/docker-extract-apt @@ -0,0 +1,11 @@ +#!/bin/sh + +# Strip the dependencies to minimal ones and store them in /PACKAGES +find /usr/local/bin /usr/local/sbin /usr/local/lib -type f -perm /0111 -exec strip --strip-all '{}' + || true + +find /usr/local/lib/php /usr/local/bin /usr/local/sbin -type f -executable -exec ldd '{}' ';' \ + | awk '/=>/ { print $(NF-1) }' \ + | sort -u \ + | xargs -r dpkg-query --search \ + | cut -d: -f1 \ + | sort -u > /PACKAGES diff --git a/docker-php-cleanup b/docker-php-cleanup index a3ef59c..bbdf6f2 100755 --- a/docker-php-cleanup +++ b/docker-php-cleanup @@ -5,11 +5,9 @@ rm -rf /usr/local/bin/phpdbg rm -rf /usr/local/bin/php-cgi rm -rf /usr/includes/* rm -rf /usr/share/man/* -rm -rf /var/cache/apk/* +rm -rf /var/cache/* rm -rf /var/tmp/* - -apk del --purge .phpize-deps -apk del --purge build-base -apk del --purge ${PHPIZE_DEPS} - -docker-php-source delete +rm -rf /var/lib/apt/lists/* +rm -rf /var/log/lastlog +rm -rf /var/log/faillog +rm -rf /usr/local/lib/php/test From 4deb770d7dc9b2e47a31e7375bc268d80f4950f4 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Tue, 29 Nov 2022 12:22:45 +0200 Subject: [PATCH 25/30] Updated swoole args & composer installation --- Dockerfile.fpm | 2 +- Dockerfile.swoole | 25 +++++++++++++++++-------- Dockerfile.worker | 1 + 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/Dockerfile.fpm b/Dockerfile.fpm index 12fc528..320d232 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -65,6 +65,7 @@ RUN set -eux ; \ xml \ xsl \ zip ; \ + php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/ --filename=composer ; \ chmod +x /usr/local/bin/docker-php-cleanup ; \ chmod +x /usr/local/bin/docker-extract-apt ; \ docker-php-cleanup ; \ @@ -96,7 +97,6 @@ RUN set -eux ; \ $(cat /PACKAGES) \ ca-certificates \ curl ; \ - php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer ; \ groupadd --force -g $WWWGROUP sailor ; \ useradd -ms /bin/bash --no-log-init --no-user-group -g $WWWGROUP -u $WWWUSER sailor ; \ docker-php-cleanup diff --git a/Dockerfile.swoole b/Dockerfile.swoole index 8b8702e..89c3944 100644 --- a/Dockerfile.swoole +++ b/Dockerfile.swoole @@ -73,15 +73,25 @@ RUN set -eux ; \ mkdir /usr/src/php/ext/${SWOOLE} ; \ curl -sfL https://github.com/${SWOOLE}/swoole-src/archive/v${SWOOLE_VERSION}.tar.gz -o swoole.tar.gz ; \ tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/${SWOOLE} ; \ - docker-php-ext-configure ${SWOOLE} \ - --enable-http2 \ - --enable-mysqlnd \ - --enable-openssl \ - --enable-sockets \ - --enable-swoole-curl \ - --enable-swoole-json ; \ + if [ ${SWOOLE} = 'swoole' ]; then \ + docker-php-ext-configure ${SWOOLE} \ + --enable-mysqlnd \ + --enable-openssl \ + --enable-sockets \ + --enable-swoole-curl ; \ + fi ; \ + if [ ${SWOOLE} = 'openswoole' ]; then \ + docker-php-ext-configure ${SWOOLE} \ + --enable-http2 \ + --enable-mysqlnd \ + --enable-openssl \ + --enable-sockets \ + --enable-swoole-curl \ + --enable-swoole-json ; \ + fi ; \ docker-php-ext-install -j$(nproc) ${SWOOLE} ; \ rm -f swoole.tar.gz $HOME/.composer/*-old.phar ; \ + php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/ --filename=composer ; \ chmod +x /usr/local/bin/docker-php-cleanup ; \ chmod +x /usr/local/bin/docker-extract-apt ; \ docker-php-cleanup ; \ @@ -113,7 +123,6 @@ RUN set -eux ; \ $(cat /PACKAGES) \ ca-certificates \ curl ; \ - php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer ; \ groupadd --force -g $WWWGROUP sailor ; \ useradd -ms /bin/bash --no-log-init --no-user-group -g $WWWGROUP -u $WWWUSER sailor ; \ docker-php-cleanup diff --git a/Dockerfile.worker b/Dockerfile.worker index 443ec9b..0ee1e90 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -65,6 +65,7 @@ RUN set -eux ; \ xml \ xsl \ zip ; \ + php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/ --filename=composer ; \ chmod +x /usr/local/bin/docker-php-cleanup ; \ chmod +x /usr/local/bin/docker-extract-apt ; \ docker-php-cleanup ; \ From 177ccda5dbcef4a4ec240c862627cbbe9ea44f76 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Tue, 29 Nov 2022 12:29:40 +0200 Subject: [PATCH 26/30] Removed php call in final iamge --- Dockerfile.worker | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile.worker b/Dockerfile.worker index 0ee1e90..5b352a3 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -97,7 +97,6 @@ RUN set -eux ; \ $(cat /PACKAGES) \ ca-certificates \ curl ; \ - php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer ; \ groupadd --force -g $WWWGROUP sailor ; \ useradd -ms /bin/bash --no-log-init --no-user-group -g $WWWGROUP -u $WWWUSER sailor ; \ docker-php-cleanup From 44a447115211d46e153eca5f22e8a6a5e7f5b911 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Tue, 29 Nov 2022 13:15:26 +0200 Subject: [PATCH 27/30] Fixed extensions --- Dockerfile.fpm | 4 ++++ Dockerfile.swoole | 4 ++++ Dockerfile.worker | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/Dockerfile.fpm b/Dockerfile.fpm index 320d232..24b174e 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -19,6 +19,7 @@ RUN set -eux ; \ gnupg \ gosu \ git \ + openssl \ wget ; \ apt install -y \ g++ \ @@ -30,6 +31,7 @@ RUN set -eux ; \ libidn2-0 \ libicu-dev \ libmcrypt-dev \ + libmcrypt4 \ libonig-dev \ libpq-dev \ libpcre2-8-0 \ @@ -87,6 +89,8 @@ COPY --from=build /usr/local/lib/php/ /usr/local/lib/php/ COPY --from=build /usr/local/bin /usr/local/bin COPY --from=build /usr/local/sbin /usr/local/sbin COPY --from=build /usr/local/etc /usr/local/etc +COPY --from=build /usr/src/php.tar.* /usr/src +COPY --from=build /usr/lib/*.so* /usr/lib COPY --from=build /PACKAGES / RUN set -eux ; \ diff --git a/Dockerfile.swoole b/Dockerfile.swoole index 89c3944..86eff2f 100644 --- a/Dockerfile.swoole +++ b/Dockerfile.swoole @@ -24,6 +24,7 @@ RUN set -eux ; \ gnupg \ gosu \ git \ + openssl \ wget ; \ apt install -y \ g++ \ @@ -35,6 +36,7 @@ RUN set -eux ; \ libidn2-0 \ libicu-dev \ libmcrypt-dev \ + libmcrypt4 \ libonig-dev \ libpq-dev \ libpcre2-8-0 \ @@ -113,6 +115,8 @@ COPY --from=build /usr/local/lib/php/ /usr/local/lib/php/ COPY --from=build /usr/local/bin /usr/local/bin COPY --from=build /usr/local/sbin /usr/local/sbin COPY --from=build /usr/local/etc /usr/local/etc +COPY --from=build /usr/src/php.tar.* /usr/src +COPY --from=build /usr/lib/*.so* /usr/lib COPY --from=build /PACKAGES / RUN set -eux ; \ diff --git a/Dockerfile.worker b/Dockerfile.worker index 5b352a3..289d33b 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -19,6 +19,7 @@ RUN set -eux ; \ gnupg \ gosu \ git \ + openssl \ wget ; \ apt install -y \ g++ \ @@ -30,6 +31,7 @@ RUN set -eux ; \ libidn2-0 \ libicu-dev \ libmcrypt-dev \ + libmcrypt4 \ libonig-dev \ libpq-dev \ libpcre2-8-0 \ @@ -87,6 +89,8 @@ COPY --from=build /usr/local/lib/php/ /usr/local/lib/php/ COPY --from=build /usr/local/bin /usr/local/bin COPY --from=build /usr/local/sbin /usr/local/sbin COPY --from=build /usr/local/etc /usr/local/etc +COPY --from=build /usr/src/php.tar.* /usr/src +COPY --from=build /usr/lib/*.so* /usr/lib COPY --from=build /PACKAGES / RUN set -eux ; \ From a9b78cc10c250a15a3661ca5293e4f068e296620 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Tue, 29 Nov 2022 18:07:24 +0200 Subject: [PATCH 28/30] Fixed platform use --- Dockerfile.fpm | 4 ++-- Dockerfile.swoole | 4 ++-- Dockerfile.worker | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile.fpm b/Dockerfile.fpm index 24b174e..7075b55 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -3,7 +3,7 @@ ARG WWWUSER=1000 ARG WWWGROUP=1000 ARG TZ=UTC -FROM --platform=$BUILDPLATFORM php:$PHP_VERSION-fpm-bullseye as build +FROM --platform=$TARGETPLATFORM php:$PHP_VERSION-fpm-bullseye as build ENV DEBIAN_FRONTEND=noninteractive @@ -73,7 +73,7 @@ RUN set -eux ; \ docker-php-cleanup ; \ docker-extract-apt -FROM debian:bullseye-slim +FROM --platform=$TARGETPLATFORM debian:bullseye-slim ARG WWWUSER ARG WWWGROUP diff --git a/Dockerfile.swoole b/Dockerfile.swoole index 86eff2f..7411935 100644 --- a/Dockerfile.swoole +++ b/Dockerfile.swoole @@ -5,7 +5,7 @@ ARG WWWUSER=1000 ARG WWWGROUP=1000 ARG TZ=UTC -FROM --platform=$BUILDPLATFORM php:$PHP_VERSION-cli-bullseye as build +FROM --platform=$TARGETPLATFORM php:$PHP_VERSION-cli-bullseye as build ARG SWOOLE ARG SWOOLE_VERSION @@ -99,7 +99,7 @@ RUN set -eux ; \ docker-php-cleanup ; \ docker-extract-apt -FROM debian:bullseye-slim +FROM --platform=TARGETPLATFORM debian:bullseye-slim ARG WWWUSER ARG WWWGROUP diff --git a/Dockerfile.worker b/Dockerfile.worker index 289d33b..bca2cfc 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -3,7 +3,7 @@ ARG WWWUSER=1000 ARG WWWGROUP=1000 ARG TZ=UTC -FROM --platform=$BUILDPLATFORM php:$PHP_VERSION-cli-bullseye as build +FROM --platform=$TARGETPLATFORM php:$PHP_VERSION-cli-bullseye as build ENV DEBIAN_FRONTEND=noninteractive @@ -73,7 +73,7 @@ RUN set -eux ; \ docker-php-cleanup ; \ docker-extract-apt -FROM debian:bullseye-slim +FROM --platform=$TARGETPLATFORM debian:bullseye-slim ARG WWWUSER ARG WWWGROUP From 8a54b38c2aabc7d0b9f630cdbc0f06bd6aa2503e Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Wed, 30 Nov 2022 11:06:29 +0200 Subject: [PATCH 29/30] Fixed typo --- Dockerfile.swoole | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.swoole b/Dockerfile.swoole index 7411935..11d6b82 100644 --- a/Dockerfile.swoole +++ b/Dockerfile.swoole @@ -99,7 +99,7 @@ RUN set -eux ; \ docker-php-cleanup ; \ docker-extract-apt -FROM --platform=TARGETPLATFORM debian:bullseye-slim +FROM --platform=$TARGETPLATFORM debian:bullseye-slim ARG WWWUSER ARG WWWGROUP From 67d679e65078aa794c5b0f13534c69e837ca2379 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 2 Dec 2022 13:07:11 +0200 Subject: [PATCH 30/30] Using $BUILDPLATFORM for building --- Dockerfile.fpm | 2 +- Dockerfile.swoole | 2 +- Dockerfile.worker | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.fpm b/Dockerfile.fpm index 7075b55..aa0e41b 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -3,7 +3,7 @@ ARG WWWUSER=1000 ARG WWWGROUP=1000 ARG TZ=UTC -FROM --platform=$TARGETPLATFORM php:$PHP_VERSION-fpm-bullseye as build +FROM --platform=$BUILDPLATFORM php:$PHP_VERSION-fpm-bullseye as build ENV DEBIAN_FRONTEND=noninteractive diff --git a/Dockerfile.swoole b/Dockerfile.swoole index 11d6b82..b57ef85 100644 --- a/Dockerfile.swoole +++ b/Dockerfile.swoole @@ -5,7 +5,7 @@ ARG WWWUSER=1000 ARG WWWGROUP=1000 ARG TZ=UTC -FROM --platform=$TARGETPLATFORM php:$PHP_VERSION-cli-bullseye as build +FROM --platform=$BUILDPLATFORM php:$PHP_VERSION-cli-bullseye as build ARG SWOOLE ARG SWOOLE_VERSION diff --git a/Dockerfile.worker b/Dockerfile.worker index bca2cfc..56aa744 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -3,7 +3,7 @@ ARG WWWUSER=1000 ARG WWWGROUP=1000 ARG TZ=UTC -FROM --platform=$TARGETPLATFORM php:$PHP_VERSION-cli-bullseye as build +FROM --platform=$BUILDPLATFORM php:$PHP_VERSION-cli-bullseye as build ENV DEBIAN_FRONTEND=noninteractive