Installation
custos is a single static binary for Linux, macOS and Windows (amd64 and arm64). It does not need PHP to run.
Homebrew (macOS, Linux)
sh
brew install janalis/tap/custosComposer (per project)
sh
composer require --dev janalis/custos
vendor/bin/custos versionThe Composer package is a small PHP launcher (PHP 7.4+). On first run it downloads the binary for its version and your platform from the GitHub release, verifies it against SHA256SUMS, and caches it inside the package directory. Environment variables:
| Variable | Effect |
|---|---|
CUSTOS_BINARY | Run this binary instead; nothing is downloaded. |
CUSTOS_DOWNLOAD_URL | Base URL, or a local directory, holding the release assets (a mirror). |
HTTPS_PROXY | Proxy for the download. |
Release archives
Download the archive for your platform from the releases page, check it against SHA256SUMS, extract custos, and put it on your PATH.
From source
With Go 1.27 or later:
sh
git clone https://github.com/janalis/custos
cd custos
make build # → bin/custosCheck the installation
sh
custos version
custos rules | headNext: Getting started.
