mercredi 25 novembre 2015

packagist laravel package -composer Could not find package

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": "http://ift.tt/1YtOkTs",
    "license": "MIT",
    "authors": [
        {
            "name": "lakshmajim",
            "email": "lakshmaji9@gmail.com"
        }
    ],
    "require": {
                "php": ">=5.3.0"
    },
    "autoload": {
        "psr-4": {
            "lakshmajim\\testview\\": "src/"
        }
    }
    
    

    }

  • 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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire