zendframework / ZFTool

Utility module for maintaining modular Zend Framework 2 applications.
187 stars 102 forks source link

Can't install using composer #115

Closed lkiii closed 9 years ago

lkiii commented 9 years ago

Hello,

I have downloadded zf2 sceleton application and I whant to use it with zftool.

I am using php .\composer.phar require zendframework/zftool:dev-master

But I am getting:Package "zendframework/zftool" listed for update is not installed. Ignoring.

How can I fix this issue?

gianarb commented 9 years ago

hmm are you sure? I have tried this command now and work!

composer require zendframework/zftool:dev-master

lkiii commented 9 years ago

Yes I am sure. I have tried it in clean new folder and it works, but I can't add it to my application.

gianarb commented 9 years ago

mm I don't know, I have tried now this flow

git clone git@github.com/zendframework/ZendSkeletonApplication
cd ZendSkeletonApplication
composer require zendframework/zftool:dev-master

And work.. This is the output

15:09 $ git clone git@github.com:zendframework/ZendSkeletonApplication.git
Cloning into 'ZendSkeletonApplication'...
remote: Counting objects: 2547, done.
remote: Total 2547 (delta 0), reused 0 (delta 0), pack-reused 2547
Ricezione degli oggetti: 100% (2547/2547), 1.54 MiB | 677.00 KiB/s, done.
Risoluzione dei delta: 100% (1109/1109), done.
Checking connectivity... fatto.
✔ /tmp 
15:09 $ cd ZendSkeletonApplication/
✔ /tmp/ZendSkeletonApplication [master|✔] 
15:09 $ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing zendframework/zendxml (1.0.0)
    Loading from cache

  - Installing zendframework/zendframework (2.4.2)
    Downloading: 100%         

zendframework/zendframework suggests installing doctrine/annotations (Doctrine Annotations >=1.0 for annotation features)
zendframework/zendframework suggests installing ircmaxell/random-lib (Fallback random byte generator for Zend\Math\Rand if OpenSSL/Mcrypt extensions are unavailable)
zendframework/zendframework suggests installing ocramius/proxy-manager (ProxyManager 0.5.* to handle lazy initialization of services)
zendframework/zendframework suggests installing zendframework/zendpdf (ZendPdf for creating PDF representations of barcodes)
zendframework/zendframework suggests installing zendframework/zendservice-recaptcha (ZendService\ReCaptcha for rendering ReCaptchas in Zend\Captcha and/or Zend\Form)
Writing lock file
Generating autoload files
✔ /tmp/ZendSkeletonApplication [master|✔] 
15:09 $ composer require zendframework/zftool:dev-master
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing zendframework/zenddiagnostics (v1.0.4)
    Loading from cache

  - Installing zendframework/zftool (dev-master 8bab848)
    Cloning 8bab848834bfc48fef2f4b3e874ddd3760fb9e0d

zendframework/zenddiagnostics suggests installing sensiolabs/security-checker (Required by Check\SecurityAdvisory)
zendframework/zenddiagnostics suggests installing symfony/yaml (Required by Check\YamlFile)
zendframework/zenddiagnostics suggests installing guzzle/http (Required by Check\GuzzleHttpService)
zendframework/zenddiagnostics suggests installing predis/predis (Required by Check\Redis)
zendframework/zenddiagnostics suggests installing videlalvaro/php-amqplib (Required by Check\RabbitMQ)
Writing lock file
Generating autoload files

I have seen this issue can you try to update your composer.phar? :) Thanks..

lkiii commented 9 years ago

First thing I did was updating composer. You are already using composer version 69210d5bc130f8cc9f96f99582a041254d7b9833.

My composer.json before running require zftool:

{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "homepage": "http://framework.zend.com/",
    "require": {
        "zf-commons/zfc-base": "0.*",
        "zf-commons/zfc-user": "0.1.*"
    },
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "~2.4",
        "zendframework/zend-developer-tools": "dev-master",
        "doctrine/doctrine-orm-module": "0.8.0",
        "doctrine/doctrine-module": "0.8.0",
        "zf-commons/zfc-user-doctrine-orm": "dev-master"
    }

}

And I have already checked that issue.

gianarb commented 9 years ago

you have two require node :)

In my opinion you can try to use

{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "homepage": "http://framework.zend.com/",
    "require-dev": {
        "zendframework/zend-developer-tools": "dev-master",
        "zendframework/zftool": "dev-master"
    },
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "~2.4",
        "doctrine/doctrine-orm-module": "0.8.0",
        "doctrine/doctrine-module": "0.8.0",
        "zf-commons/zfc-user": "~1.0",
        "zf-commons/zfc-user-doctrine-orm": "dev-master"
    }
}
lkiii commented 9 years ago

Thank you! I was trying to solve this issue for hours :)

gianarb commented 9 years ago

eheh good! :) Can you close this issue please?

Thanks a lot!