1
0
Fork 0
composer/bin/composer

21 lines
590 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\Downloader\ZipDownloader;
use Composer\Command\InstallCommand;
use Composer\Installer\LibraryInstaller;
$composer = new Composer();
$composer->addDownloader('git', new GitDownloader);
$composer->addDownloader('pear', new PearDownloader);
$composer->addDownloader('zip', new ZipDownloader);
$composer->addInstaller('library', new LibraryInstaller);
$cmd = new InstallCommand();
$cmd->install($composer);