Port of CSSJanus to PHP.