Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Composer for server or local use? [closed]

Is Composer designed to be installed on a web server or on a local computer?

like image 588
ryanve Avatar asked Mar 04 '13 17:03

ryanve


People also ask

Do I need Composer on server?

Of course Composer is not compulsory on your server. It manages files and packages under vendor/ , that's all. If you choose to manage them some other way - like uploading with FTP or committing them in your version control, then you don't need to use Composer.

What is Composer in server?

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on, and it will manage (install/update) them for you. Composer is not a package manager in the same sense as Yum or Apt are.

How do I run Composer locally?

To install Composer locally, run the installer in your project directory. See the Download page for instructions. The installer will check a few PHP settings and then download composer. phar to your working directory.

How do I know if Composer is installed on my server?

You can check your installed composer version using a command composer -v at the current path. Such as: composer -v.


1 Answers

It is designed for both.

You can use it in development (you will use composer update a lot then) and you can use it in production (you will install your dependencies with composer install then).

In development phrase, you define with which dependencies your project works. And in production, you make sure these dependencies are installed.

like image 171
Wouter J Avatar answered Oct 20 '22 21:10

Wouter J