public function phar($dest = null)
    {
        $this->taskComposerInstall()
            ->printed(false)
            ->noDev()
            ->run();

        if (!$dest) {
            $dest = __DIR__ . '/../peridot-php.github.io';
        }
        $src = __DIR__ . '/peridot.phar';
        $this->taskCleanDir([$dest . '/downloads'])->run();
        if (file_exists($src)) {
            unlink($src);
        }
        $this->taskExec('box build')->run();
        $destPhar = $dest . '/downloads/peridot.phar';
        $this->say("copying phar to $destPhar");
        rename($src, $destPhar);
    }
public function phar($dest = null)
    {
        $this->taskComposerInstall()
            ->printed(false)
            ->noDev()
            ->run();

        if (!$dest) {
            $dest = __DIR__ . '/../peridot-php.github.io';
        }
        $src = __DIR__ . '/peridot.phar';
        $this->taskCleanDir([$dest . '/downloads'])->run();
        if (file_exists($src)) {
            unlink($src);
        }
        $this->taskExec('box build')->run();
        $destPhar = $dest . '/downloads/peridot.phar';
        $this->say("copying phar to $destPhar");
        rename($src, $destPhar);
    }
public function phar ( $ dest = null ) { $ this -> taskComposerInstall ( ) -> printed ( false ) -> noDev ( ) -> run ( ) ; if ( ! $ dest ) { $ dest = __DIR__ . '/../peridot-php.github.io' ; } $ src = __DIR__ . '/peridot.phar' ; $ this -> taskCleanDir ( [ $ dest . '/downloads' ] ) -> run ( ) ; if ( file_exists ( $ src ) ) { unlink ( $ src ) ; } $ this -> taskExec ( 'box build' ) -> run ( ) ; $ destPhar = $ dest . '/downloads/peridot.phar' ; $ this -> say ( "copying phar to $destPhar" ) ; rename ( $ src , $ destPhar ) ; }
Build a phar and move it to the site folder

@param null|string $dest
Build a phar and move it to the site folder