M
M
MikUrrey2019-09-16 17:22:21
PHP
MikUrrey, 2019-09-16 17:22:21

Are there packagist (composer-server) implementations in PHP?

Except SATIS. Something simpler, suitable for running on localhost and automatically picking up added packages (archives or folders), without the need to conjure in consoles, etc.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MikUrrey, 2019-09-16
@MikUrrey

Found it myself. https://github.com/Rarst/release-belt
We do everything according to the instructions, we get the repository. Only the web root should point to public/index.php instead of index.php, and composer.json should be added in addition to the specified lines

"config": {
        "secure-http": false
}

because localhost naturally doesn't support https.
PS Yes, the author proudly announces that even composer.json is not needed in packages. But it's better with it, because otherwise the composer may not understand how to create an autoload for your package.

P
Philipp, 2019-09-17
@zoonman

I'm afraid Artifactory is probably not very suitable for you.
You can also do this, but this is for local code

{
  "autoload": {
    "psr-4": { "NameSpace\\": "src/NameSpace" }
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question