web-push-libs / web-push-php

Web Push library for PHP
MIT License
1.69k stars 294 forks source link

installation cannot be performed using php 7.4 #263

Closed francogp closed 4 years ago

francogp commented 4 years ago

NOTE: Please test in a least two browsers (i.e. Chrome and Firefox). This helps with diagnosing problems quicker.

Please confirm the following:

Setup

Please provide the following details, the more info you can provide the better.

Please check that you have installed and enabled these PHP extensions :

Please select any browsers that you are experiencing problems with:

Problem

Trying to install the library I get:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - minishlink/web-push v1.0 requires mdanter/ecc ^0.3.0 -> satisfiable by mdanter/ecc[v0.3.0, v0.3.1, v0.3.2].
    - minishlink/web-push v1.0.1 requires mdanter/ecc ^0.3.0 -> satisfiable by mdanter/ecc[v0.3.0, v0.3.1, v0.3.2].
    - mdanter/ecc v0.3.2 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - mdanter/ecc v0.3.1 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - mdanter/ecc v0.3.0 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - Installation request for minishlink/web-push 1.0.* -> satisfiable by minishlink/web-push[v1.0, v1.0.1].

sudo apt install php7.4-mcrypt does not exists

Expected

Can be installed

Example / Reproduce Case

Try to install it using php 7.4

BR0kEN- commented 4 years ago

The mcrypt is deprecated. Why are you installing 1.0 when 5.* is the latest?