Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
5fb94e1
#40 - Update PHPUnit configuration to version 12 schema and adjust co…
njoubert-cleverage Jul 20, 2026
632998e
#40 - Add support for PHP 8.5 and Symfony 8, update dependencies. Rew…
njoubert-cleverage Jul 21, 2026
95ed272
#40 - Bump versions cleverage/* and apply UPGRADE.md from cleverage/u…
njoubert-cleverage Jul 21, 2026
a9c16e6
#40 - composer recipes:update doctrine/doctrine-bundle
njoubert-cleverage Jul 21, 2026
2fd9fb9
#40 - composer recipes:update doctrine/deprecations
njoubert-cleverage Jul 21, 2026
2eeb45f
#40 - composer recipes:update phpunit/phpunit
njoubert-cleverage Jul 21, 2026
bf204b9
#40 - composer recipes:update symfony/framework-bundle
njoubert-cleverage Jul 21, 2026
eb439c9
#40 - composer recipes:update symfony/messenger
njoubert-cleverage Jul 21, 2026
6e96eaa
#40 - composer recipes:update symfony/monolog-bundle
njoubert-cleverage Jul 21, 2026
3170f09
#40 - composer recipes:update symfony/routing
njoubert-cleverage Jul 21, 2026
1a0f784
#40 - composer recipes:update symfony/security-bundle
njoubert-cleverage Jul 21, 2026
bf2aa40
#40 - composer recipes:update symfony/translation
njoubert-cleverage Jul 21, 2026
cbc7d99
#40 - composer recipes:update symfony/twig-bundle
njoubert-cleverage Jul 21, 2026
990e8d1
#40 - composer recipes:update symfony/ux-twig-component
njoubert-cleverage Jul 21, 2026
4e18eca
#40 - composer recipes:update symfony/web-profiler-bundle
njoubert-cleverage Jul 21, 2026
530b8b2
#40 - composer recipes:update easycorp/easyadmin-bundle
njoubert-cleverage Jul 21, 2026
5596f0b
#40 - Fix quality
njoubert-cleverage Jul 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .docker/apache2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
FROM ubuntu/apache2:latest
FROM ubuntu/apache2:2.4-22.04_beta

RUN a2enmod proxy_fcgi
ARG UID
ARG GID

ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# Enable required modules
RUN a2enmod proxy_fcgi

RUN usermod -u $UID www-data \
&& groupmod -g $GID www-data
2 changes: 1 addition & 1 deletion .docker/apache2/conf/apache2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# SetHandler proxy:unix:/var/run/php/php7.4-fpm.sock|fcgi://dummy

# when PHP-FPM is configured to use TCP
SetHandler proxy:fcgi://php:9000
SetHandler proxy:fcgi://php-fpm:9000
</FilesMatch>

DocumentRoot /var/www/public
Expand Down
7 changes: 3 additions & 4 deletions .docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ x-base-php: &base-php
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
PHP_VERSION: ${PHP_VERSION:-8.4}
XDEBUG_VERSION: ${XDEBUG_VERSION:-3.4.5}
PHP_VERSION: ${PHP_VERSION:-8.5}
env_file: .env
volumes:
- ../:/var/www
Expand All @@ -29,7 +28,7 @@ x-base-apache2: &base-apache2
- ../:/var/www
- ./apache2/conf/apache2.conf:/etc/apache2/sites-available/000-default.conf
depends_on:
- php
- php-fpm

x-base-mysql: &base-mysql
build:
Expand Down Expand Up @@ -59,7 +58,7 @@ x-base-sftp: &base-sftp
name: cleverage-process-bundle-demo

services:
php:
php-fpm:
<<: *base-php
tty: true
depends_on:
Expand Down
7 changes: 4 additions & 3 deletions .docker/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
ARG MYSQL_VERSION=9.1.0
FROM mysql:${MYSQL_VERSION}

ARG UNAME=mysql
ARG UID
ARG GID

ENV TZ=Europe/Paris

