Skip to content

Instantly share code, notes, and snippets.

@ahsankhatri
ahsankhatri / webComposer.php
Created October 2, 2016 19:35
Run composer update/install in browser.
<?php
// This is just a sample code, do not use it on production as this is insecure
// For security, you may use .htaccess IP Access or HTTP Basic Aauthentication
require 'vendor/autoload.php';
$allowedCommands = [
'update',
'install',
'dump-autoload',