22 lines
556 B
Ruby
22 lines
556 B
Ruby
class Phpbrew < Formula
|
|
desc "Brew & manage PHP versions in pure PHP at HOME"
|
|
homepage "https://phpbrew.github.io/phpbrew"
|
|
url "https://github.com/phpbrew/phpbrew/releases/download/1.27.0/phpbrew.phar"
|
|
sha256 "0fdcda638851ef7e306f5046ff1f9de291443656a35f5150d84368c88aa7a41a"
|
|
license "MIT"
|
|
|
|
bottle :unneeded
|
|
|
|
uses_from_macos "php"
|
|
|
|
def install
|
|
chmod "+x", "phpbrew.phar"
|
|
bin.install "phpbrew.phar" => "phpbrew"
|
|
end
|
|
|
|
test do
|
|
system bin/"phpbrew", "init"
|
|
assert_match "8.0", shell_output("#{bin}/phpbrew known")
|
|
end
|
|
end
|