RUN usermod -u $UID mysql \
&& groupmod -g $GID mysql
RUN usermod -u $UID $UNAME \
&& groupmod -g $GID $UNAME

USER mysql:mysql
USER $UNAME:$UNAME
58 changes: 30 additions & 28 deletions .docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,47 +1,49 @@
ARG PHP_VERSION=8.1
FROM php:${PHP_VERSION}-fpm-alpine AS php

ARG XDEBUG_VERSION=3.1.4
ARG PHP_VERSION=8.5
FROM php:${PHP_VERSION}-fpm

ARG UNAME=www-data
ARG UID
ARG GID

ENV DEBIAN_FRONTEND=noninteractive

RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
COPY /conf.d/ "$PHP_INI_DIR/conf.d/"

RUN apk update && apk add \
ENV TZ="Europe/Paris"
RUN sed -i "s/^;date.timezone =.*/date.timezone = Europe\/Paris/" $PHP_INI_DIR/php.ini

RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
tzdata \
shadow \
nano \
bash \
icu-dev icu-data-full \
libxml2-dev \
libzip-dev \
postgresql-dev \
unzip \
wget \
git \
unzip \
libicu-dev \
libzip-dev \
libxml2-dev \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl soap opcache zip pdo pdo_pgsql pdo_mysql \
&& docker-php-ext-enable soap opcache
&& docker-php-ext-install intl \
pdo \
pdo_mysql \
zip \
soap \
&& docker-php-ext-enable soap

RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \
&& apk add --update linux-headers \
&& pecl install xdebug-${XDEBUG_VERSION} \
&& apk del pcre-dev ${PHPIZE_DEPS}
# For PHP_VERSION < 8.5
#RUN docker-php-ext-install opcache \
# && docker-php-ext-enable opcache

RUN ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime \
&& sed -i "s/^;date.timezone =.*/date.timezone = Europe\/Paris/" $PHP_INI_DIR/php.ini
COPY --link --from=composer:2 /usr/bin/composer /usr/bin/composer

COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie
RUN pie install xdebug/xdebug

RUN usermod -u $UID www-data \
&& groupmod -g $GID www-data
RUN usermod -u $UID $UNAME \
&& groupmod -g $GID $UNAME

USER www-data:www-data
USER $UNAME:$UNAME

WORKDIR /var/www

COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
CMD ["php-fpm"]
8 changes: 0 additions & 8 deletions .docker/php/entrypoint.sh

This file was deleted.

