Skip to content

Commit

Permalink
feature #1202 [3.x] Remove support for Symfony <6.4 and PHP <8.2 (cha…
Browse files Browse the repository at this point in the history
…lasr)

This PR was merged into the 3.x branch.

Discussion
----------

[3.x] Remove support for Symfony <6.4 and PHP <8.2

The 3.0 version will require PHP 8.2 and Symfony 6.4 as minimum versions.
As of the next 2.x release, the 2.x branch will still be maintained but receive only bugfixes.

Commits
-------

f297d09 [3.x] Remove support for Symfony <6.4 and PHP <8.2
  • Loading branch information
chalasr committed Feb 4, 2024
2 parents bf45073 + f297d09 commit ae00776
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 53 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,18 @@ jobs:
fail-fast: false
matrix:
include:
# Lowest Deps
- php: 8.1
symfony: 5.4.*
composer-flags: '--prefer-stable --prefer-lowest'
can-fail: false
# LTS with latest stable PHP
# Lowest deps
- php: 8.2
symfony: 5.4.*
composer-flags: '--prefer-stable'
symfony: 6.4.*
can-fail: false
# Stable Symfony branches
- php: 8.2
symfony: 6.2.*
composer-flags: '--prefer-stable'
# LTS with last stable PHP
- php: 8.3
symfony: 6.4.*
can-fail: false
# Development Symfony branches
# Stable Symfony branches
- php: 8.3
symfony: 6.3.*@dev
composer-flags: ''
can-fail: true
symfony: 7.0.*
can-fail: false

name: "PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}"

Expand All @@ -54,14 +46,6 @@ jobs:
php-version: "${{ matrix.php }}"
tools: "composer:v2,flex"

- name: "Set Composer stability"
if: "matrix.symfony == '6.3.*@dev'"
run: "composer config minimum-stability dev"

- name: "Install api-platform/core"
if: "matrix.symfony == '6.2.*' || matrix.symfony == '6.3.*@dev'"
run: "composer require --dev --no-update api-platform/core:^3.0"

- name: "Install dependencies"
run: "composer update ${{ matrix.composer-flags }} --prefer-dist"
env:
Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/web-token-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,16 @@ jobs:
matrix:
include:
# Lowest deps
- php: 8.1
symfony: 5.4.*
- php: 8.2
symfony: 6.4.*
can-fail: false
# LTS with latest stable PHP
# LTS with last stable PHP
- php: 8.3
symfony: 6.4.*
can-fail: false
# Stable Symfony branches
- php: 8.1
symfony: 6.3.*
can-fail: false
- php: 8.2
symfony: 6.4.*
- php: 8.3
symfony: 7.0.*
can-fail: false

name: "PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}"
Expand All @@ -49,11 +46,6 @@ jobs:
php-version: "${{ matrix.php }}"
tools: "composer:v2,flex"

- name: "Remove symfony/security-guard"
if: "matrix.symfony == '6.3.*' || matrix.symfony == '6.4.*' || matrix.symfony == '7.0.*'"
run: "composer remove --dev --no-update symfony/security-guard"


- name: "Require web-token/*"
run: |
composer require --dev --no-update web-token/jwt-bundle:"^3.0.6"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LexikJWTAuthenticationBundle

This bundle provides JWT (Json Web Token) authentication for your Symfony API.

It is compatible (and tested) with PHP 7.1+ on Symfony 4.x, 5.x, 6.x and 7.x.
It is compatible (and tested) with PHP > 8.2 and Symfony > 6.4.

Documentation
-------------
Expand Down
2 changes: 1 addition & 1 deletion Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Getting started
Prerequisites
-------------

This bundle requires Symfony 5.4+ and the openssl extension.
This bundle requires Symfony 6.4+ and ext-openssl.

**Protip:** Though the bundle doesn't enforce you to do so, it is highly
recommended to use HTTPS.
Expand Down
29 changes: 15 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,30 @@
}
],
"require": {
"php": ">=8.1",
"php": ">=8.2",
"ext-openssl": "*",
"lcobucci/jwt": "^5.0",
"lcobucci/clock": "^3.0",
"symfony/config": "^6.4|^7.0",
"symfony/dependency-injection": "^5.4|^6.4|^7.0",
"symfony/dependency-injection": "^6.4|^7.0",
"symfony/deprecation-contracts": "^2.4|^3.0",
"symfony/event-dispatcher": "^5.4|^6.4|^7.0",
"symfony/http-foundation": "^5.4|^6.4|^7.0",
"symfony/http-kernel": "^5.4|^6.4|^7.0",
"symfony/property-access": "^5.4|^6.4|^7.0",
"symfony/security-bundle": "^5.4|^6.4|^7.0",
"symfony/event-dispatcher": "^6.4|^7.0",
"symfony/http-foundation": "^6.4|^7.0",
"symfony/http-kernel": "^6.4|^7.0",
"symfony/property-access": "^6.4|^7.0",
"symfony/security-bundle": "^6.4|^7.0",
"symfony/translation-contracts": "^1.0|^2.0|^3.0"
},
"require-dev": {
"symfony/browser-kit": "^5.4|^6.4|^7.0",
"symfony/console": "^5.4|^6.4|^7.0",
"symfony/dom-crawler": "^5.4|^6.4|^7.0",
"symfony/filesystem": "^5.4|^6.4|^7.0",
"symfony/framework-bundle": "^5.4|^6.4|^7.0",
"api-platform/core": "^3.0",
"symfony/browser-kit": "^6.4|^7.0",
"symfony/console": "^6.4|^7.0",
"symfony/dom-crawler": "^6.4|^7.0",
"symfony/filesystem": "^6.4|^7.0",
"symfony/framework-bundle": "^6.4|^7.0",
"symfony/phpunit-bridge": "^6.4|^7.0",
"symfony/var-dumper": "^5.4|^6.4|^7.0",
"symfony/yaml": "^5.4|^6.4|^7.0"
"symfony/var-dumper": "^6.4|^7.0",
"symfony/yaml": "^6.4|^7.0"
},
"suggest": {
"gesdinet/jwt-refresh-token-bundle": "Implements a refresh token system over Json Web Tokens in Symfony",
Expand Down

0 comments on commit ae00776

Please sign in to comment.