sakthivel's avatar

Creating a Lumen Package

How to create a lumen package our own?

0 likes
7 replies
sakthivel's avatar

I try to publish my laravel package. but I am getting this error?

$ composer require test/test_one

[InvalidArgumentException] Could not find a matching version of package test/test_one. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev).

Sinnbeck's avatar

I assume you mean from a local repo folder? Can you show your composer.json file?

1 like
sakthivel's avatar

{ "name": "tests/test_one", "description": "test", "keywords": [ "test", "test_one" ], "homepage": "https://github.com/test/test_one", "license": "MIT", "type": "library", "authors": [ { "name": "raja", "email": "[email protected]", "role": "Developer" } ], "require": { "php": "^7.1", "illuminate/support": "^6.0" }, "require-dev": { "orchestra/testbench": "^4.0", "phpunit/phpunit": "^8.0" }, "autoload": { "psr-4": { "Test\TestOne\": "src" } }, "autoload-dev": { "psr-4": { "Test\TestOne\Tests\": "tests" } }, "scripts": { "test": "vendor/bin/phpunit", "test-coverage": "vendor/bin/phpunit --coverage-html coverage"

},
"config": {
    "sort-packages": true
},
"extra": {
    "laravel": {
        "providers": [
            "Test\TestOne\TestOneServiceProvider"
        ],
        "aliases": {
            "TestOne": "Test\TestOne\TestOneFacade"
        }
    }
},
"minimum-stability": "dev"

}

Sinnbeck's avatar

I mean for the project where you are trying to import (require) it to

sakthivel's avatar

Hi SinnBeck

thanks for your sending the reference URL it is very useful for creating a package.

I am trying my localhost.

  • Create a new Package
  • I have to use the package for multiple application

Thank You for your support

Please or to participate in this conversation.