It's very simple to create a phar out of an existing php code tree.
<?php
$phar = new Phar('swiftmailer.phar', 0, 'swiftmailer.phar');
// add all files in the project
$phar->buildFromDirectory(dirname(__FILE__) . '/swiftmailer');
$phar->setStub($phar->createDefaultStub('swift_required.php'));
?>
No comments:
Post a Comment