1
0
Fork 0
composer/bin/composer

19 lines
499 B
PHP
Executable File

#!/usr/bin/env php
<?php
require __DIR__.'/../tests/bootstrap.php';
use Composer\Composer;
use Composer\Downloader\GitDownloader;
use Composer\Downloader\PearDownloader;
use Composer\Command\InstallCommand;
use Composer\Installer\LibraryInstaller;
$composer = new Composer();
$composer->addDownloader('git', new GitDownloader);
$composer->addDownloader('pear', new PearDownloader);
$composer->addInstaller('library', new LibraryInstaller);
$cmd = new InstallCommand();
$cmd->install($composer);