Skip to content

Instantly share code, notes, and snippets.

@dinhquochan
Created March 2, 2019 04:11
Show Gist options
  • Select an option

  • Save dinhquochan/2f9445bd9fa2eebf2ed06ea57946f302 to your computer and use it in GitHub Desktop.

Select an option

Save dinhquochan/2f9445bd9fa2eebf2ed06ea57946f302 to your computer and use it in GitHub Desktop.
Run `composer install` in Web Browser
<?php
declarce(strict_type=1);
use Composer\Console\Application;
use Composer\Command\UpdateCommand;
use Symfony\Component\Console\Input\ArrayInput;
define('COMPOSER_ROOT', __DIR__);
@set_time_limit(0);
@ini_set('memory_limit', -1);
chdir(COMPOSER_ROOT);
$input = new ArrayInput(['command' => 'install']);
$application = new Application();
$application->run($input);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment