Skip to content

Instantly share code, notes, and snippets.

@alixaxel
Created January 30, 2013 18:28
Show Gist options
  • Save alixaxel/4675470 to your computer and use it in GitHub Desktop.
Save alixaxel/4675470 to your computer and use it in GitHub Desktop.
<?php
/*
function Zip($input, $output)
{
if (class_exists('PharData', false) === true)
{
if (is_object($phar = new PharData($output)) === true)
{
if (is_dir($input) === true)
{
$phar->buildFromDirectory($input);
}
else if (is_file($input) === true)
{
$phar->addFile($input);
}
}
}
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment