Create a file named test.php
:
<?php
<<<CONFIG
packages:
- "symfony/finder: ~2.5"
CONFIG;
$finder = Symfony\Component\Finder\Finder::create()
->in(__DIR__)
->name('*.php')
;
foreach ($finder as $file) {
echo $file, "\n";
}
And simply run it:
melody run test.php
Read the documentation for more information.