Skip to content

Commit aee93bd

Browse files
committed
Require PHP 8.4 & Symfony 7.4+/8.0; upgrade requirements
1 parent 6caecdb commit aee93bd

38 files changed

Lines changed: 138 additions & 530 deletions

.github/workflows/build-docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build docs
22

33
on:
44
push:
5-
branches: ['5.x']
5+
branches: ['6.x']
66

77
jobs:
88
deploy:

.github/workflows/coding-standards.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Coding Standards
22

33
on:
44
pull_request:
5-
branches: ['5.x', '4.x', '3.x']
5+
branches: ["*.x"]
66
push:
7-
branches: ['5.x', '4.x', '3.x']
7+
branches: ["*.x"]
88

99
jobs:
1010
easy-coding-standard:
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
php-version:
17-
- '8.4'
17+
- '8.5'
1818

1919
steps:
2020
- name: Checkout code

.github/workflows/continuous-integration.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Continuous Integration
22

33
on:
44
pull_request:
5-
branches: ['5.x', '4.x', '3.x']
5+
branches: ["*.x"]
66
push:
7-
branches: ['5.x', '4.x', '3.x']
7+
branches: ["*.x"]
88

99
jobs:
1010
phpunit:
@@ -17,18 +17,15 @@ jobs:
1717
strategy:
1818
matrix:
1919
php-version:
20-
- '8.2'
21-
- '8.3'
2220
- '8.4'
2321
- '8.5'
2422
symfony-version:
25-
- '6.4.*'
2623
- '7.4.*'
24+
- '8.0.*'
2725
include:
28-
- php-version: '8.4'
29-
symfony-version: '8.0.*'
3026
- php-version: '8.5'
31-
symfony-version: '8.0.*'
27+
symfony-version: '8.1.*@dev'
28+
continue-on-error: true
3229

3330
steps:
3431
- name: Checkout code
@@ -56,4 +53,4 @@ jobs:
5653

5754
- name: Upload to Codecov
5855
uses: codecov/codecov-action@v5
59-
if: matrix.php-version == '8.2' && matrix.symfony-version == '6.4.*'
56+
if: matrix.php-version == '8.4' && matrix.symfony-version == '7.4.*'

.github/workflows/static-analysis.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Static Analysis
22

33
on:
44
pull_request:
5-
branches: ['5.x', '4.x', '3.x']
5+
branches: ["*.x"]
66
push:
7-
branches: ['5.x', '4.x', '3.x']
7+
branches: ["*.x"]
88

99
jobs:
1010
phpstan:
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
php-version:
17-
- '8.4'
17+
- '8.5'
1818

1919
steps:
2020
- name: Checkout code

CHANGELOG-6.x.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
6.0.0
2+
-----
3+
4+
* Dropped support for PHP < 8.4
5+
* Dropped support for Symfony 6.4 & Symfony < 7.4
6+
* Upgraded dev dependencies
7+
* Removed the PasswordStrength constraint, use the one from Symfony instead
8+
* Removed PasswordStrengthChecker
9+
* Dropped support for doctrine/orm v2
10+
* Required Twig >= 3.23
11+
* Removed support for endroid/qr-code < 6

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ Leapt Core Bundle
22
=================
33

