It works in version 5.2.5. Will you add support for current versions? Could you create the requirements section for the first post and add the following commands? The commands are for the Ubuntu server.
sudo apt install php7.4-gmp
composer require minishlink/web-push:5.2.5 -W
composer require minishlink/web-push -W
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
Using version ^6.0 for minishlink/web-push
./composer.json has been updated
Running composer update minishlink/web-push --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- askvortsov/flarum-pwa v2.0.4 conflicts with minishlink/web-push v6.0.3.
- askvortsov/flarum-pwa v2.0.4 conflicts with minishlink/web-push v6.0.2.
- askvortsov/flarum-pwa v2.0.4 conflicts with minishlink/web-push v6.0.1.
- askvortsov/flarum-pwa v2.0.4 conflicts with minishlink/web-push v6.0.0.
- askvortsov/flarum-pwa is locked to version v2.0.4 and an update of this package was not requested.
- Root composer.json requires minishlink/web-push ^6.0 -> satisfiable by minishlink/web-push[v6.0.0, v6.0.1, v6.0.2, v6.0.3].
Installation failed, reverting ./composer.json and ./composer.lock to their original content
composer require minishlink/web-push:5.2.5 -W
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
./composer.json has been updated
Running composer update minishlink/web-push --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Lock file operations: 13 installs, 1 update, 1 removal
- Removing psr/http-client (1.0.1)
- Locking fgrosse/phpasn1 (v2.2.0)
- Downgrading guzzlehttp/guzzle (7.2.0 => 6.5.5)
- Locking minishlink/web-push (v5.2.5)
- Locking paragonie/sodium_compat (v1.14.0)
- Locking spomky-labs/base64url (v2.0.4)
- Locking web-token/jwt-core (v1.3.10)
- Locking web-token/jwt-key-mgmt (v1.3.10)
- Locking web-token/jwt-signature (v1.3.10)
- Locking web-token/jwt-signature-algorithm-ecdsa (v1.3.10)
- Locking web-token/jwt-signature-algorithm-eddsa (v1.3.10)
- Locking web-token/jwt-signature-algorithm-hmac (v1.3.10)
- Locking web-token/jwt-signature-algorithm-none (v1.3.10)
- Locking web-token/jwt-signature-algorithm-rsa (v1.3.10)
- Locking web-token/jwt-util-ecc (v1.3.10)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 13 installs, 1 update, 1 removal
- Removing psr/http-client (1.0.1)
- Installing fgrosse/phpasn1 (v2.2.0): Extracting archive
- Downgrading guzzlehttp/guzzle (7.2.0 => 6.5.5): Extracting archive
- Installing web-token/jwt-signature (v1.3.10): Extracting archive
- Installing web-token/jwt-signature-algorithm-rsa (v1.3.10): Extracting archive
- Installing web-token/jwt-signature-algorithm-none (v1.3.10): Extracting archive
- Installing web-token/jwt-signature-algorithm-hmac (v1.3.10): Extracting archive
- Installing web-token/jwt-signature-algorithm-eddsa (v1.3.10): Extracting archive
- Installing web-token/jwt-signature-algorithm-ecdsa (v1.3.10): Extracting archive
- Installing web-token/jwt-util-ecc (v1.3.10): Extracting archive
- Installing spomky-labs/base64url (v2.0.4): Extracting archive
- Installing web-token/jwt-core (v1.3.10): Extracting archive
- Installing paragonie/sodium_compat (v1.14.0): Extracting archive
- Installing web-token/jwt-key-mgmt (v1.3.10): Extracting archive
- Installing minishlink/web-push (v5.2.5): Extracting archive
6 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
110 packages you are using are looking for funding.
Use the `composer fund` command to find out more!