Composer Require: Could not find package
The reason behind this error is your git repo does not contain any tags.
Add tags like
git tag -a 1.0.0
git push --tags
Now you can use
composer require digitaldonkey/ethereum-php
Explanation If we see composer.json, you will find require tag which contains packages along with their versions. e.g.
"require": {
"php": ">=7.0.0",
"afrazahmad/clear-cached-data": "^1.0"
},
So versions or tags are important. Hope it helps.
If you are adding to a different folder other than the project, you get the same error. delete your previous installation and try cd project_name.
Open your composer.json
if that package has no stable version then you have to change your minimum-stability
to dev
.
https://getcomposer.org/doc/04-schema.md#minimum-stability