Same as for lavavel :) https://laravelpackage.com/
Creating a Lumen Package
How to create a lumen package our own?
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).
I assume you mean from a local repo folder? Can you show your composer.json file?
{ "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"
}
I mean for the project where you are trying to import (require) it to
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
Yeah sounds good. But to help you I need to see the composer.json for the project you are trying to require the package in.
I think this is the part you are missing: https://laravelpackage.com/02-development-environment.html#importing-the-package-locally
Please or to participate in this conversation.