I am bit confused about commands composer init' and composer require
If I am correct:
- If I would like to add a library to my project from packagist I need to use
require - If I would like to publish my library to packagist I need to use
init
I have a project and I do NOT want to publish it to https://packagist.org/
I just want to add some libraries to my project.
Do I have to necessarily run composer init before I run composer require?
I watched a tutorial, where they use composer init command before calling composer require, which confused me, because I though that composer init was related to publishing a library on packagist.