I am learning how to develop extensions.
I have generated a basic framework using flarum/cli.
https://github.com/shebaoting/reward
Then I run the following command
composer require acme/flarum-hello-world *@dev
It fails. The error is:
➜ bbs git:(master) ✗ composer require shebaoting/reward *@dev
./composer.json has been updated
Running composer update shebaoting/reward
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires shebaoting/reward, it could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
What should I do to fix it?
I really like flarum and I would like to learn how to develop flarum extensions, please help me out. Thank you all.