44
[![Package version](https://img.shields.io/packagist/v/leapt/core-bundle.svg?style=flat-square)](https://packagist.org/packages/leapt/core-bundle)
5-
[![Build Status](https://img.shields.io/github/actions/workflow/status/leapt/core-bundle/continuous-integration.yaml?branch=5.x&style=flat-square)](https://github.com/leapt/core-bundle/actions?query=workflow%3A%22Continuous+Integration%22)
6-
[![PHP Version](https://img.shields.io/packagist/php-v/leapt/core-bundle.svg?branch=5.x&style=flat-square)](https://travis-ci.org/leapt/core-bundle?branch=5.x)
5+
[![Build Status](https://img.shields.io/github/actions/workflow/status/leapt/core-bundle/continuous-integration.yaml?branch=6.x&style=flat-square)](https://github.com/leapt/core-bundle/actions?query=workflow%3A%22Continuous+Integration%22)
6+
[![PHP Version](https://img.shields.io/packagist/php-v/leapt/core-bundle.svg?branch=6.x&style=flat-square)](https://travis-ci.org/leapt/core-bundle?branch=6.x)
77
[![License](https://img.shields.io/badge/license-MIT-red.svg?style=flat-square)](LICENSE)
8-
[![Code coverage](https://img.shields.io/codecov/c/github/leapt/core-bundle?style=flat-square)](https://codecov.io/gh/leapt/core-bundle/branch/5.x)
8+
[![Code coverage](https://img.shields.io/codecov/c/github/leapt/core-bundle?style=flat-square)](https://codecov.io/gh/leapt/core-bundle/branch/6.x)
99

1010
Introduction
1111
------------
@@ -48,19 +48,20 @@ You can check docs there: https://core-bundle.leapt.dev/
4848
Versions & dependencies
4949
-----------------------
5050

51-
The current version (5.x) of the bundle works with Symfony 6.4, 7.0+ & 8.0+.
51+
The current version (6.x) of the bundle works with Symfony 7.4 & 8.0+.
5252
The project follows SemVer.
5353
Only the last major version is maintained.
5454

55-
You can check the [changelog](CHANGELOG-5.x.md) for version 5 and the [upgrade document](UPGRADE-5.x.md) when upgrading
56-
from 4.x bundle version.
55+
You can check the [changelog](CHANGELOG-6.x.md) for version 6 and the [upgrade document](UPGRADE-6.x.md) when upgrading
56+
from 5.x bundle version.
5757

58-
| CoreBundle version | Symfony version | PHP version |
59-
|--------------------|-----------------|----------------|
60-
| 5.x | ^6.4 \|\| ^7.0 | ^8.2 |
61-
| 4.x | ^5.4 \|\| ^6.0 | ^8.0 |
62-
| 3.1+ | ^4.4 \|\| ^5.0 | ^7.4 \|\| ^8.0 |
63-
| 3.0 | ^4.4 \|\| ^5.0 | ^7.2 |
58+
| CoreBundle version | Symfony version | PHP version |
59+
|--------------------|--------------------------|----------------|
60+
| 6.x | ^7.4 \|\| ^8.0 | ^8.4 |
61+
| 5.x | ^6.4 \|\| ^7.0 \|\| ^8.0 | ^8.2 |
62+
| 4.x | ^5.4 \|\| ^6.0 | ^8.0 |
63+
| 3.1+ | ^4.4 \|\| ^5.0 | ^7.4 \|\| ^8.0 |
64+
| 3.0 | ^4.4 \|\| ^5.0 | ^7.2 |
6465

6566
Contributing
6667
------------

UPGRADE-6.x.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Upgrade guide for 6.0
2+
---------------------
3+
4+
* Requires PHP 8.4+
5+
* Requires Symfony 7.4/8.0+
6+
* Removed the PasswordStrength constraint, use the one from Symfony instead
7+
* Removed PasswordStrengthChecker
8+
* Dropped support for doctrine/orm v2
9+
* Requires Twig >= 3.23
10+
* Removed support for endroid/qr-code < 6

composer.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,34 @@
2525
],
2626
"minimum-stability": "stable",
2727
"require": {
28-
"php": "^8.2",
29-
"doctrine/orm": "^2.10 || ^3.0",
28+
"php": "^8.4",
29+
"doctrine/orm": "^3.0",
3030
"symfony/deprecation-contracts": "^3.5",
31-
"symfony/event-dispatcher": "^6.4 || ^7.0 || ^8.0",
32-
"symfony/form": "^6.4 || ^7.0 || ^8.0",
33-
"symfony/framework-bundle": "^6.4 || ^7.0 || ^8.0",
34-
"symfony/http-foundation": "^6.4 || ^7.0 || ^8.0",
35-
"symfony/http-kernel": "^6.4 || ^7.0 || ^8.0",
36-
"symfony/mime": "^6.4 || ^7.0 || ^8.0",
37-
"symfony/routing": "^6.4 || ^7.0 || ^8.0",
38-
"symfony/translation": "^6.4 || ^7.0 || ^8.0",
39-
"symfony/twig-bundle": "^6.4 || ^7.0 || ^8.0",
40-
"symfony/validator": "^6.4 || ^7.0 || ^8.0",
41-
"twig/twig": "^3.0"
31+
"symfony/event-dispatcher": "^7.4 || ^8.0",
32+
"symfony/form": "^7.4 || ^8.0",
33+
"symfony/framework-bundle": "^7.4 || ^8.0",
34+
"symfony/http-foundation": "^7.4 || ^8.0",
35+
"symfony/http-kernel": "^7.4 || ^8.0",
36+
"symfony/mime": "^7.4 || ^8.0",
37+
"symfony/routing": "^7.4 || ^8.0",
38+
"symfony/translation": "^7.4 || ^8.0",
39+
"symfony/twig-bundle": "^7.4 || ^8.0",
40+
"symfony/validator": "^7.4 || ^8.0",
41+
"twig/twig": "^3.23"
4242
},
4343
"require-dev": {
4444
"doctrine/data-fixtures": "^1.6 || ^2.2",
45-
"doctrine/persistence": "^3.2 || ^4.0",
46-
"easycorp/easyadmin-bundle": "^4.8.5",
47-
"endroid/qr-code": "^4.8 || ^5.0 || ^6.0",
45+
"doctrine/persistence": "^4.0",
46+
"easycorp/easyadmin-bundle": "^5.0.0",
47+
"endroid/qr-code": "^6.0",
4848
"fakerphp/faker": "^1.23",
4949
"google/recaptcha": "^1.3",
5050
"league/flysystem-bundle": "^3.0",
51-
"phpstan/phpstan": "^2.1.22",
52-
"phpstan/phpstan-deprecation-rules": "^2.0.3",
53-
"phpunit/phpunit": "^11.5.35",
54-
"symfony/browser-kit": "^6.4 || ^7.0 || ^8.0",
55-
"symplify/easy-coding-standard": "^13.0.0"
51+
"phpstan/phpstan": "^2.1.40",
52+
"phpstan/phpstan-deprecation-rules": "^2.0.4",
53+
"phpunit/phpunit": "^13.0.5",
54+
"symfony/browser-kit": "^7.4 || ^8.0",
55+
"symplify/easy-coding-standard": "^13.0.4"
5656
},
5757
"config": {
5858
"sort-packages": true
@@ -63,10 +63,10 @@
6363
"@phpstan",
6464
"@phpunit"
6565
],
66-
"cs:dry": "vendor/bin/ecs",
67-
"cs:fix": "vendor/bin/ecs --fix",
68-
"phpstan": "vendor/bin/phpstan analyse --ansi",
69-
"phpunit": "vendor/bin/phpunit --colors=auto"
66+
"cs:dry": "@php vendor/bin/ecs",
67+
"cs:fix": "@php vendor/bin/ecs --fix",
68+
"phpstan": "@php vendor/bin/phpstan analyse --ansi",
69+
"phpunit": "@php vendor/bin/phpunit --colors=auto"
7070
},
7171
"autoload": {
7272
"psr-4": {

docs/form_types.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ If you don't know how to apply a form theme to your forms, [please check Symfony
6161

6262
!!! info
6363

64+
* Changed in v6.0.0: the FileField requires EasyAdmin bundle v5.0.0+.
6465
* Added in v4.5.0: a FileField is available to use with EasyAdmin bundle. Requires EasyAdmin bundle v4.3.3+.
6566
* Added in v4.11.0: `file_type_class` and `file_attr` options.
6667

@@ -73,7 +74,8 @@ See also [File uploads](file_uploads.md).
7374

7475
!!! info
7576

76-
Added in v4.5.0: an ImageField is available to use with EasyAdmin bundle. Requires EasyAdmin bundle v4.3.3+.
77+
* Changed in v6.0.0: the ImageField requires EasyAdmin bundle v5.0.0+.
78+
* Added in v4.5.0: an ImageField is available to use with EasyAdmin bundle. Requires EasyAdmin bundle v4.3.3+.
7779

7880
## Recaptcha type
7981

docs/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ The Leapt Core bundle is a bundle used to help with some repetitive tasks, inclu
1212
- [SEO-related tasks (sitemaps, etc)](sitemaps.md)
1313
- [Twig extensions](twig_extensions.md)
1414
- [Utilities](utilities.md)
15-
- [Validators: PasswordStrength, Recaptcha, Slug](validators.md)
15+
- [Validators: Recaptcha, Slug](validators.md)
1616

1717
If you find a bug or want to add a functionality,
18-
[please create an issue or a pull request on Github](https://github.com/leapt/core-bundle)!
18+
[please create an issue or a pull request on GitHub](https://github.com/leapt/core-bundle)!
1919

2020
## Examples
2121

@@ -29,9 +29,9 @@ If you find a bug or want to add a functionality,
2929

3030
## Installation
3131

32-
This bundle requires PHP 8.2+.
32+
This bundle requires PHP 8.4+.
3333

34-
As the bundle is compatible with Symfony 6.4/7.0+/8.0+ and Symfony Flex, the only thing you have to do
34+
As the bundle is compatible with Symfony 7.4/8.0+ and Symfony Flex, the only thing you have to do
3535
is requiring the package with composer:
3636

3737
```bash

0 commit comments

Comments
 (0)