Skip to content

Commit 5369a9b

Browse files
Release 2.0.0: PHP 8.2+ and Symfony 7+ minimum requirements
Raise platform constraints to PHP >= 8.2 and Symfony ^7 || ^8, update CI and docs, drop symfony6 from the demo aggregator, and fix demo update-deps Makefiles. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 231257d commit 5369a9b

45 files changed

Lines changed: 4941 additions & 2868 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,9 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
os: [ubuntu-latest]
21-
php: ['8.1', '8.2', '8.3', '8.4', '8.5']
22-
symfony: ['6.4', '7.0', '7.4', '8.0', '8.1']
21+
php: ['8.2', '8.3', '8.4', '8.5']
22+
symfony: ['7.0', '7.4', '8.0', '8.1']
2323
exclude:
24-
# PHP 8.1 doesn't support Symfony 7.0+ (requires PHP 8.2+) and Symfony 8.0, 8.1 (requires PHP 8.4+)
25-
- php: '8.1'
26-
symfony: '7.0'
27-
- php: '8.1'
28-
symfony: '7.4'
29-
- php: '8.1'
30-
symfony: '8.0'
31-
- php: '8.1'
32-
symfony: '8.1'
3324
# PHP 8.2 and 8.3 don't support Symfony 8.0, 8.1 (requires PHP 8.4+)
3425
- php: '8.2'
3526
symfony: '8.0'

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Password Toggle Bundle
22

