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