unreal4u / telegram-api

Complete async capable Telegram bot API implementation for PHP7
https://github.com/unreal4u/telegram-api/wiki
MIT License
784 stars 172 forks source link

installing use composer: Package amphp/artax is abandoned #118

Open Theolodewijk opened 4 years ago

Theolodewijk commented 4 years ago

Used composer for installation get the follow warning message

Package amphp/artax is abandoned, you should avoid using it. Use amphp/http-client instead.

unreal4u commented 4 years ago

Hi and thanks for the issue.

I will be developing in this library this wednesday so I can pick it up then as this seems an easy fix.

unreal4u commented 4 years ago

Mm, this is a tricky one as the minimal required PHP version is 7.2 for this new package. I'm all in for supporting new PHP versions, but this would break the current installations that still use old PHP versions.

I will leave this for v4 of this library, thanks!

kelunik commented 4 years ago

@unreal4u Composer will prevent people running older versions from installing the newer version based on amphp/http-client. I've worked around it with a hack for now: https://github.com/kelunik/mellon/commit/0c05ef92ba1b957e469230ee6d703f5705013c93#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780R31-R32

zakharenka commented 3 years ago

Hi @unreal4u, I have a problem with using amphp/http-client and amphp/artax (in this library) both.

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

  Problem 1
    - amphp/artax v3.0.9 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.8 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.7 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.6 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.5 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.4 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.3 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.2 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.14 requires amphp/file ^0.2 || ^0.3 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4, v0.3.0, v0.3.1, v0.3.2, v0.3.3, v0.3.4, v0.3.5, v0.3.x-dev] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.13 requires amphp/file ^0.2 || ^0.3 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4, v0.3.0, v0.3.1, v0.3.2, v0.3.3, v0.3.4, v0.3.5, v0.3.x-dev] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.12 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.11 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.10 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.1 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - amphp/artax v3.0.0 requires amphp/file ^0.2 -> satisfiable by amphp/file[v0.2.0, v0.2.1, v0.2.2, v0.2.3, v0.2.4] but these conflict with your requirements or minimum-stability.
    - unreal4u/telegram-api v3.6.0 requires amphp/artax ^3 -> satisfiable by amphp/artax[v3.0.0, v3.0.1, v3.0.10, v3.0.11, v3.0.12, v3.0.13, v3.0.14, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.0.8, v3.0.9].
    - Installation request for unreal4u/telegram-api ^3.6 -> satisfiable by unreal4u/telegram-api[v3.6.0].

My composer require:

  "require": {
    "ext-json": "*",
    "ext-mbstring": "*",
    "sunra/php-simple-html-dom-parser": "^1.5",
    "concrete5/dependency-patches": "^1.3.0",
    "amphp/http-client": "^4.4",
    "amphp/http-client-cookies": "^1.0",
    "amphp/file": "^1.0",
    "amphp/log": "^1.1",
    "unreal4u/telegram-api": "^3.6"
  },