LoginSignup
4
5

More than 3 years have passed since last update.

Composerがインストールできない環境でComposerを使用したい時

Posted at

PHPでシステムを組むときにComposerを使うかと思いますが、
レンタルサーバーだったり、権限がなかったりと、Composerをインストールできないときがあると思います。

その場合、以下手順でComposerのコマンドを叩けます。
※既にローカル環境などで開発していて、composer.jsonがある前提です。


まずはcomposer.jsonがあるフォルダに移動します。

次にcomposer.pharというComposerを叩くためのファイルを落としてきます。

curl -sS https://getcomposer.org/installer | php

あとは以下で叩けます。

php composer.phar install

update

php composer.phar update

composer

php composer.phar
に置き換わった感じですね。

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5