- Locally
To actually get Composer, we need to do two things. The first one is installing Composer (again, this means downloading it into your project):
$ curl -sS https://getcomposer.org/installer | php
This will just check a few PHP settings and then download
composer.phar to your working directory. This file is the Composer binary. It is a PHAR (PHP archive), which is an archive format for PHP which can be run on the command line, amongst other things.
You can install Composer to a specific directory by using the
–install-dir option and providing a target directory (it can be an absolute or relative path):$ curl -sS https://getcomposer.org/installer | php – –install-dir=bin- Globally
You can place this file anywhere you wish. If you put it in your
PATH, you can access it globally. On unixy systems you can even make it executable and invoke it without php.
You can run these commands to easily access composer from anywhere on your system:
$ curl -sS https://getcomposer.org/installer | php$ mv composer.phar /usr/local/bin/composer
more Details viste here https://getcomposer.org/doc/00-intro.md#globally
No comments:
Post a Comment