Answer the question
In order to leave comments, you need to log in
How to install composer in project folder?
Good evening. I want to install composer in a project. In the project folder, I need to execute the composer require cocur/slugify command, and then composer update and that's it? Am I doing it right?
Answer the question
In order to leave comments, you need to log in
If composer is not installed at all, run the following in your project folder
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
composer require cocur/slugify
composer update
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question