19 php phar_from_dir.php archive directory [regex]
21 Packs files in a given directory into a phar archive.
23 archive name of the archive to create
24 directory input directory to pack
25 regex optional expression to match files in directory
31 $phar =
new Phar($argv[1], 0,
'newphar');
42 foreach(
$dir as $file)
45 copy($file,
"phar://newphar/$file");
Iterates through recursive iterators.
Regular expression filter for iterators.
recursive directory iterator