Loading the .phar from a web application

I guess this is a real noob question, but I have been running into some problems trying to use the library with my website.

When I include the .phar archive into a web application, the first line ("#!/usr/bin/env php") is interpreted as HTML and output to every page I use the library in.

Editing the .phar to remove the first line obviously breaks the signature and so far I haven't found a way to avoid outputting the first line every time the .phar is loaded.

How do I correctly use the library in this scenario?