PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
build
doc
src/SensioLabs/Melody
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE
README.md
box.json
composer.json
composer.lock
phpunit.xml.dist

README.md

Melody - One-file composer scripts

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.