Skip to content

Instantly share code, notes, and snippets.

@Girgias
Created February 22, 2021 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Girgias/19d9c2a2c7a74d0f98cd87f4e0abe2e9 to your computer and use it in GitHub Desktop.
Save Girgias/19d9c2a2c7a74d0f98cd87f4e0abe2e9 to your computer and use it in GitHub Desktop.
Snipper to prepare PECL releases
<?php
$iter = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__ . '/tests/', FilesystemIterator::CURRENT_AS_PATHNAME | FilesystemIterator::SKIP_DOTS));
$paths = str_replace(__DIR__ . '/', '', iterator_to_array($iter));
natsort($paths);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment