Skip to content
One-file composer scripts
PHP
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
build Added initial set of files Dec 5, 2014
doc Fixed typos Mar 6, 2017
src/SensioLabs/Melody handle shebang Jun 1, 2019
.gitignore Added initial set of files Dec 5, 2014
.travis.yml Drop HHVM support Nov 2, 2018
CONTRIBUTING.md Added initial set of files Dec 5, 2014
LICENSE Added initial set of files Dec 5, 2014
README.md Update example version for LTS Aug 19, 2016
box.json Add GZ compression to box.json configuration. Jan 21, 2016
composer.json Bumped to PHP 5.5 Jun 13, 2016
composer.lock upgrade dependencies May 10, 2017
phpunit.xml.dist Added initial set of files Dec 5, 2014

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.

You can’t perform that action at this time.