class Composer < Formula desc "Dependency Manager for PHP" homepage "https://getcomposer.org/" url "https://getcomposer.org/download/1.10.15/composer.phar" sha256 "a69df12e86a0a18fbedfc91a33d5f9acc5cf939576e0258326074fc1b2ee1aea" license "MIT" livecheck do url "https://github.com/composer/composer.git" regex(/^[\d.]+$/i) end 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