Esempio n. 1
0
 public function install(PharComposer $pharer, $path)
 {
     $pharer->build();
     $this->log('Move resulting phar to <info>' . $path . '</info>');
     $this->exec($this->binSudo . ' -- mv -f ' . escapeshellarg($pharer->getTarget()) . ' ' . escapeshellarg($path));
     $this->log('');
     $this->log('    <info>OK</info> - Moved to <info>' . $path . '</info>');
 }
Esempio n. 2
0
<?php

use Clue\PharComposer\PharComposer;
require __DIR__ . '/../vendor/autoload.php';
$pharcomposer = new PharComposer(__DIR__ . '/../composer.json');
$pharcomposer->build();