17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[{compose.yaml,compose.*.yaml}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
11 changes: 9 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=
APP_SHARE_DIR=var/share
###< symfony/framework-bundle ###

###> symfony/messenger ###
Expand All @@ -30,7 +31,7 @@ MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data_%kernel.environment%.db"
DATABASE_URL="mysql://app:app@mysql:3306/app?serverVersion=9.1.0&charset=utf8mb4"
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
# DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
Expand All @@ -42,4 +43,10 @@ SFTP_PORT=22
SFTP_USERNAME=sftp
SFTP_PASSWORD=password
SFTP_ROOT=data
###< docker/atmoz-sftp ###
###< docker/atmoz-sftp ###

###> symfony/routing ###
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
DEFAULT_URI=http://process-bundle-demo.localhost
###< symfony/routing ###
3 changes: 0 additions & 3 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots
6 changes: 3 additions & 3 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
php-version: '8.5'
coverage: none
tools: composer:v2
- name: Install Composer dependencies (locked)
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
php-version: '8.5'
coverage: none
tools: composer:v2
- name: Install Composer dependencies (locked)
Expand All @@ -55,7 +55,7 @@ jobs:
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
php-version: '8.5'
coverage: none
tools: composer:v2
- name: Install Composer dependencies (locked)
Expand Down
39 changes: 27 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,12 @@ jobs:
- '8.2'
- '8.3'
- '8.4'
- '8.5'
dependencies: [highest]
allowed-to-fail: [false]
symfony-require: ['']
variant: [normal]
include:
- php-version: '8.1'
dependencies: highest
allowed-to-fail: false
symfony-require: 6.4.*
variant: symfony/symfony:"6.4.*"
- php-version: '8.2'
dependencies: highest
allowed-to-fail: false
Expand All @@ -41,8 +37,8 @@ jobs:
- php-version: '8.2'
dependencies: highest
allowed-to-fail: false
symfony-require: 7.3.*
variant: symfony/symfony:"7.3.*"
symfony-require: 7.4.*
variant: symfony/symfony:"7.4.*"
- php-version: '8.3'
dependencies: highest
allowed-to-fail: false
Expand All @@ -51,8 +47,8 @@ jobs:
- php-version: '8.3'
dependencies: highest
allowed-to-fail: false
symfony-require: 7.3.*
variant: symfony/symfony:"7.3.*"
symfony-require: 7.4.*
variant: symfony/symfony:"7.4.*"
- php-version: '8.4'
dependencies: highest
allowed-to-fail: false
Expand All @@ -61,9 +57,28 @@ jobs:
- php-version: '8.4'
dependencies: highest
allowed-to-fail: false
symfony-require: 7.3.*
variant: symfony/symfony:"7.3.*"

symfony-require: 7.4.*
variant: symfony/symfony:"7.4.*"
- php-version: '8.4'
dependencies: highest
allowed-to-fail: false
symfony-require: 8.*
variant: symfony/symfony:"8.*"
- php-version: '8.5'
dependencies: highest
allowed-to-fail: false
symfony-require: 6.4.*
variant: symfony/symfony:"6.4.*"
- php-version: '8.5'
dependencies: highest
allowed-to-fail: false
symfony-require: 7.4.*
variant: symfony/symfony:"7.4.*"
- php-version: '8.5'
dependencies: highest
allowed-to-fail: false
symfony-require: 8.*
variant: symfony/symfony:"8.*"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@

###> phpunit/phpunit ###
/phpunit.xml
.phpunit.result.cache
/.phpunit.cache/
###< phpunit/phpunit ###
10 changes: 6 additions & 4 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the CleverAge/ProcessBundleDemo package.
*
Expand All @@ -24,9 +26,8 @@

return (new PhpCsFixer\Config())
->setRules([
'@PHP71Migration' => true,
'@PHP82Migration' => true,
'@PHPUnit75Migration:risky' => true,
'@PHP8x2Migration' => true,
'@PHPUnit7x5Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'@DoctrineAnnotation' => true,
Expand All @@ -35,12 +36,13 @@
'header_comment' => ['header' => $fileHeaderComment],
'modernize_strpos' => true,
'get_class_to_class_keyword' => true,
'declare_strict_types' => true,
])
->setRiskyAllowed(true)
->setFinder(
(new PhpCsFixer\Finder())
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
// ->in(__DIR__.'/tests')
->append([__FILE__])
)
->setCacheFile('.php-cs-fixer.cache')
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.ONESHELL:
SHELL := /bin/bash

DOCKER_RUN_PHP = docker compose -f .docker/compose.yaml run --rm php "bash" "-c"
DOCKER_RUN_PHP = docker compose -f .docker/compose.yaml run --rm php-fpm "bash" "-c"
DOCKER_COMPOSE = docker compose -f .docker/compose.yaml

start: upd doctrine/migrations doctrine/fixtures assets/install #[Global] Start application
Expand Down Expand Up @@ -32,7 +32,7 @@ ps: # [Docker] Show running containers
$(DOCKER_COMPOSE) ps

bash: #[Docker] Connect to php container with current host user
$(DOCKER_COMPOSE) exec -u $$(id -u $${USER}):$$(id -g $${USER}) php bash
$(DOCKER_COMPOSE) exec -u $$(id -u $${USER}):$$(id -g $${USER}) php-fpm bash

logs: #[Docker] Show logs
$(DOCKER_COMPOSE) logs -f
Expand Down
4 changes: 4 additions & 0 deletions bin/phpunit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env php
<?php

require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
Loading
Loading