3-
[![CI](https://github.com/nowo-tech/PasswordToggleBundle/actions/workflows/ci.yml/badge.svg)](https://github.com/nowo-tech/PasswordToggleBundle/actions/workflows/ci.yml) [![Packagist Version](https://img.shields.io/packagist/v/nowo-tech/password-toggle-bundle.svg?style=flat)](https://packagist.org/packages/nowo-tech/password-toggle-bundle) [![Packagist Downloads](https://img.shields.io/packagist/dt/nowo-tech/password-toggle-bundle.svg)](https://packagist.org/packages/nowo-tech/password-toggle-bundle) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![PHP](https://img.shields.io/badge/PHP-8.1%2B-777BB4?logo=php)](https://php.net) [![Symfony](https://img.shields.io/badge/Symfony-6.0%2B%20%7C%207.4%2B%20%7C%208.0%20%7C%208.1%2B-000000?logo=symfony)](https://symfony.com)
3+
[![CI](https://github.com/nowo-tech/PasswordToggleBundle/actions/workflows/ci.yml/badge.svg)](https://github.com/nowo-tech/PasswordToggleBundle/actions/workflows/ci.yml) [![Packagist Version](https://img.shields.io/packagist/v/nowo-tech/password-toggle-bundle.svg?style=flat)](https://packagist.org/packages/nowo-tech/password-toggle-bundle) [![Packagist Downloads](https://img.shields.io/packagist/dt/nowo-tech/password-toggle-bundle.svg)](https://packagist.org/packages/nowo-tech/password-toggle-bundle) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![PHP](https://img.shields.io/badge/PHP-8.2%2B-777BB4?logo=php)](https://php.net) [![Symfony](https://img.shields.io/badge/Symfony-7.0%2B%20%7C%208.0%2B-000000?logo=symfony)](https://symfony.com)
44

55
> **Found this useful?** Give it a star on GitHub! It helps us maintain and improve the project.
66
@@ -141,8 +141,8 @@ When `toggle` is `false`, the field renders as a standard password input without
141141

142142
## Requirements
143143

144-
- PHP >= 8.1, < 8.6
145-
- Symfony >= 6.0 || >= 7.0 || >= 8.0
144+
- PHP >= 8.2, < 8.6
145+
- Symfony >= 7.0 || >= 8.0
146146
- **Symfony UX Icons** `^2.0 || ^3.0` and **symfony/http-client** (same Symfony major) — **required for the default Twig template** (`ux_icon()`). Listed as `composer suggest` on the bundle; Symfony Flex adds both via the recipe. Without Flex:
147147

148148
```bash
@@ -203,9 +203,8 @@ Example custom styles:
203203

204204
## Demo Projects
205205

206-
The bundle includes four demo projects demonstrating usage with different Symfony and PHP versions:
206+
The bundle includes three demo projects demonstrating usage with different Symfony and PHP versions:
207207

208-
- **Symfony 6.4 Demo** (PHP 8.2) - Port 8001 (default, configurable via `.env`)
209208
- **Symfony 7.0 Demo** (PHP 8.2) - Port 8001 (default, configurable via `.env`)
210209
- **Symfony 8.0 Demo** (PHP 8.4) - Port 8001 (default, configurable via `.env`)
211210
- **Symfony 8.0 Demo with PHP 8.5** - Port 8001 (default, configurable via `.env`)
@@ -233,12 +232,10 @@ Or start any other demo:
233232

234233
```bash
235234
# Using specific commands
236-
make up-symfony6 # Symfony 6.4
237235
make up-symfony8 # Symfony 8.0
238236
make up-symfony8-php85 # Symfony 8.0 with PHP 8.5
239237
240238
# Or using generic commands with demo name
241-
make up symfony6 # Symfony 6.4
242239
make up symfony8 # Symfony 8.0
243240
make up symfony8-php85 # Symfony 8.0 with PHP 8.5
244241
```
@@ -315,10 +312,9 @@ composer cs-fix
315312

316313
The bundle uses GitHub Actions for continuous integration:
317314

318-
- **Tests**: Runs on PHP 8.1, 8.2, 8.3, 8.4, and 8.5 with Symfony 6.4, 7.0, and 8.0
319-
- PHP 8.1: Symfony 6.4 only (Symfony 7.0+ requires PHP 8.2+, Symfony 8.0 requires PHP 8.4+)
320-
- PHP 8.2 and 8.3: Symfony 6.4 and 7.0 (Symfony 8.0 requires PHP 8.4+)
321-
- PHP 8.4 and 8.5: All Symfony versions (6.4, 7.0, 8.0)
315+
- **Tests**: Runs on PHP 8.2, 8.3, 8.4, and 8.5 with Symfony 7.0, 7.4, 8.0, and 8.1
316+
- PHP 8.2 and 8.3: Symfony 7.0 and 7.4 (Symfony 8.0+ requires PHP 8.4+)
317+
- PHP 8.4 and 8.5: All supported Symfony versions (7.0, 7.4, 8.0, 8.1)
322318
- **Code Style**: Automatically fixes code style on push to main/master
323319
- **Code Style Check**: Validates code style on pull requests
324320
- **Coverage**: Validates ≥95% code coverage (see `MIN_COVERAGE` in CI)

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"toggle",
1212
"visibility"
1313
],
14-
"homepage": "https://github.com/nowo-tech/password-toggle-bundle",
14+
"homepage": "https://github.com/nowo-tech/PasswordToggleBundle",
1515
"support": {
16-
"issues": "https://github.com/nowo-tech/password-toggle-bundle/issues",
17-
"source": "https://github.com/nowo-tech/password-toggle-bundle"
16+
"issues": "https://github.com/nowo-tech/PasswordToggleBundle/issues",
17+
"source": "https://github.com/nowo-tech/PasswordToggleBundle"
1818
},
1919
"authors": [
2020
{
@@ -29,10 +29,10 @@
2929
}
3030
],
3131
"require": {
32-
"php": ">=8.1 <8.6",
33-
"symfony/form": "^6.0 || ^7.0 || ^8.0",
34-
"symfony/framework-bundle": "^6.0 || ^7.0 || ^8.0",
35-
"symfony/twig-bundle": "^6.0 || ^7.0 || ^8.0"
32+
"php": ">=8.2 <8.6",
33+
"symfony/form": "^7.0 || ^8.0",
34+
"symfony/framework-bundle": "^7.0 || ^8.0",
35+
"symfony/twig-bundle": "^7.0 || ^8.0"
3636
},
3737
"suggest": {
3838
"symfony/ux-icons": "Required for the default toggle widget icons (ux_icon). Install together with symfony/http-client unless you override the form theme.",
@@ -45,12 +45,12 @@
4545
"phpstan/phpstan": "^2.0",
4646
"phpstan/phpstan-symfony": "^2.0",
4747
"phpstan/phpstan-phpunit": "^2.0",
48-
"symfony/yaml": "^6.0 || ^7.0 || ^8.0",
49-
"symfony/http-kernel": "^6.4 || ^7.0 || ^8.0",
50-
"symfony/console": "^6.4 || ^7.0 || ^8.0",
51-
"symfony/dependency-injection": "^6.4 || ^7.0 || ^8.0",
48+
"symfony/yaml": "^7.0 || ^8.0",
49+
"symfony/http-kernel": "^7.0 || ^8.0",
50+
"symfony/console": "^7.0 || ^8.0",
51+
"symfony/dependency-injection": "^7.0 || ^8.0",
5252
"symfony/ux-icons": "^2.0 || ^3.0",
53-
"symfony/http-client": "^6.4 || ^7.0 || ^8.0",
53+
"symfony/http-client": "^7.0 || ^8.0",
5454
"psr/log": "^3.0"
5555
},
5656
"archive": {

0 commit comments

Comments
 (0)