romainrg / rabbitmq_client

CodeIgniter Library used to easilly interract with RabbitMQ 🐰❤
GNU General Public License v3.0
15 stars 7 forks source link

Unable to install the library using composer #1

Open brisingr123 opened 5 years ago

brisingr123 commented 5 years ago

Hi.

I am using CI 3.1.9. when I try to install using composer, I get the following error:

Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

Any help on this is much appreciated. Thanks

romainrg commented 5 years ago

Hello @brisingr123

Can you show me your composer.json file ?

Regards

brisingr123 commented 5 years ago

{ "description": "The CodeIgniter framework", "name": "codeigniter/framework", "type": "project", "homepage": "https://codeigniter.com", "license": "MIT", "support": { "forum": "http://forum.codeigniter.com/", "wiki": "https://github.com/bcit-ci/CodeIgniter/wiki", "irc": "irc://irc.freenode.net/codeigniter", "source": "https://github.com/bcit-ci/CodeIgniter" }, "require": { "php": ">=5.2.4", "aws/aws-sdk-php": "^3.66", "marcelxyz/php-xml-digital-signature": "^1.0", "drewm/mailchimp-api": "^2.5", }, "suggest": { "paragonie/random_compat": "Provides better randomness in PHP 5.x" }, "require-dev": { "mikey179/vfsStream": "1.1.*" } }

I am using the command composer require romainrg/rabbitmq_client

romainrg commented 5 years ago

Can you try to run composer update command and run the require command again ?

brisingr123 commented 5 years ago

Just tried. Same error :(

ekariz commented 5 years ago

how did you sort this error? i got the same error

matdennoigi commented 5 years ago

Add 'version: 3.1' to composer.json should resolve it:

{ "description": "The CodeIgniter framework", "name": "codeigniter/framework", "type": "project", "homepage": "https://codeigniter.com", "license": "MIT", "version": "3.1", "support": { "forum": "http://forum.codeigniter.com/", "wiki": "https://github.com/bcit-ci/CodeIgniter/wiki", "slack": "https://codeigniterchat.slack.com", "source": "https://github.com/bcit-ci/CodeIgniter" }, "require": { "php": ">=5.3.7", "romainrg/rabbitmq_client": "^6.2" }, "suggest": { "paragonie/random_compat": "Provides better randomness in PHP 5.x" }, "require-dev": { "mikey179/vfsStream": "1.1.", "phpunit/phpunit": "4. || 5.*" } }

minhtanle commented 4 years ago

Add 'version: 3.1' to composer.json should resolve it:

{ "description": "The CodeIgniter framework", "name": "codeigniter/framework", "type": "project", "homepage": "https://codeigniter.com", "license": "MIT", "version": "3.1", "support": { "forum": "http://forum.codeigniter.com/", "wiki": "https://github.com/bcit-ci/CodeIgniter/wiki", "slack": "https://codeigniterchat.slack.com", "source": "https://github.com/bcit-ci/CodeIgniter" }, "require": { "php": ">=5.3.7", "romainrg/rabbitmq_client": "^6.2" }, "suggest": { "paragonie/randomcompat": "Provides better randomness in PHP 5.x" }, "require-dev": { "mikey179/vfsStream": "1.1.", "phpunit/phpunit": "4._ || 5.*" } }

Add "version": "3.1", .... "romainrg/rabbitmq_client": "^6.2" ...

into composer.json

It works!!!!!!!!!!!!!!