Skip to content

Instantly share code, notes, and snippets.

@webflo
Created December 8, 2015 22:10
Show Gist options
  • Save webflo/c13823943b45430d8d08 to your computer and use it in GitHub Desktop.
Save webflo/c13823943b45430d8d08 to your computer and use it in GitHub Desktop.
<?php
<<<CONFIG
packages:
- "symfony/finder: ~2.5"
CONFIG;
$finder = Symfony\Component\Finder\Finder::create()
->in(__DIR__)
->files()
->name('*.php')
;
foreach ($finder as $file) {
echo $file, "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment