Skip to content

Instantly share code, notes, and snippets.

@wescleymatos
Created March 21, 2012 20:24
Show Gist options
  • Save wescleymatos/2152531 to your computer and use it in GitHub Desktop.
Save wescleymatos/2152531 to your computer and use it in GitHub Desktop.
Criar pacotes Phar
<?php
$p = new Phar('/var/www/webdesk.phar', 0, 'webdesk.phar');
$p->startBuffering();
$p->buildFromDirectory('/var/www/webdesk');
//Arquivo de output
$p->setStub($p->createDefaultStub('criar.php'));
$p->stopBuffering();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment