Is this possible with PHP? I know Telnet and SSH I can program for (albeit not easily) but how about serial?

I understand that serial has to be connected directly to machine but I am planning a standalone local app with PHP (with or without Web Server).

I also understand that it'd be much easier with desktop based language like C# or Java (and of course dear ol' C++). I am just trying few things to see what the possibilities are.

So, is it possible easily? If yes then do you know of any classes or (just) articles that I can follow to better understand this?