digitalkaoz / yuml-php

a php adapater for http://yuml.me
http://digitalkaoz.github.com/yuml-php/
MIT License
32 stars 4 forks source link

Installation with composer issue #7

Closed seyfer closed 10 years ago

seyfer commented 10 years ago
 Problem 1
    - digitalkaoz/yuml-php 1.0.2 requires andrewsville/php-token-reflection dev-develop@dev -> no matching package found.
    - digitalkaoz/yuml-php 1.0.1 requires andrewsville/php-token-reflection dev-develop@dev -> no matching package found.
    - digitalkaoz/yuml-php 1.0.0 requires andrewsville/php-token-reflection dev-develop@dev -> no matching package found.
    - Installation request for digitalkaoz/yuml-php 1.* -> satisfiable by digitalkaoz/yuml-php[1.0.0, 1.0.1, 1.0.2].

My composer

"require" : {
    "php" : ">=5.4",
    "zendframework/zendframework" : "2.3.*",
    "phpunit/phpunit" : "4.*",
    "neilime/zf2-twb-bundle" : "2.*@stable",
    "doctrine/common" : "2.*",
    "doctrine/orm" : "2.*",
    "doctrine/doctrine-module" : "dev-master",
    "doctrine/doctrine-orm-module" : "dev-master",
    "doctrine/migrations" : "1.0.*@dev",
    "zfcampus/zf-development-mode" : "dev-master",
    "psr/log" : "1.0.*@dev",
    "seyfer/zend-psr-logger" : "dev-master",
    "bushbaby/doctrine-reconnect" : "dev-master",
    "zfcampus/zf-apigility" : "dev-master",
    "zfcampus/zf-apigility-documentation" : "dev-master"
  },
  "repositories" : [ {
    "type" : "composer",
    "url" : "https://packages.zendframework.com/"
  } ],
  "require-dev" : {
    "zendframework/zend-developer-tools" : "dev-master",
    "bjyoungblood/BjyProfiler" : "dev-master",
    "zendframework/zftool" : "dev-master",
    "zendframework/zenddiagnostics" : "1.*",
    "digitalkaoz/yuml-php" : "1.*",
    "zfcampus/zf-apigility-admin" : "dev-master",
    "zfcampus/zf-apigility-welcome" : "dev-master",
    "zfcampus/zf-deploy" : "dev-master"
  },
digitalkaoz commented 10 years ago

ah, yeah i use a fork of the token reflection library until my patches are merged:

try this in your composer.json

    "repositories" : [
        {
            "type" : "vcs",
            "url" : "https://github.com/digitalkaoz/PHP-Token-Reflection"
        }
    ],
seyfer commented 10 years ago

Not help.

Just remove yuml from the project, becoause always installation problems with composer, solve it please, or not publish composer package.

digitalkaoz commented 10 years ago

oh, it'll definitly work. you should learn some composer details! its probably because of your minimum-stability setting, it doenst allow dev packages.

so you have 2 choices:

include the following in your composer.json

"require-dev" : {
  "digitalkaoz/yuml-php" : "~1.0.2",
  "andrewsville/php-token-reflection":    "dev-develop@dev"
},
"repositories" : [
        {
            "type" : "vcs",
            "url" : "https://github.com/digitalkaoz/PHP-Token-Reflection"
        }
    ],

or set the minimum-stability to dev (not preferred)

btw, the recommend way of using this lib is the phar way ;)

seyfer commented 10 years ago

First not work. Composer not found dev-develop@dev in vcs repo. Second - i'm already use many packages in dev-master, but stability dev for production no good idea, you right.

So, phar is working for me. But why there is composer package which has no way to install? I think you should remove composer package and recommend only phar for using or make composer package installation work without problems.

digitalkaoz commented 10 years ago

Oh it definitly works, what is the exact output if you include the custom repo, and the custom package? Am 19.08.2014 09:14 schrieb "Oleg Abrazhaev" notifications@github.com:

First not work. Composer not found dev-develop@dev in vcs repo. Second - i'm already use many packages in dev-master, but stability dev for production no good idea, you right.

So, phar is woring for me. But why there is composer package wich has no way to install? I think you should remove composer package and recommend only phar for using or make composer package installation work without problems.

— Reply to this email directly or view it on GitHub https://github.com/digitalkaoz/yuml-php/issues/7#issuecomment-52598033.

seyfer commented 10 years ago

The same, as in first post.

seyfer commented 10 years ago
"digitalkaoz/yuml-php": "~1.0.2",
        "andrewsville/php-token-reflection": "dev-develop@dev"

Work! :) Please add some wiki or readme for how to install with composer, what repos to include. And issue may be closed. Thank you!

digitalkaoz commented 10 years ago

Your welcome :)

I`ll add a note in the readme ;) Am 19.08.2014 09:58 schrieb "Oleg Abrazhaev" notifications@github.com:

"digitalkaoz/yuml-php": "~1.0.2", "andrewsville/php-token-reflection": "dev-develop@dev"

Work! :) Please add some wiki or readme for how to install with composer, what repos to include. And issue may be closed. Thank you!

— Reply to this email directly or view it on GitHub https://github.com/digitalkaoz/yuml-php/issues/7#issuecomment-52601568.