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": "[email protected]"
        }
    ],
    "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

1 Answer 1

13

it's a release issue you must run

composer require lakshmajim/testview dev-master

you don't have a release yet.

5
  • How can I made it to release??
    – Lakshmaji
    Nov 26, 2015 at 6:22
  • i'ts simple, go ahead to your repository on github and make release. Nov 26, 2015 at 17:42
  • 1
    check this out How To make a release Nov 26, 2015 at 17:42
  • Thank you Houssain
    – Lakshmaji
    Nov 27, 2015 at 6:39
  • 1
    Upvote for you @HoussainAmrani. Thank you very much !! Spent 4 hours to understand I had to do a release !!!
    – w3spi
    Dec 11, 2015 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.