I have a gitlab installation for my organization. To standardize, the frameworks and development process we'd like to make the use of our own packagist installation on our server.
The thing that is confusing me, is when I have to submit a package which is on a repo of gitlab, it requires authentication. I know while including a package in composer.json
I can put repo, username and password so that it can read package from there. or while I am creating a project:
composer create-project vendor/name path --repository-url=http://user:password@my.gitlab.com/myrepo/package.git
If that is true, do we really need packagist? if yes then what would be the best way to setup this. I'd appreciate if you guys also tell me how the package submission on packagist(our own hosted) will work.