class Composer < Formula desc "Dependency Manager for PHP" homepage "https://getcomposer.org/" url "https://getcomposer.org/download/1.7.3/composer.phar" sha256 "bc6cbcd2c0fbc03c7ab87442b5f1fbc9407f0b9900bddc10d755bdc81bbe7b6e" bottle :unneeded def install bin.install "composer.phar" => "composer" end test do (testpath/"composer.json").write <<~EOS { "name": "homebrew/test", "authors": [ { "name": "Homebrew" } ], "require": { "php": ">=5.3.4" }, "autoload": { "psr-0": { "HelloWorld": "src/" } } } EOS (testpath/"src/HelloWorld/greetings.php").write <<~EOS