Alias pipe to program

Has anyone had any luck with this

I am trying to pipe an email alias to a php file for some processing

I can get this done through /etc/aliases but cannot work out how to route an email from mailinabox to one of the local accounts so it can be automatically piped to my php script

G