Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 7 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to `initphp/encryption` will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [3.0.0] - 2026-11-22

### Changed

Expand All @@ -15,27 +15,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
PHP-CS-Fixer configuration (`.php-cs-fixer.dist.php`). The source was
reformatted accordingly; there are no behaviour changes.

### Planned for 2.0.0
## [2.0.0] - 2026-05-24

This is the first development entry of the upcoming 2.0 release. The 2.x line is
a deliberate hard reset of the public surface; ciphertexts produced by 1.x cannot
be decrypted by 2.x and vice versa. A migration guide will ship with the final
release.
The 2.x line is a deliberate hard reset of the public surface; ciphertexts
produced by 1.x cannot be decrypted by 2.x and vice versa. See
[`docs/Migration-from-1.x.md`](./docs/Migration-from-1.x.md) for the migration guide.

#### Added
### Added

- Tooling: PHPUnit 10, PHPStan level 8, PHP-CS-Fixer (PSR-12), GitHub Actions CI
matrix across PHP 8.1–8.4, `composer audit` workflow.
- `composer.json` scripts: `test`, `test-coverage`, `phpstan`, `cs-check`,
`cs-fix`, `qa`.
- Package-level `CONTRIBUTING.md`, `SECURITY.md`, `CHANGELOG.md`.

#### Changed
### Changed (breaking)

- **BREAKING:** Minimum PHP version raised to `^8.1`.

#### To be done (tracked, not yet shipped)

- **BREAKING:** New self-describing ciphertext format (versioned header) — v1
ciphertexts will not be readable by 2.x.
- **BREAKING:** Default payload serialization switches from `serialize()`/
Expand Down
4 changes: 2 additions & 2 deletions docs/Migration-from-1.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ need a re-encryption plan before you upgrade.

| | 1.x | 2.x |
| --- | --- | --- |
| PHP | `>=7.4` | `^8.2` |
| PHP | `>=7.4` | `^8.1` in 2.x; `^8.2` from 3.0.0 |

The 2.x source uses `mixed`, `static` return types and `match`. The 2.0.0
release required PHP 8.1; the current line requires PHP 8.2 (see the
release required PHP 8.1; version 3.0.0 requires PHP 8.2 (see the
[changelog](https://github.com/InitPHP/Encryption/blob/main/CHANGELOG.md)).

### Ciphertext format
Expand Down
Loading