defuse / php-encryption

Simple Encryption in PHP.
MIT License
3.78k stars 308 forks source link

New release with the fix for PHP 8 support #500

Closed slawn closed 1 year ago

slawn commented 1 year ago

Now that the fix is in place for the PHP8 - is it possible to get a new release published so that we can grab it from composer? Right now the latest release is from April 2021. Thanks

defuse commented 1 year ago

This is currently only blocking on #508.

defuse commented 1 year ago

Looking at the diff between the last release and master, there's no breaking changes, so the next version number will be v2.4.0.

Edit: Actually, we are changing the type of exception that secureRandom throws when the caller requests 0 octets, but hopefully that's okay.

defuse commented 1 year ago

Rather than build and test the phar with all versions of PHP, I'm only going to support PHP 8.1+ for phar builds and tests. Otherwise I have to pull down older versions of box, depending on the PHP version, which is arguably unnecessary complexity. Barring any future security vulnerabilities, users of old PHP versions that rely on the phar can use the older releases of this library. Remember to mention this in the next release's notes.

defuse commented 1 year ago

v2.4.0 has been released!