class Composer < Formula desc "Dependency Manager for PHP" homepage "https://getcomposer.org/" url "https://getcomposer.org/download/1.7.2/composer.phar" sha256 "ec3428d049ae8877f7d102c2ee050dbd51a160fc2dde323f3e126a3b3846750e" 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