I wrote a composer package myself, but always reported the following error during installation

composer require zk/getpic-for-laravel dev-master
. / composer.json has been updated
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 zk/getpic-for-laravel 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/0. for more details.

Read https://getcomposer.org/doc/a. for further common problems.

Installation failed, reverting. / composer.json to its original content.

Php
Apr.23,2021

by default, you have to send your package to packagist before it can be found by composer.


composer.json content and upload to packagist are as follows:


this is github's repo without Synchronize to packagist,. You need to follow the GitHub Service Hook link inside to set up the service

Menu