I am really new to Satis and I found this tutorial: https://getcomposer.org/doc/articles/handling-private-packages-with-satis.md.
But I still can't get myself started. Is Satis is installed by project based? If so, would that mean I have to install Satis on every new project?
I tried to run composer.phar create-project composer/satis --stability=dev
from a folder and I get error message saying that composer.phar is not found. So, I try with composer create-project composer/satis --stability=dev
and it create a new folder called satis inside the folder I run composer.
So, how could I install Satis and use it? Do you know any video tutorial that teach us on this? I can't find any on Youtube.
Thank you.
After you download satis, you need to create a config json file with the location towards your repositories. Name it whatever you like. After that, execute the bin/satis command to create your web viewer. Something like
php bin/satis build mi-config.json web/
If the latter command works you have configured correctly your satis server. Then, all you need to do is to include your repositories source in the main composer.json file:
"repositories": [
{
"type": "composer",
"url": "http://localhost/satis/web"
}
],
"require": {
"my/package: "*"
},
Something I noticed in your question:
I tried to run composer.phar create-project ...
I get error message saying that composer.phar is not found. So, I try with composer create-project...
You don't need to install composer on every project on your server as it works for every project as long you move it to a shared route (as documentation says aka /usr/local/bin/composer - without the phar extension). Just keep in mind that the first example is in case you have the composer in your project root (with the full name and extension) and the second tries to use the composer located in your user/local path.
It's not a video but hope it helps Regards