PHP script that can help you run composer even if you don't have SSH access to your server.
There are times when we want to run composer
on a hosting box or somewhere we are not allowed shell access through SSH or other methods. NoConsoleComposer will help you do some of the basic work using composer
even when you have no SSH access. A web server with FTP access can easily run NoConsoleComposer. Follow the guide given below for installation and usage.
Installation
Steps to use NoConsoleComposer :
- Download the source from above and put the
composer
folder where you can access it from web. For shared hosting, it would be under thepublic_html
folder most probably. I'll assume that you put thecomposer
folder directly underpublic_html
. i.e,public_html/composer
. - Edit the
composer/password.php
file and set your own password. Let's take an example, you want to set your password to99_66_88
, then you would see something like this in yourcomposer/password.php
file :$password = "99_66_88"
. - Access NoConsoleComposer from
http://yourhost.com/composer/index.php
. It will ask for your username and password. You can put any username, but be sure to put the password in thecomposer/password.php
file, otherwise it will never stop asking you the password. You'll see a prompt like this : - After authentication, you'll see a screen like this :The screen is doing what it is saying, i.e, downloading composer from web. It will show updates and then the page will refresh. And the buttons will show up :
- You will have to input the relative path(with respect to
composer/main.php
) or absolute path to the folder in which you want to run the command. - Click the appropriate button and keep an eye on the log.