codeigniter4-websocket icon indicating copy to clipboard operation
codeigniter4-websocket copied to clipboard

Composer error

Open eyeway1968 opened this issue 4 years ago • 9 comments

I am trying to install the library with Composer but I get the following error"[InvalidArgumentException] Could not find a version of package takielias/codeigniter4-websocket matching your minimum-stability (stable). Requ ire it with an explicit version constraint allowing its desired stability."

eyeway1968 avatar Dec 04 '21 11:12 eyeway1968

Please mention Codeigniter Version and Package version.

takielias avatar Dec 04 '21 11:12 takielias

Codeigniter version 4.1.1 . With "Package version" what you mean?

eyeway1968 avatar Dec 04 '21 12:12 eyeway1968

I have checked CI v 4.1.5 it works fine. Can you please explain the scenario?

takielias avatar Dec 04 '21 12:12 takielias

I clone your repo to a new folder on my PC, I navigate to this folder and run " composer require takielias/codeigniter4-websocket @dev" And I get the above error message.

eyeway1968 avatar Dec 04 '21 15:12 eyeway1968

Please install fresh CI 4 and use composer require takielias/codeigniter4-websocket @dev

takielias avatar Dec 05 '21 01:12 takielias

The issue is if you're using PHP 8, despite the repo saying it works for PHP 7+, it can't be installed with PHP 8.

Here's the error I'm receiving:

[InvalidArgumentException]
Package takielias/codeigniter4-websocket at version @dev has requirements incompatible with your PHP version, PHP extensions and Composer version:
  - takielias/codeigniter4-websocket dev-master requires php ^7.2 which does not match your installed version 8.0.15.

AlexNeises avatar Mar 01 '22 22:03 AlexNeises

The issue is if you're using PHP 8, despite the repo saying it works for PHP 7+, it can't be installed with PHP 8.

Here's the error I'm receiving:

[InvalidArgumentException]
Package takielias/codeigniter4-websocket at version @dev has requirements incompatible with your PHP version, PHP extensions and Composer version:
  - takielias/codeigniter4-websocket dev-master requires php ^7.2 which does not match your installed version 8.0.15.

Same problem here!

alfonsotesone avatar Mar 02 '22 20:03 alfonsotesone

The issue is if you're using PHP 8, despite the repo saying it works for PHP 7+, it can't be installed with PHP 8.

Here's the error I'm receiving:

[InvalidArgumentException]
Package takielias/codeigniter4-websocket at version @dev has requirements incompatible with your PHP version, PHP extensions and Composer version:
  - takielias/codeigniter4-websocket dev-master requires php ^7.2 which does not match your installed version 8.0.15.

Got it. Thanks for the issue. I need time to fix it for PHP 8.0. Any PR would be appreciated.

takielias avatar Mar 06 '22 05:03 takielias

I have successfully installed this websocket library on Codeigniter 4.1.9 and PHP 8.1 using : composer require takielias/codeigniter4-websocket @dev --ignore-platform-req=php

aldiku avatar Apr 14 '22 03:04 aldiku

I have successfully installed this websocket library on Codeigniter 4.1.9 and PHP 8.1 using : composer require takielias/codeigniter4-websocket @dev --ignore-platform-req=php

it's work, but when running composer update we must remove line this before running update.

mdestafadilah avatar Jan 01 '24 19:01 mdestafadilah

I'm going to release a new version for PHP 8

takielias avatar Jan 02 '24 03:01 takielias

I'm going to release a new version for PHP 8

we waiting for it. nice to hear.

mdestafadilah avatar Jan 02 '24 20:01 mdestafadilah