Skip to content

Composer error #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
eyeway1968 opened this issue Dec 4, 2021 · 12 comments
Closed

Composer error #7

eyeway1968 opened this issue Dec 4, 2021 · 12 comments

Comments

@eyeway1968
Copy link

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."

@takielias
Copy link
Owner

Please mention Codeigniter Version and Package version.

@eyeway1968
Copy link
Author

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

@takielias
Copy link
Owner

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

@eyeway1968
Copy link
Author

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.

@takielias
Copy link
Owner

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

@AlexNeises
Copy link

AlexNeises commented Mar 1, 2022

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.

@alfonsotesone
Copy link

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!

@takielias
Copy link
Owner

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.

@aldiku
Copy link

aldiku commented Apr 14, 2022

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

@mdestafadilah
Copy link

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.

@takielias
Copy link
Owner

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

@mdestafadilah
Copy link

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

we waiting for it. nice to hear.

takielias added a commit that referenced this issue Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants