Installation

VHP is built entirely in Rust with zero external dependencies.

Prerequisites

  • Rust (1.70 or later recommended)

Build from Source

git clone https://github.com/leocavalcante/vhp.git
cd vhp
make release

Using Cargo

git clone https://github.com/leocavalcante/vhp.git
cd vhp
cargo build --release

The binary will be at ./target/release/vhp

Make Targets

Target Description
make build Debug build
make release Release build (optimized)
make lint Run clippy with warnings as errors
make test Build and run test suite
make test-verbose Run tests with verbose output
make clean Clean build artifacts

Add to PATH (Optional)

To use vhp from anywhere:

# Linux/macOS
sudo cp ./target/release/vhp /usr/local/bin/

# Or add to your shell profile
export PATH="$PATH:/path/to/vhp/target/release"

Run Directly with Cargo

You can also run VHP directly through Cargo without installing:

cargo run --release -- script.php
cargo run --release -- -r 'echo "Hello!";'

Verify Installation

vhp --help

You should see the help output with available options.