I am attempting to set up the PHP bitwasp library from the github repository:
The installing instructions suggest I simply execute:
$ composer require bitwasp/bitcoin
I do have
composer installed but I am getting the following error message:
- Installation request for bitwasp/bitcoin dev-master -> satisfiable by bitwasp/bitcoin[dev-master].
- Can only install one of: bitwasp/bitcoin[v0.0.29.1, dev-master].
- Installation request for bitwasp/bitcoin v0.0.29.1 -> satisfiable by bitwasp/bitcoin[v0.0.29.1].
I do not practice PHP full time so I lack the experience of installing packages in that language and using
composer. I would be grateful if someone could point me in the right direction.
EDIT The suggestion has been made that the package is already installed. However, the following code sample which I got from another thread:
<?php // failing to install bitwasp use BitWasp\Bitcoin\Bitcoin; use BitWasp\Bitcoin\Address; use BitWasp\Bitcoin\Key\PrivateKeyFactory; $network = Bitcoin::getNetwork(); $privateKey = PrivateKeyFactory::create(true); $publicKey = $privateKey->getPublicKey(); $address = $publicKey->getAddress(); ?>
is giving me
PHP Fatal error: Class 'BitWasp\Bitcoin\Bitcoin' not found.