J7mbo / TorrentPHP

Provides a simple-to-use object oriented interface for interacting with torrent clients.
Other
41 stars 16 forks source link

Can't install your repo #5

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi,

Interesting project, I would like to try it with Deluge but I can't install it.

I have done this:

cd /var/www/html
sudo php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
sudo php -r "if (hash_file('SHA384', 'composer-setup.php') === sudo '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php composer-setup.php
sudo php -r "unlink('composer-setup.php');"
sudo nano composer.json

I have added this inside:

{
"require": {
    "j7mbo/torrent-php": "dev-master" 
}
}

as explained in your Readme

and then:

php composer.phar install 
>>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
    - Installation request for j7mbo/torrent-php dev-master -> satisfiable by j7mbo/torrent-php[dev-master].
    - j7mbo/torrent-php dev-master requires rdlowrey/artax dev-master -> satisfiable by rdlowrey/artax[dev-master] but these conflict with your requirements or minimum-stability.

Can you please help?

Thanks

J7mbo commented 7 years ago

Maybe the PR 2 can help? https://github.com/J7mbo/TorrentPHP/pull/2

Artax was moved / is an old repo

ghost commented 7 years ago

I got this now:


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
    - The requested package amphp/artax dev-master@dev exists as amphp/artax[1.x-dev, 2.0.2, 2.x-dev, 3.x-dev, v0.1.0, v0.3.7, v0.4.0, v0.5.0, v0.5.1, v0.6.0, v0.6.1, v0.6.2, v0.7.0, v0.7.1, v1.0.0, v1.0.0-alpha, v1.0.0-beta, v1.0.0-beta2, v1.0.0-rc1, v1.0.0-rc2, v1.0.0-rc3, v1.0.0-rc4, v1.0.0-rc5, v1.0.0-rc6, v1.0.1, v1.0.2, v1.0.3, v1.0.4, v1.0.5, v1.0.6, v2.0.0, v2.0.1, v2.0.3, v2.0.4, v2.0.5, v2.0.6] but these are rejected by your constraint.
  Problem 2
    - Installation request for j7mbo/torrent-php dev-master -> satisfiable by j7mbo/torrent-php[dev-master].
    - j7mbo/torrent-php dev-master requires rdlowrey/artax dev-master -> satisfiable by rdlowrey/artax[dev-master] but these conflict with your requirements or minimum-stability.

with:

{
    "require": {
        "j7mbo/torrent-php": "dev-master",
        "amphp/artax":"dev-master@dev",
        "digitalnature/php-ref": "*@dev"
    }
}

Which version do you recommand?

the-lazy-fox commented 6 years ago

I have the same issue as this user. Any help here? Thanks

J7mbo commented 6 years ago

@alxlaxv The last part of your message shows you have a problem with your minimum stability, try setting this up in your composer.json