sensiolabs/melody

This package is abandoned and no longer maintained. No replacement package was suggested.

One file composer scripts

dev-master 2019-06-01 06:25 UTC

This package is not auto-updated.

Last update: 2023-07-06 10:06:04 UTC


README

Create a file named test.php:

<?php
<<<CONFIG
packages:
    - "symfony/finder: ~2.8"
CONFIG;

$finder = Symfony\Component\Finder\Finder::create()
    ->in(__DIR__)
    ->files()
    ->name('*.php')
;

foreach ($finder as $file) {
    echo $file, "\n";
}

And simply run it:

$ melody run test.php

demo

More Information

Read the documentation for more information.