3

I have created package using Laravel.

  • The composer.json file for my package will look like this

    {
    "name": "lakshmajim/testview",
    "description": "hi",
    "keywords": [
        "package"
    ],
    "homepage": "https://github.com/lakshmajim/testview",
    "license": "MIT",
    "authors": [
        {
            "name": "lakshmajim",
            "email": "lakshmaji9@gmail.com"
        }
    ],
    "require": {
                "php": ">=5.3.0"
    },
    "autoload": {
        "psr-4": {
            "lakshmajim\\testview\\": "src/"
        }
    },
    "minimum-stability": "dev"
    

    }

  • then I have pulled to github

  • then I have linked it to Packagist

  • when I am running this composer require lakshmajim/testview it is showing following error message

    [InvalidArgumentException]
    Could not find package lakshmajim/testview at any version for your minimum-stability (stable). Check the package spelling or your minimum-s
    tability

QUESTION: Why I am getting that error message ,when I'm trying to install using composer? How can I successfully run composer require lakshmajim/testview

Lakshmaji
  • 899
  • 2
  • 14
  • 30

1 Answers1

13

it's a release issue you must run

composer require lakshmajim/testview dev-master

you don't have a release yet.

Houssain Amrani
  • 329
  • 2
  • 6