PHI implements the classical radio-interferometric (RI) measurement operator, mapping a sky image to the visibilities sampled by a telescope. Available in MATLAB and Python, the library also includes scripts for simulating Fourier sampling patterns from modern telescope antenna configurations.