Webador / SlmQueueBeanstalkd

Beanstalkd adapter for SlmQueue module
Other
10 stars 26 forks source link

Not able to install #48

Closed metanav closed 9 years ago

metanav commented 9 years ago

When I try to install using composer command: composer.phar require "slm/queue-beanstalkd": "0.4.*" I am getting following error:

[InvalidArgumentException]
Could not find package 0.4.* at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability

I changed the minimum-stability to "dev" but still not working. I guess php dependencies are out of date.

bakura10 commented 9 years ago

Strange. Are you sure you did not include an explicit dependency to slmQUEUE on a version prior to 0.4 ? Could you show us your composer.son?

metanav commented 9 years ago

I am using Apigility and want to add slm/queue. Below is the composer.json contents.

{
   "minimum-stability" : "alpha",
    "config": {
        "process-timeout": 5000
    },
    "extra": {
        "branch-alias": {
            "dev-master": "1.0-dev",
            "dev-develop": "1.1-dev"
        }
    },
    "require": {
        "php": ">=5.3.23",
        "zendframework/zendframework": "~2.3",
        "zfcampus/zf-apigility": "~1.0",
        "zfcampus/zf-apigility-documentation": "~1.0",
        "zfcampus/zf-development-mode": "~2.0",
        "zfcampus/zf-apigility-documentation-swagger": "~1.0-dev",
        "doctrine/doctrine-mongo-odm-module": "~0.8",
        "zendframework/zendservice-twitter": "dev-master",
        "zendframework/zendoauth": "dev-master",
        "guzzlehttp/guzzle": "~5.0",
        "guzzlehttp/log-subscriber": "~1.0",
        "guzzlehttp/cache-subscriber": "0.1.*@dev"
    },
    "require-dev": {
        "zendframework/zftool": "dev-master",
        "zendframework/zend-developer-tools": "dev-master",
        "zfcampus/zf-apigility-admin": "~1.0",
        "zfcampus/zf-apigility-welcome": "~1.0",
        "zfcampus/zf-deploy": "~1.0"
    }
}
bakura10 commented 9 years ago

I don't see anything abnormal here. @juriansluiman any idea?

juriansluiman commented 9 years ago
vagrant@test:~$ php composer.phar require slm/queue-beanstalkd:0.4.*
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing pda/pheanstalk (v3.0.2)
    Loading from cache

  - Installing slm/queue (0.4.1)
    Loading from cache

  - Installing slm/queue-beanstalkd (v0.4.1)
    Loading from cache

slm/queue suggests installing slm/queue-sqs (If you are using Amazon SQS)
slm/queue suggests installing slm/queue-doctrine (If you are using Doctrine ORM)
Writing lock file
Generating autoload files

@metanav could you retry? I don't see any problem with the composer.json you posted and the require command I executed to load slm/queue-beanstalkd.

metanav commented 9 years ago

Voila! It worked! Thank you.

I think composer had some problem with the double quotes around package and version name or my bad I copied it from readme.