S
S
shasoft2019-10-12 21:17:32
GitHub
shasoft, 2019-10-12 21:17:32

How can I automatically host a package on https://packagist.org?

How can I automatically register a package on https://packagist.org/ ?
I would like to create a repository on github with one command, upload data there, register the package and immediately install it via composer

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daria Motorina, 2019-10-12
@glaphire

You can create a repository on Github using the API, documentation .
There is no method in the Packagist API documentation for publishing a repository, you have to manually login and publish. It is possible to automate via Selenium WebDriver, but is it worth it?
Composer allows you to add packages from Github bypassing Packagist - example .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question