You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
393 B
17 lines
393 B
<?php
|
|
|
|
$pharFile = 'neatoDeploy.phar';
|
|
|
|
try {
|
|
$phar = new Phar($pharFile);
|
|
|
|
// Get the iterator for the Phar archive
|
|
$iterator = new RecursiveIteratorIterator($phar);
|
|
|
|
// Iterate through the contents
|
|
foreach ($iterator as $file) {
|
|
echo $file->getPathname() . PHP_EOL;
|
|
}
|
|
} catch (PharException $e) {
|
|
echo "Error reading Phar archive: " . $e->getMessage();
|
|
}
|
|
|